linux db2指令无法执行,linux上执行DB2命令 command not found

博主在尝试使用root和db2inst1身份安装DB2时遇到问题,DB2提示无法将db2profile文件加入到profile或login文件中。已尝试手动配置但依然无效,寻求解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

如图啊!我用root和db2inst1 的身份都执行了,不行的!请各位指教啊!谢谢了!急!!=================我重装了一遍,好像是有问题!DBI1768W  Unable to add /home/db2inst1/sqllib/db2profile to the .profile file or      /home/db2inst1/sqllib/db2csh...显示全部

如图啊!我用root和db2inst1 的身份都执行了,不行的!

请各位指教啊!谢谢了!急!!

=================

我重装了一遍,好像是有问题!

DBI1768W  Unable to add /home/db2inst1/sqllib/db2profile to the .profile file or

/home/db2inst1/sqllib/db2cshrc to the .login file of user db2inst1.

Explanation:

DB2 has failed to modify the .profile file or the .login file of this

user. These files may not exist, or you may not have write permission to

them. Without the modification you need to set your environment manually

each time when you log in as this user to use DB2.

User response:

Add the following line to the .profile file or the .login file:

. /home/db2inst1/sqllib/db2profile   to the .profile file, or

source /home/db2inst1/sqllib/db2cshrc to the .login file  (不过增加了还是不行啊,,文件已经赋予最高权限)

是要手动设置变量吧,怎么弄的!谢谢!收起

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值