The document provides useful Oracle RAC commands for starting and stopping Oracle RAC components, checking the status of Oracle RAC resources, and managing the Oracle Cluster Registry (OCR). It describes commands for starting and stopping the database, listeners, ASM, and other Oracle RAC services. It also covers commands for checking the status of nodes, databases, services, and monitoring Oracle RAC health using tools like ocrcheck.
The document provides useful Oracle RAC commands for starting and stopping Oracle RAC components, checking the status of Oracle RAC resources, and managing the Oracle Cluster Registry (OCR). It describes commands for starting and stopping the database, listeners, ASM, and other Oracle RAC services. It also covers commands for checking the status of nodes, databases, services, and monitoring Oracle RAC health using tools like ocrcheck.
The document provides useful Oracle RAC commands for starting and stopping Oracle RAC components, checking the status of Oracle RAC resources, and managing the Oracle Cluster Registry (OCR). It describes commands for starting and stopping the database, listeners, ASM, and other Oracle RAC services. It also covers commands for checking the status of nodes, databases, services, and monitoring Oracle RAC health using tools like ocrcheck.
The document provides useful Oracle RAC commands for starting and stopping Oracle RAC components, checking the status of Oracle RAC resources, and managing the Oracle Cluster Registry (OCR). It describes commands for starting and stopping the database, listeners, ASM, and other Oracle RAC services. It also covers commands for checking the status of nodes, databases, services, and monitoring Oracle RAC health using tools like ocrcheck.
Download as DOCX, PDF, TXT or read online from Scribd
Download as docx, pdf, or txt
You are on page 1of 11
At a glance
Powered by AI
The document outlines various commands that can be used to manage Oracle RAC components like databases, listeners, ASM etc. It also describes steps to stop and start Oracle RAC and check status of CRS.
To start and stop oracle clusterware (run as the superuser) :
[root@node1 ~]# crsctl stop crs
[root@node1 ~]# crsctl start crs
To start and stop oracle cluster resources running on all nodes :
[root@node1 ~]# crsctl stop cluster -all
[root@node1 ~]# crsctl start cluster -all
To check the current status of a cluster :
[oracle@node1~]$ crsctl check cluster
CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online
To check the current status of CRS :
[oracle@node1 ~]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online
Oracle Clusterware version on node [node1] is [11.2.0.4.0] [oracle@node1 ~]$ [oracle@node1 ~]$ crsctl query crs activeversion Oracle Clusterware active version on the cluster is [11.2.0.4.0] [oracle@node1 ~]$ crsctl query crs releaseversion Oracle High Availability Services release version on the local node is [11.2.0.4.0]
To check current status of OHASD (Oracle High Availability Services) daemon :
[oracle@node1 ~]$ crsctl check has
CRS-4638: Oracle High Availability Services is onli
To change the startup option of database from open to mount :
[oracle@TEST4 ~]$ srvctl modify database -d TESTDB -s mount
To start RAC listener :
[oracle@TEST4 ~]$ srvctl start listener
To display the status of the database :
[oracle@TEST4 ~]$ srvctl status database -d TESTRACDB
Instance TESTRACDB1 is running on node TEST4 Instance TESTRACDB2 is running on node TEST5
To display the status services running in the database :
[oracle@TEST4 ~]$ srvctl status service -d TESTRACDB
Service SRV_TESTRACDB is running on instance(s) TESTRACDB1,TESTRACDB2
To check nodeapps running on a node :
[oracle@TEST4 ~]$ srvctl status nodeapps
VIP TEST4-vip is enabled VIP TEST4-vip is running on node: TEST4 VIP TEST5-vip is enabled VIP TEST5-vip is running on node: TEST5 Network is enabled Network is running on node: TEST4 Network is running on node: TEST5 GSD is enabled GSD is not running on node: TEST4 GSD is not running on node: TEST5 ONS is enabled ONS daemon is running on node: TEST4 ONS daemon is running on node: TEST5
[oracle@TEST4 ~]$ srvctl status nodeapps -n TEST4
VIP TEST4-vip is enabled VIP TEST4-vip is running on node: TEST4 Network is enabled Network is running on node: TEST4 GSD is enabled GSD is not running on node: TEST4 ONS is enabled ONS daemon is running on node: TEST4
To start or stop all instances associated with a database. This command also starts services and listeners on each node :
To display the status of SCAN VIP’s and SCAN listeners :
[oracle@test4 ~]$ srvctl status scan
SCAN VIP scan1 is enabled SCAN VIP scan1 is running on node test4 SCAN VIP scan2 is enabled SCAN VIP scan2 is running on node test5 SCAN VIP scan3 is enabled SCAN VIP scan3 is running on node test5
[oracle@test4 ~]$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled SCAN listener LISTENER_SCAN1 is running on node test4 SCAN Listener LISTENER_SCAN2 is enabled SCAN listener LISTENER_SCAN2 is running on node test5 SCAN Listener LISTENER_SCAN3 is enabled SCAN listener LISTENER_SCAN3 is running on node test5
srvctl modify scan_listener -p <port_number> (reflect changes to the current SCAN listener only)
To start the ASM instnace in mount state :
ASMCMD> startup --mount
To shut down ASM instance immediately(database instance must be shut down
before the ASM instance is shut down) :
ASMCMD> shutdown --immediate
Use lsop command on ASMCMD to list ASM operations :
ASMCMD > lsop
To perform quick health check of OCR :
[oracle@test4 ~]$ ocrcheck
Status of Oracle Cluster Registry is as follows : Version : 3 Total space (kbytes) : 262120 Used space (kbytes) : 3304 Available space (kbytes) : 258816 ID : 1555543155 Device/File Name : +DATA Device/File integrity check succeeded Device/File Name : +OCR Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check bypassed due to non-privileged
user
To dump content of OCR file into an xml :
[oracle@test4 ~]$ ocrdump testdump.xml -xml
To add or relocate the OCR mirror file to the specified location :
scan/OCRFILE/registry.255.903592771" is available on all the nodes Disk group for ocr location "+CRS/testdb- scan/OCRFILE/registry.255.903735431" is available on all the nodes Disk group for ocr location "+MULTIPLEX/testdb- scan/OCRFILE/registry.255.903735561" is available on all the nodes