DB2If ‘db2‘ is not a typo you can run the following command to lookup the package that contains th(代

Posted 奔跑的金鱼

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了DB2If ‘db2‘ is not a typo you can run the following command to lookup the package that contains th(代相关的知识,希望对你有一定的参考价值。

数据库安装以后,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

image

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

source /etc/profile

以上是关于DB2If ‘db2‘ is not a typo you can run the following command to lookup the package that contains th(代的主要内容,如果未能解决你的问题,请参考以下文章

Db2 存储数据遇到错误 The numeric literal XXXX is not valid

在 DB2 中创建表抛出 BOOLEAN data type is not supported 错误。知道如何解决这个问题吗?

hibernate 报query result offset is not supported

标签不生效的处理方法:PytestUnknownMarkWarning: Unknown pytest.mark.wallet - is this a typo?...

解决PytestUnknownMarkWarning: Unknown pytest.mark.welcome - is this a typo? You can register custom

org.apache.tomcat.util.bcel.classfile.ClassFormatException: null is not a Java .class file