普通用户运行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
db2qry (非实例用户)
db2icomm(实例用户)
在db2qry下的.profile下
加了
# added by clx
if [ -f /home/db2icomm/sqllib/db2profile ]; then
. /home/db2icomm/sqllib/db2profile
fi
# added by clx
此时
db2 list node directory显示也是db2icomm下node的配置
db2qry@emal:~> echo $PATH
/home/db2qry/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin:
/home/db2icomm/sqllib/bin:/home/db2icomm/sqllib/adm:/home/db2icomm/sqllib/misc