码迷,mamicode.com
首页 > 数据库 > 详细

【DB2】If ‘db2‘ is not a typo you can run the following command to lookup the package that contains the binary: command-not-found db2 bash: db2: command not found

时间:2018-07-07 12:35:08      阅读:2389      评论:0      收藏:0      [点我收藏+]

标签:style   添加   db2   img   技术   code   bash   .com   info   

数据库安装以后,db2报错如下:

If ‘db2‘ is not a typo you can run the following command to lookup the package that contains the binary:
    command-not-found db2
bash: db2: command not found

 

问题处理:

①首先编辑/etc/profile

vim /etc/profile

②然后在该文件最后一行添加

PATH=$PATH:/opt/ibm/db2/V10.1_01/bin:/home/db2inst1/sqllib/bin:/home/db2inst1/sqllib/adm:/home/db2inst1/sqllib/misc
export PATH

技术分享图片

③使用source命令让更改配置生效

source /etc/profile

【DB2】If ‘db2‘ is not a typo you can run the following command to lookup the package that contains the binary: command-not-found db2 bash: db2: command not found

标签:style   添加   db2   img   技术   code   bash   .com   info   

原文地址:https://www.cnblogs.com/OliverQin/p/9276775.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!