In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces how to use the oracle rac crsctl command, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
The oracle rac crsctl command uses the
View crs resource status
[grid@db1] $crs_stat-t
Name Type Target State Host
Ora.DATA.dg ora....up.type ONLINE ONLINE db1
Ora.FRA.dg ora....up.type ONLINE ONLINE db1
Ora....ER.lsnr ora....er.type ONLINE ONLINE db1
Ora....N1.lsnr ora....er.type ONLINE ONLINE db1
Ora.OCR.dg ora....up.type ONLINE ONLINE db1
Ora.asm ora.asm.type ONLINE ONLINE db1
Ora.cvu ora.cvu.type ONLINE ONLINE db1
Ora....SM1.asm application ONLINE ONLINE db1
Ora....B1.lsnr application ONLINE ONLINE db1
Ora.db1.gsd application OFFLINE OFFLINE
Ora.db1.ons application ONLINE ONLINE db1
Ora.db1.vip ora....t1.type ONLINE ONLINE db1
Ora....SM2.asm application ONLINE ONLINE db2
Ora....B2.lsnr application ONLINE ONLINE db2
Ora.db2.gsd application OFFLINE OFFLINE
Ora.db2.ons application ONLINE ONLINE db2
Ora.db2.vip ora....t1.type ONLINE ONLINE db2
Ora.dmzdb.db ora....se.type ONLINE ONLINE db1
Ora.gsd ora.gsd.type OFFLINE OFFLINE
Ora....network ora....rk.type ONLINE ONLINE db1
Ora.oc4j ora.oc4j.type ONLINE ONLINE db1
Ora.ons ora.ons.type ONLINE ONLINE db1
Ora.scan1.vip ora....ip.type ONLINE ONLINE db1
View resource status
[grid@db1] $crsctl stat res-t
NAME TARGET STATE SERVER STATE_DETAILS
Local Resources
Ora.DATA.dg
ONLINE ONLINE db1
ONLINE ONLINE db2
Ora.FRA.dg
ONLINE ONLINE db1
ONLINE ONLINE db2
Ora.LISTENER.lsnr
ONLINE ONLINE db1
ONLINE ONLINE db2
Ora.OCR.dg
ONLINE ONLINE db1
ONLINE ONLINE db2
Ora.asm
ONLINE ONLINE db1 Started
ONLINE ONLINE db2 Started
Ora.gsd
OFFLINE OFFLINE db1
OFFLINE OFFLINE db2
Ora.net1.network
ONLINE ONLINE db1
ONLINE ONLINE db2
Ora.ons
ONLINE ONLINE db1
ONLINE ONLINE db2
Cluster Resources
Ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE db1
Ora.cvu
1 ONLINE ONLINE db1
Ora.db1.vip
1 ONLINE ONLINE db1
Ora.db2.vip
1 ONLINE ONLINE db2
Ora.dmzdb.db
1 ONLINE ONLINE db1 Open
2 ONLINE ONLINE db2 Open
Ora.oc4j
1 ONLINE ONLINE db1
Ora.scan1.vip
1 ONLINE ONLINE db1
[grid@db1 ~] $
View Resources
[grid@db1 ~] $crs_stat
NAME=ora.DATA.dg
TYPE=ora.diskgroup.type
TARGET=ONLINE
STATE=ONLINE on db1
NAME=ora.FRA.dg
TYPE=ora.diskgroup.type
TARGET=ONLINE
STATE=ONLINE on db1
NAME=ora.LISTENER.lsnr
TYPE=ora.listener.type
TARGET=ONLINE
STATE=ONLINE on db1
NAME=ora.LISTENER_SCAN1.lsnr
TYPE=ora.scan_listener.type
TARGET=ONLINE
STATE=ONLINE on db1
NAME=ora.OCR.dg
TYPE=ora.diskgroup.type
TARGET=ONLINE
STATE=ONLINE on db1
NAME=ora.asm
TYPE=ora.asm.type
TARGET=ONLINE
STATE=ONLINE on db1
NAME=ora.cvu
TYPE=ora.cvu.type
TARGET=ONLINE
STATE=ONLINE on db1
NAME=ora.db1.ASM1.asm
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db1
NAME=ora.db1.LISTENER_DB1.lsnr
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db1
NAME=ora.db1.gsd
TYPE=application
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.db1.ons
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db1
NAME=ora.db1.vip
TYPE=ora.cluster_vip_net1.type
TARGET=ONLINE
STATE=ONLINE on db1
NAME=ora.db2.ASM2.asm
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db2
NAME=ora.db2.LISTENER_DB2.lsnr
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db2
NAME=ora.db2.gsd
TYPE=application
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.db2.ons
TYPE=application
TARGET=ONLINE
STATE=ONLINE on db2
NAME=ora.db2.vip
TYPE=ora.cluster_vip_net1.type
TARGET=ONLINE
STATE=ONLINE on db2
NAME=ora.dmzdb.db
TYPE=ora.database.type
TARGET=ONLINE
STATE=ONLINE on db1
NAME=ora.gsd
TYPE=ora.gsd.type
TARGET=OFFLINE
STATE=OFFLINE
NAME=ora.net1.network
TYPE=ora.network.type
TARGET=ONLINE
STATE=ONLINE on db1
NAME=ora.oc4j
TYPE=ora.oc4j.type
TARGET=ONLINE
STATE=ONLINE on db1
NAME=ora.ons
TYPE=ora.ons.type
TARGET=ONLINE
STATE=ONLINE on db1
NAME=ora.scan1.vip
TYPE=ora.scan_vip.type
TARGET=ONLINE
STATE=ONLINE on db1
[grid@db1 ~] $
Check crs statu
[grid@db1 ~] $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
Add the following to root users
Export ORACLE_HOME=/u01/app/11.2.0/grid/
PATH=$ {PATH}: $ORACLE_HOME/bin
[root@db1 ~] # cat .bash _ profile
# .bash _ profile
# Get the aliases and functions
If [- f ~ / .bashrc]; then
. ~ / .bashrc
Fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
Export PATH
Export ORACLE_HOME=/u01/app/11.2.0/grid/
PATH=$ {PATH}: $ORACLE_HOME/bin
[root@db1 ~] #
Usually stop listening and stopping the library before stopping crs (first stop listening, stopping the library to prevent new sessions)
[grid@db1] $srvctl stop listener-n db1
[grid@db1] $srvctl stop instance-d dmzdb-I dmzdb1
Stop db1 crs
[root@db1 ~] # crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'db1'
CRS-2673: Attempting to stop 'ora.crsd' on' db1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'db1'
CRS-2673: Attempting to stop 'ora.FRA.dg' on' db1'
CRS-2673: Attempting to stop 'ora.OCR.dg' on' db1'
CRS-2673: Attempting to stop 'ora.dmzdb.db' on' db1'
CRS-2673: Attempting to stop 'ora.oc4j' on' db1'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on' db1'
CRS-2673: Attempting to stop 'ora.cvu' on' db1'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on' db1'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.db1.vip' on' db1'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on' db1'
CRS-2677: Stop of 'ora.db1.vip' on' db1' succeeded
CRS-2672: Attempting to start 'ora.db1.vip' on' db2'
CRS-2677: Stop of 'ora.scan1.vip' on' db1' succeeded
CRS-2672: Attempting to start 'ora.scan1.vip' on' db2'
CRS-2677: Stop of 'ora.FRA.dg' on' db1' succeeded
CRS-2677: Stop of 'ora.dmzdb.db' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.DATA.dg' on' db1'
CRS-2676: Start of 'ora.db1.vip' on' db2' succeeded
CRS-2676: Start of 'ora.scan1.vip' on' db2' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on' db2'
CRS-2677: Stop of 'ora.DATA.dg' on' db1' succeeded
CRS-2677: Stop of 'ora.oc4j' on' db1' succeeded
CRS-2672: Attempting to start 'ora.oc4j' on' db2'
CRS-2677: Stop of 'ora.cvu' on' db1' succeeded
CRS-2672: Attempting to start 'ora.cvu' on' db2'
CRS-2676: Start of 'ora.cvu' on' db2' succeeded
CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on' db2' succeeded
CRS-2676: Start of 'ora.oc4j' on' db2' succeeded
CRS-2677: Stop of 'ora.OCR.dg' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on' db1'
CRS-2677: Stop of 'ora.asm' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.ons' on' db1'
CRS-2677: Stop of 'ora.ons' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on' db1'
CRS-2677: Stop of 'ora.net1.network' on' db1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'db1' has completed
CRS-2677: Stop of 'ora.crsd' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.crf' on' db1'
CRS-2673: Attempting to stop 'ora.ctssd' on' db1'
CRS-2673: Attempting to stop 'ora.evmd' on' db1'
CRS-2673: Attempting to stop 'ora.asm' on' db1'
CRS-2673: Attempting to stop 'ora.mdnsd' on' db1'
CRS-2677: Stop of 'ora.crf' on' db1' succeeded
CRS-2677: Stop of 'ora.evmd' on' db1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on' db1' succeeded
CRS-2677: Stop of 'ora.ctssd' on' db1' succeeded
CRS-2677: Stop of 'ora.asm' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on' db1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on' db1'
CRS-2677: Stop of 'ora.cssd' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on' db1'
CRS-2677: Stop of 'ora.gipcd' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on' db1'
CRS-2677: Stop of 'ora.gpnpd' on' db1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'db1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[root@db1 ~] #
Another way to stop crs is to stop db1:
[grid@db1] $srvctl stop listener-n db1
[grid@db1] $srvctl stop instance-d dmzdb-I dmzdb1
[root@db1] # crsctl stop cluster-n db1
CRS-2673: Attempting to stop 'ora.crsd' on' db1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'db1'
CRS-2673: Attempting to stop 'ora.db1.vip' on' db1'
CRS-2673: Attempting to stop 'ora.FRA.dg' on' db1'
CRS-2673: Attempting to stop 'ora.OCR.dg' on' db1'
CRS-2673: Attempting to stop 'ora.DATA.dg' on' db1'
CRS-2677: Stop of 'ora.db1.vip' on' db1' succeeded
CRS-2672: Attempting to start 'ora.db1.vip' on' db2'
CRS-2677: Stop of 'ora.FRA.dg' on' db1' succeeded
CRS-2677: Stop of 'ora.DATA.dg' on' db1' succeeded
CRS-2676: Start of 'ora.db1.vip' on' db2' succeeded
CRS-2677: Stop of 'ora.OCR.dg' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on' db1'
CRS-2677: Stop of 'ora.asm' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.ons' on' db1'
CRS-2677: Stop of 'ora.ons' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on' db1'
CRS-2677: Stop of 'ora.net1.network' on' db1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'db1' has completed
CRS-2677: Stop of 'ora.crsd' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on' db1'
CRS-2673: Attempting to stop 'ora.evmd' on' db1'
CRS-2673: Attempting to stop 'ora.asm' on' db1'
CRS-2677: Stop of 'ora.evmd' on' db1' succeeded
CRS-2677: Stop of 'ora.ctssd' on' db1' succeeded
CRS-2677: Stop of 'ora.asm' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on' db1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on' db1'
CRS-2677: Stop of 'ora.cssd' on' db1' succeeded
[root@db1 ~] #
Start crs and take db1 as an example
[root@db1 ~] #
[root@db1] # crsctl start cluster-n db1
CRS-2672: Attempting to start 'ora.cssdmonitor' on' db1'
CRS-2676: Start of 'ora.cssdmonitor' on' db1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on' db1'
CRS-2672: Attempting to start 'ora.diskmon' on' db1'
CRS-2676: Start of 'ora.diskmon' on' db1' succeeded
CRS-2676: Start of 'ora.cssd' on' db1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on' db1'
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on' db1'
CRS-2676: Start of 'ora.ctssd' on' db1' succeeded
CRS-2672: Attempting to start 'ora.evmd' on' db1'
CRS-2676: Start of 'ora.evmd' on' db1' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on' db1' succeeded
CRS-2672: Attempting to start 'ora.asm' on' db1'
CRS-2676: Start of 'ora.asm' on' db1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on' db1'
CRS-2676: Start of 'ora.crsd' on' db1' succeeded
[root@db1 ~] #
Crsctl stop all nodes (first stop listening, stop library, then stop crs)
[grid@db1] $srvctl stop listener-n db1
[grid@db1] $srvctl stop instance-d dmzdb-I dmzdb1
[grid@db2] $srvctl stop listener-n db2
[grid@db2] $srvctl stop instance-d dmzdb-I dmzdb2
[root@db1 ~] # crsctl stop cluster-all
CRS-2673: Attempting to stop 'ora.crsd' on' db1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'db1'
CRS-2673: Attempting to stop 'ora.db1.vip' on' db1'
CRS-2673: Attempting to stop 'ora.FRA.dg' on' db1'
CRS-2673: Attempting to stop 'ora.OCR.dg' on' db1'
CRS-2673: Attempting to stop 'ora.DATA.dg' on' db1'
CRS-2677: Stop of 'ora.db1.vip' on' db1' succeeded
CRS-2677: Stop of 'ora.FRA.dg' on' db1' succeeded
CRS-2677: Stop of 'ora.DATA.dg' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.crsd' on' db2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'db2'
CRS-2673: Attempting to stop 'ora.FRA.dg' on' db2'
CRS-2673: Attempting to stop 'ora.OCR.dg' on' db2'
CRS-2673: Attempting to stop 'ora.DATA.dg' on' db2'
CRS-2673: Attempting to stop 'ora.db2.vip' on' db2'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on' db2'
CRS-2673: Attempting to stop 'ora.oc4j' on' db2'
CRS-2673: Attempting to stop 'ora.cvu' on' db2'
CRS-2677: Stop of 'ora.db2.vip' on' db2' succeeded
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on' db2' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on' db2'
CRS-2677: Stop of 'ora.scan1.vip' on' db2' succeeded
CRS-2677: Stop of 'ora.FRA.dg' on' db2' succeeded
CRS-2677: Stop of 'ora.DATA.dg' on' db2' succeeded
CRS-2677: Stop of 'ora.oc4j' on' db2' succeeded
CRS-2677: Stop of 'ora.cvu' on' db2' succeeded
CRS-2677: Stop of 'ora.OCR.dg' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on' db1'
CRS-2677: Stop of 'ora.asm' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.ons' on' db1'
CRS-2677: Stop of 'ora.ons' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on' db1'
CRS-2677: Stop of 'ora.net1.network' on' db1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'db1' has completed
CRS-2677: Stop of 'ora.crsd' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on' db1'
CRS-2673: Attempting to stop 'ora.evmd' on' db1'
CRS-2673: Attempting to stop 'ora.asm' on' db1'
CRS-2677: Stop of 'ora.evmd' on' db1' succeeded
CRS-2677: Stop of 'ora.ctssd' on' db1' succeeded
CRS-2677: Stop of 'ora.OCR.dg' on' db2' succeeded
CRS-2673: Attempting to stop 'ora.asm' on' db2'
CRS-2677: Stop of 'ora.asm' on' db2' succeeded
CRS-2673: Attempting to stop 'ora.ons' on' db2'
CRS-2677: Stop of 'ora.ons' on' db2' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on' db2'
CRS-2677: Stop of 'ora.net1.network' on' db2' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'db2' has completed
CRS-2677: Stop of 'ora.asm' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on' db1'
CRS-2677: Stop of 'ora.crsd' on' db2' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on' db2'
CRS-2673: Attempting to stop 'ora.evmd' on' db2'
CRS-2673: Attempting to stop 'ora.asm' on' db2'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on' db1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on' db1'
CRS-2677: Stop of 'ora.evmd' on' db2' succeeded
CRS-2677: Stop of 'ora.cssd' on' db1' succeeded
CRS-2677: Stop of 'ora.ctssd' on' db2' succeeded
CRS-2677: Stop of 'ora.asm' on' db2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on' db2'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on' db2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on' db2'
CRS-2677: Stop of 'ora.cssd' on' db2' succeeded
[root@db1 ~] #
Start the all nodes command
[root@db1 ~] # crsctl start cluster-all
CRS-2672: Attempting to start 'ora.cssdmonitor' on' db1'
CRS-2672: Attempting to start 'ora.cssdmonitor' on' db2'
CRS-2676: Start of 'ora.cssdmonitor' on' db1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on' db1'
CRS-2672: Attempting to start 'ora.diskmon' on' db1'
CRS-2676: Start of 'ora.cssdmonitor' on' db2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on' db2'
CRS-2672: Attempting to start 'ora.diskmon' on' db2'
CRS-2676: Start of 'ora.diskmon' on' db1' succeeded
CRS-2676: Start of 'ora.diskmon' on' db2' succeeded
CRS-2676: Start of 'ora.cssd' on' db1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on' db1'
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on' db1'
CRS-2676: Start of 'ora.cssd' on' db2' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on' db2'
CRS-2676: Start of 'ora.ctssd' on' db1' succeeded
CRS-2672: Attempting to start 'ora.evmd' on' db1'
CRS-2676: Start of 'ora.ctssd' on' db2' succeeded
CRS-2672: Attempting to start 'ora.evmd' on' db2'
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on' db2'
CRS-2676: Start of 'ora.evmd' on' db1' succeeded
CRS-2676: Start of 'ora.evmd' on' db2' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on' db1' succeeded
CRS-2672: Attempting to start 'ora.asm' on' db1'
CRS-2676: Start of 'ora.cluster_interconnect.haip' on' db2' succeeded
CRS-2672: Attempting to start 'ora.asm' on' db2'
CRS-2676: Start of 'ora.asm' on' db1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on' db1'
CRS-2676: Start of 'ora.crsd' on' db1' succeeded
CRS-2676: Start of 'ora.asm' on' db2' succeeded
CRS-2672: Attempting to start 'ora.crsd' on' db2'
CRS-2676: Start of 'ora.crsd' on' db2' succeeded
Check crs status (instance and listening, start later)
[root@db1 ~] # crsctl stat res-t
NAME TARGET STATE SERVER STATE_DETAILS
Local Resources
Ora.DATA.dg
ONLINE ONLINE db1
ONLINE ONLINE db2
Ora.FRA.dg
ONLINE ONLINE db1
ONLINE ONLINE db2
Ora.LISTENER.lsnr
OFFLINE OFFLINE db1
OFFLINE OFFLINE db2
Ora.OCR.dg
ONLINE ONLINE db1
ONLINE ONLINE db2
Ora.asm
ONLINE ONLINE db1 Started
ONLINE ONLINE db2 Started
Ora.gsd
OFFLINE OFFLINE db1
OFFLINE OFFLINE db2
Ora.net1.network
ONLINE ONLINE db1
ONLINE ONLINE db2
Ora.ons
ONLINE ONLINE db1
ONLINE ONLINE db2
Cluster Resources
Ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE db1
Ora.cvu
1 ONLINE ONLINE db1
Ora.db1.vip
1 ONLINE ONLINE db1
Ora.db2.vip
1 ONLINE ONLINE db2
Ora.dmzdb.db
1 OFFLINE OFFLINE Instance Shutdown
2 OFFLINE OFFLINE Instance Shutdown
Ora.oc4j
1 ONLINE ONLINE db1
Ora.scan1.vip
1 ONLINE ONLINE db1
[root@db1 ~] #
[
Crsctl-h View help
[root@db1] # crsctl-h
Usage: crsctl add-add a resource, type or other entity
Crsctl check-check a service, resource or other entity
Crsctl config-output autostart configuration
Crsctl debug-obtain or modify debug state
Crsctl delete-delete a resource, type or other entity
Crsctl disable-disable autostart
Crsctl discover-discover DHCP server
Crsctl enable-enable autostart
Crsctl get-get an entity value
Crsctl getperm-get entity permissions
Crsctl lsmodules-list debug modules
Crsctl modify-modify a resource, type or other entity
Crsctl query-query service state
Crsctl pin-pin the nodes in the node list
Crsctl relocate-relocate a resource, server or other entity
Crsctl replace-replaces the location of voting files
Crsctl release-release a DHCP lease
Crsctl request-request a DHCP lease
Crsctl setperm-set entity permissions
Crsctl set-set an entity value
Crsctl start-start a resource, server or other entity
Crsctl status-get status of a resource or other entity
Crsctl stop-stop a resource, server or other entity
Crsctl unpin-unpin the nodes in the node list
Crsctl unset-unset an entity value, restoring its default
[root@db1] # crsctl start-h
Usage:
Crsctl start resource {[...] |-w] |-all} [- n] [- k] [- d] [- env "env1=val1,env2=val2,..."] [- f] [- I]
Start designated resources
Where
ResName [...] One or more blank-separated resource names
-w Resource filter
-all All resources
-n Server name
-k Resource cardinality ID
-d Resource degree ID
-env Attribute overrides for this command
-f Force option
-i Fail if request cannot be processed immediately
Crsctl start crs [- excl [- nocrs] |-nowait]
Start OHAS on this server
Where
-excl Start Oracle Clusterware in exclusive mode
-nocrs Start Oracle Clusterware in exclusive mode without starting CRS
-nowait Do not wait for OHAS to start
Crsctl start cluster [[- all] | [- n [...]
Start CRS stack
Where
Default Start local server
-all Start all servers
-n Start named servers
Server [...] One or more blank-separated server names
Crsctl start ip-A {|} / /
Start an IP on the given interface with specified net mask
Where
IP_name Name which resolves to an IP. If it is not a fully qualified domain name then standard name search will be used.
IP_address IP address
Net_mask Subnet mask for the IP to start
Interface_name Interface on which to start the IP
Crsctl start testdns [- address] [- port] [- domain] [- once] [- v]
Start a test DNS listener that listens on the given address at the given port and for specified domain
Where
IP_address IP address to be used by the listener (defaults to hostname)
Port The port on which the listener will listen. Default value is 53.
Domain The domain query for which to listen. By default, all domain queries are processed.
-once Flag indicating that DNS listener should exit after one DNS query packet is received
-v Verbose output
[root@db1] # crsctl status-h
Usage:
Crsctl status {resource | type | serverpool | server} [|-w] [- g]
Where
Name CRS entity name
-w CRS entity filter
-g Check if CRS entities are registered
Crsctl status ip-A {|}
Check if the IP is alive
Where
IP_name Name which resolves to an IP. If name is not fully qualified domain name then standard name search will be used.
IP_address IP address
Crsctl status testdns [- address] [- port] [- v]
Check status of DNS server for specified domain
Where
IP_address DNS server address (defaults to hostname)
Port The port on which the DNS server is listening. Default value for the port is 53.
-v Verbose output
Thank you for reading this article carefully. I hope the article "how to use oracle rac crsctl commands" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.