数据库安装以后,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/V9.7/bin:/home/db2inst1/sqllib/bin:/home/db2inst1/sqllib/adm:/home/db2inst1/sqllib/misc
export PATH

【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

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

source /etc/profile

相关文章:

  • 2021-08-11
  • 2021-10-11
  • 2021-11-01
  • 2022-02-27
  • 2021-11-27
  • 2021-12-11
  • 2021-10-22
  • 2021-07-28
猜你喜欢
  • 2021-11-06
  • 2021-08-19
  • 2021-09-05
  • 2021-07-17
  • 2021-07-22
  • 2022-12-23
相关资源
相似解决方案