Oracle restart
Add database and Listener to servvices
crsctl check has
crsctl config has
srvctl add database -d orcl -o /u01/app/oracle/product/11.2.0/db_orcl
srvctl config database -d orcl
srvctl add listener -l LISTENER -o /u01/app/oracle/product/11.2.0/db_orcl -p "TCP:1522/IPC:ORCL"
srvctl start listener -l LISTENER
srvctl start database -d orcl
Start/Stop all components of given Home
srvctl stop home -o /u01/app/oracle/product/11.2.0/db_orcl -s /home/oracle/orcl_state
srvctl start home -o /u01/app/oracle/product/11.2.0/db_orcl -s /home/oracle/orcl_state.
Get/set variable
srvctl getenv database -d orcl
srvctl setenv database -d orcl -t "ORACLE_SID=orcl,ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_orcl"
OCR
ocrcheck -local
ocrdump -local olr_export
ocrconfig -local -showbackup
ocrconfig -local -manualbackup
If ever , you want to restoring an OLR stop HA services first
crsctl stop crs
ocrconfig -local -restore
ocrcheck -local
crsctl start crs
Add database and Listener to servvices
crsctl check has
crsctl config has
srvctl add database -d orcl -o /u01/app/oracle/product/11.2.0/db_orcl
srvctl config database -d orcl
srvctl add listener -l LISTENER -o /u01/app/oracle/product/11.2.0/db_orcl -p "TCP:1522/IPC:ORCL"
srvctl start listener -l LISTENER
srvctl start database -d orcl
Start/Stop all components of given Home
srvctl stop home -o /u01/app/oracle/product/11.2.0/db_orcl -s /home/oracle/orcl_state
srvctl start home -o /u01/app/oracle/product/11.2.0/db_orcl -s /home/oracle/orcl_state.
Get/set variable
srvctl getenv database -d orcl
srvctl setenv database -d orcl -t "ORACLE_SID=orcl,ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_orcl"
OCR
ocrcheck -local
ocrdump -local olr_export
ocrconfig -local -showbackup
ocrconfig -local -manualbackup
If ever , you want to restoring an OLR stop HA services first
crsctl stop crs
ocrconfig -local -restore
ocrcheck -local
crsctl start crs