2008-7-3 20:47
kong_go
请教:Linux 安装oracle10g 时,/etc/profile写法问题
以root 用户在redhat 4安装oracle10g 时,/etc/profile如下配置后
if ( $USER == "oracle" ) then
limit maxproc 16384
limit descriptors 65536
umask 022
endif
在 root下执行
su - oracle
显示
-bash: /etc/profile: line 57: syntax error: unexpected end of file错误,哪位遇见过,指导一下.
2008-7-3 20:51
microsoft_fly
if
then
fi
[[i] 本帖最后由 microsoft_fly 于 2008-7-3 20:53 编辑 [/i]]
2008-7-3 20:53
kong_go
是endif
2008-7-3 20:58
kong_go
不对,如果改后会出现:-bash: $USER==: command not found
2008-7-3 21:38
anycall2010
我也出现过这样的问题,一直没解决,所以一般在安装数据库的时候,我一般跳过这个选项.有明白的人,希望能出来讲讲.
2008-7-3 22:10
kong_go
自己解决了,以root用户添加如下代码就可以了 :
cat >> /etc/profile <<EOF
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
EOF
cat >> /etc/csh.login <<EOF
if ( $USER == "oracle" ) then
limit maxproc 16384
limit descriptors 65536
umask 022
endif
EOF
2008-7-3 23:57
mcseman
OTN上面写的很清楚.
2008-7-6 01:39
五“宅”一生
用root安装oracle不太好吧。建议还是建立个其它的用户
2008-7-6 09:37
John-dl
恩,不同shell,语法有些不同
页:
[1]

Powered by ITPUB论坛