Chinaunix首页 | 论坛 | 博客
  • 博客访问: 25538
  • 博文数量: 4
  • 博客积分: 1420
  • 博客等级: 上尉
  • 技术积分: 70
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-16 15:22
文章分类

全部博文(4)

文章存档

2010年(2)

2009年(2)

我的朋友

分类: LINUX

2010-03-18 11:38:06

在centos系统从root用户切换到oracle用的时候,总是提示 :

-bash- : :[: unary operator expected

能切换成功,就是总提示上面这个,

后来找到原因,在安装oracle软件的时候,曾在/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

修改成如下,问题不再出现:

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

阅读(5726) | 评论(0) | 转发(0) |
0

上一篇:the specified nodes are not clusterable.

下一篇:没有了

给主人留下些什么吧!~~