How-to:设置.profile,搞定ksh: db2: not found。
安装Tivoli Service Request Manager时碰到的问题。
出于性能的考虑,SRM安装在Windows 2003服务器,而DB2在AIX服务器。在手动建立实例和数据库之后,启动时出现问题:
$ db2 ksh: db2: not found.
Google一把,发现是.profile设置有问题:Profile文件作为Korn shell commands的集合方便用户在任何地方执行脚本。很显然,缺少了DB2Profile的存在才导致错误的发生,修改如下:
$ vi .profile . /Home/$instance/sqllib/db2profile
ZZ保存退出后,用户重新登陆即可。
浙公网安备 33010602011771号