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

解决方案 »

  1.   

    有 oracle 帐户么?
      

  2.   

    path 环境变量不全,把 oracle 的 bin 目录加到 path 环境变量中。
      

  3.   

    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