有个测试库今天发现异常
ORA-00600: internal error code, arguments: [spstp: ORACLE_HOME uid does not match euid], [504], [500], [], [], [], [], [], [], [], [], []
Incident details in: /opt/app/oracle/diag/rdbms/cmps/cmps/trace/cmps_w000_25009_i365105.trc
Errors in file /opt/app/oracle/diag/rdbms/cmps/cmps/trace/cmps_w000_25009_i365105.trc:
ORA-00600: internal error code, arguments: [spstp: ORACLE_HOME uid does not match euid], [504], [500], [], [], [], [], [], [], [], [], []
Process W000 died, see its trace file
Thu Aug 02 09:39:48 2012
登陆数据库并关闭
[oracle@centos2 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Thu Aug 2 09:27:44 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> shutdown immediate
ORA-24324: service handle not initialized
ORA-24323: value not allowed
ORA-27140: attach to post/wait facility failed
ORA-27300: OS system dependent operation:invalid_euid failed with status: 1
ORA-27301: OS failure message: Operation not permitted
ORA-27302: failure occurred at: skgpwinit5
ORA-27303: additional information: startup euid = 500 (?), current euid = 504 (oracle)
询问相关操作人,知道oracle用户被重建过
就是说oracle用户id 为500启动了数据库,后来oracle被重建,用户id为504,还用root用户chown -R oracle:oinstall /u01/app/ 权限的修改。
再次访问数据库就存在上述原因;
解决方法是修改 /etc/passwd 将oralce 用户id该回500, 再chown -R oracle:oinstall /u01/app/ ;
再连接数据库 即正常