Da jeg startede haddo-databasen ved hjælp af srvctl, modtog jeg følgende fejl:
$ srvctl start instance -i haddo1 -d haddo PRCR-1013 : Failed to start resource ora.haddo.db PRCR-1064 : Failed to start resource ora.haddo.db on node dbrac1 CRS-5017: The resource action "ora.haddo.db start" encountered the following error: ORA-01078: failure in processing system parameters ORA-01565: error in identifying file '+DG_DATA1/haddo/spfilehaddo.ora' ORA-17503: ksfdopn:10 Failed to open file +DG_DATA1/haddo/spfilehaddo.ora ORA-12547: TNS:lost contact . For details refer to "(:CLSN00107:)" in "/u01/app/grid/diag/crs/dbrac1/crs/trace/crsd_oraagent_oracle.trc". CRS-2674: Start of 'ora.haddo.db' on 'dbrac1' failed
DB'en er kun aktiv på node2 (dbrac2).
$ crsctl stat res ora.haddo.db -t --------------------------------------------------------------------- Name Target State Server State details --------------------------------------------------------------------- Cluster Resources --------------------------------------------------------------------- ora.haddo.db 1 ONLINE OFFLINE Instance Shutdown,STABLE 2 ONLINE ONLINE dbrac2 Open,STABLE ---------------------------------------------------------------------
Problemet er forårsaget af forkert tilladelse fra $GRID_HOME/bin/oracle, hvilket førte til forbindelsesfejl til ASM-instansen:
$ ls -l $GRID_HOME/bin/oracle -rwxr-x--x. 1 grid oinstall 291544753 Mar 2 2017 /u01/app/12.1.0.2/grid/bin/oracle
Oracle binær skal have tilladelsen 6751:
$ cd $GRID_HOME/bin $ chmod 6751 oracle $ ls -l $GRID_HOME/bin/oracle -rwsr-s--x. 1 grid oinstall 291544753 Mar 2 2017 /u01/app/12.1.0.2/grid/bin/oracle
Efter at have rettet tilladelser på oracle eksekverbare, blev mit problem løst:
$ srvctl start instance -i haddo1 -d haddo $ crsctl stat res ora.haddo.db -t -------------------------------------------------------------------------------- Name Target State Server State details -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.haddo.db 1 ONLINE ONLINE dbrac1 Open,STABLE 2 ONLINE ONLINE dbrac2 Open,STABLE --------------------------------------------------------------------------------