Environment:
DB: 11.2.0.2 rac OS: RHEL 5.6
The following problems are encountered when upgrading a single machine to RAC under Oracle 11gR2 today.
- [Oracle @ 11rac5 ~] $ Sqlplus/as sysdba
-
- SQL * Plus: Release 11.2.0.2.0 Production on Tue Oct 9 19:06:51 2012
-
- Copyright (c) 1982,201 0, Oracle. All rights reserved.
-
- Connected to an idle instance.
-
- SQL> startup
- ORA-01078: failure in processing system parameters
- ORA-01565: error in identifying file '+ DATA/spfilerac. ora'
- ORA-17503: ksfdopn: 2 Failed to open file + DATA/spfilerac. ora
- A ORA-01034: ORACLE not available
- ORA-27123: unable to attach to shared memory segment
- Linux-x86_64 Error: 13: Permission denied
- Additional information: 3833863
- Additional information: 10
View the permissions of oracle files under the grid and oracle users
- View oracle permissions under the grid user
- [Root @ 11rac5 log] # su-grid
- [Grid @ 11rac5 ~] $ Ls-l $ ORACLE_HOME/bin/oracle
- -Rwxr-x -- x 1 grid oinstall 200678430 Oct 9/u01/app/11.2.0/grid/bin/oracle
- The permission is incorrect. Modify the permission.
- [Grid @ 11rac5 ~] $ Chmod 6751 $ ORACLE_HOME/bin/oracle
- [Grid @ 11rac5 ~] $ Ls-l $ ORACLE_HOME/bin/oracle
- -Rwsr-s -- x 1 grid oinstall 200678430 Oct 9/u01/app/11.2.0/grid/bin/oracle
- View oracle permissions under an oracle user
- [Oracle @ 11rac5 trace] $ ls-l $ ORACLE_HOME/bin/oracle
- -Rwsr-x -- x 1 oracle asmadmin 228886426 Oct 9/u01/app/oracle/product/11.2.0/db_2/bin/oracle
-
- Modify it under the grid user
- [Oracle @ 11rac5 trace] $ su-grid
- Password:
- [Grid @ 11rac5 ~] $ Cd $ ORACLE_HOME/bin/
- [Grid @ 11rac5 bin] $ set
- Set setasmgid setasmgidwrap setfattr setkeycodes setmetamode setsid setup
- Setarch setasmgid0 setfacl setfont setleds setserial setterm setxkbmap
- [Grid @ 11rac5 bin] $ setasmgidwrap o =/u01/app/oracle/product/11.2.0/db_2/bin/oracle
- [Grid @ 11rac5 bin] $ ls-l/u01/app/oracle/product/11.2.0/db_2/bin/oracle
- -Rwsr-s -- x 1 oracle asmadmin 228886426 Oct 9/u01/app/oracle/product/11.2.0/db_2/bin/oracle
Start the database again:
- Restart normally
- [Oracle @ 11rac5 ~] $ Sqlplus/as sysdba
-
- SQL * Plus: Release 11.2.0.2.0 Production on Tue Oct 9 19:28:34 2012
-
- Copyright (c) 1982,201 0, Oracle. All rights reserved.
-
- Connected to an idle instance.
-
- SQL> startup
- ORACLE instance started.
-
- Total System Global Area 839282688 bytes
- Fixed Size 2231128 bytes
- Variable Size 557843624 bytes
- Database Buffers 276824064 bytes
- Redo Buffers 2383872 bytes
- Database mounted.
- Database opened.