Go Anyway

Colors blind the eyes, Sounds deafen the ear, Flavors numb the taste, Thoughts weaken the mind.
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保存退出后,用户重新登陆即可。

posted on 2010-03-23 23:05  maluguos  阅读(3067)  评论(0)    收藏  举报