日期:2014-05-17  浏览次数:20898 次

LINUX ORCLE11g 问题
[root@localhost ~]# su - oracle
-bash: [: missing `]'
[oracle@localhost ~]$ svrmgrll
-bash: svrmgrl: command not found
why???

------解决方案--------------------
vi /etc/profile写错了。
你查一下【[ $USER = "oracle" ]; 】和【 [ $SHELL = "/bin/ksh" ];】
语句,你【" ];】缺少了【空白】!
下面是标准的profile文件,你参考一下,注意空白。
-----------------------------

if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi