vmware server安装oracle10g rac提高oracle用户shell权限的问题

我遇到这个问题很久了,一直没找到答案,后来看了一篇英文的才知道,希望对遇到同样问题的有所帮助,下面是原文问答

引用地址:http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1288685719373+28353475&threadId=1026246

 

Author Subject: /bin/bash not found      Add to my favorites
Tonatiuh
May 10, 2006 11:40:08 GMT   

Red Hat Enterprise Linux 4.

I receive an error message when I switch to oracle user:

[root@monitor etc]# su - oracle
-bash: [/bin/bash: No such file or directory

This error message is present only when I add the following lines to the /etc/profile

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

The "/bin/bash" file does exist.

If I delete the lines showed (from the /etc/profile the error messages does not appear anymore.

This lines was extracted from the oracle manual and never have had this problem.

Any idea?
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click here


Sort Answers By: Date or Points
Ivan Ferreira This member has accumulated 20000 or more points
May 10, 2006 11:53:09 GMT  10 pts

Is that a exact copy paste of the profile? Ensure that you have a space between the [ ] and the test, that is:

if<space>[<space>$USER="oracle"<space>];<space>then
if<sapace>[<space>$SHELL="/bin/ksh"<space>];<space>then
Tonatiuh
May 10, 2006 11:57:05 GMT    N/A: Question Author

It is a "copy and paste" of the part I have added.
Tonatiuh
May 10, 2006 12:08:28 GMT    N/A: Question Author

Problem solved. I omitted an space before the "$SHELL" variable.
THANK YOU!

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值