- 论坛徽章:
- 0
|
AIX 4.3 DB27.1 db2inst2用户的.profile文件如下:\r\n- PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/home/db2inst\r\n2/sqllib/bin:/home/db2inst2/sqllib/adm:/home/db2inst2/sqllib/misc:.\r\n\r\nexport PATH\r\n\r\nif [ -s \"$MAIL\" ] # This is at Shell startup. In normal\r\nthen echo \"$MAILMSG\" # operation, the Shell checks\r\nfi # periodically.\r\n\r\n# The following three lines have been added by UDB DB2.\r\nif [ -f sqllib/db2profile ]; then\r\n . sqllib/db2profile\r\nfi\r\n
复制代码 \r\n但是我db2inst2用户下 ,echo $PATH\r\n- \r\n/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/dt/bin:/usr/bin/X11:/sbin
复制代码 \r\n执行命令时\r\n- $ db2 connect to sample\r\n/usr/bin/ksh: db2: not found
复制代码 \r\n帮忙看看怎么弄 |
|