启动数据库出现ORA-27123错误

客户的数据库异常关闭后,发现无法启动,报错信息为ORA-27123。
详细的错误信息为:

$ sqlplus USER/password@dbname
SQL * Plus: Release 10.2.0.3.0 – Production ON Fri DEC 9 10:56:32 2011
Copyright (c) 1982, 2006, Oracle. ALL Rights Reserved.
Error:
ORA-01034: ORACLE NOT available
ORA-27123: unable TO attach TO shared memory segment
Linux Error: 22: Invalid argument
Additional information: 1
Additional information: 321169
Enter user-name:

而如果使用oracle用户以/ as sysdba登录,则没有任何的错误。
查询后发现在文档ORA-27123 When Connecting As Non Oracle User [ID 167250.1]描述的正是当前的问题。导致这个问题的原因很简单,由于oracle可执行文件的权限设置存在问题,导致其他用户无法连接oracle数据库创建的共享内存段。
解决方法很简单,对于oracle程序重新授权即可:

$chmod 6755 $ORACLE_HOME/bin/oracle
This entry was posted in ORACLE and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *