Oracle错误:ORA-27121: unable to determine size of shared memory segment

来源:互联网 发布:截面特性代替软件 编辑:程序博客网 时间:2024/05/31 04:03

今天在用SQLPLUS登陆数据库时,忽然报了一个错误,错误的代码如下:


ORA-01034: ORACLE not available
ORA-27121: unable to determine size of shared memory segment
Linux Error: 13: Permission denied

 

怎么回事,刚才还用PL/SQL登陆来着,重新登陆PL/SQL,同样的错误,怎么回事?

百度,google了半天,终于闹明白了,主要是因为oracle安装程序没有给oracle这个可执行程序设置正确的setuid。这样设置一下:

 

$ cd $ORACLE_HOME/bin
$ chmod 6751 oracle

结果类似这样就行了。

 

$ ls -l $ORACLE_HOME/bin/oracle
-rwsr-s--x 1 oracle oinstall 23352783 Aug 14 2001 /home/oracle/app/oracle/product/8.1.6/bin/oracle

 

原创粉丝点击