Oracle cluster basic query commands

Query the master node - grid user executes oclumon manage -get MASTER REPLICA
+ASM1:/home/grid@db1> oclumon manage -get MASTER REPLICA

Master = db1
Replica = db2

Cluster resource status crsctl check crs

+ASM1:/home/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

Place vote disks crsctl query css votedisk

+ASM1:/home/grid@db1> crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   a8f3865e32764f52bf0e232f56abee3d (/dev/mapper/crs1) [CRS]
 2. ONLINE   0b5a32f5ab2e4f6bbf0eb66fe3eddb66 (/dev/mapper/crs2) [CRS]
 3. ONLINE   7b547135ac334f68bf977e42a1b9ae8c (/dev/mapper/crs3) [CRS]
 4. ONLINE   2b71acf5df4c4f02bf43a9d704478b32 (/dev/mapper/crs4) [CRS]
 5. ONLINE   8067c78fe2c44f1ebfb35be9d71de25e (/dev/mapper/crs5) [CRS]
Located 5 voting disk(s).

Cluster OCR configuration: ocrcheck

[root@db1 ~]#  ocrcheck
Status of Oracle Cluster Registry is as follows :
     Version                  :          3
     Total space (kbytes)     :     262120
     Used space (kbytes)      :       2948
     Available space (kbytes) :     259172
     ID                       :  623071370
     Device/File Name         :       +CRS
                                    Device/File integrity check succeeded

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

     Cluster registry integrity check succeeded

     Logical corruption check succeeded

OCR automatic backup: ocrconfig -showbackup

ASM1:/home/grid@db1> ocrconfig -showbackup

db1 2023/03/02 16:28:40 /u01/app/grid/product/11.2.0/grid_1/cdata/db-cluster/backup00.ocr

db1 2023/03/02 12:28:40 /u01/app/grid/product/11.2.0/grid_1/cdata/db-cluster/backup01.ocr

db1 2023/03/02 08:28:40 /u01/app/grid/product/11.2.0/grid_1/cdata/db-cluster/backup02.ocr

db1 2023/03/01 12:28:38 /u01/app/grid/product/11.2.0/grid_1/cdata/db-cluster/day.ocr

db1     2023/02/24 04:28:26     /u01/app/grid/product/11.2.0/grid_1/cdata/db-cluster/week.ocr
PROT-25: Manual backups for the Oracle Cluster Registry are not available

To verify the integrity of the software - use grid user
cluvfy comp software -verbose      

 Cluvfy's inspection of cluster ASM components ---- use grid user
 cluvfy comp asm -n db1,db2 -verbose

cluvfy stage -pre crsinst -n db1,db2 -verbose     

cluvfy comp nodecon -n db1,db2 -verbose

Perform a post-check of the hardware and operating system on the two nodes --grid user executes
cluvfy stage -post hwos -n db1,db2


Check whether there is shared storage --grid user executes
cluvfy comp ssa -n all -verbose

Check the connectivity between nodes
cluvfy comp nodereach -n all -verbose


Check to execute cluvfy comp nodecon -n all -verbose for the specified network interface --grid user

Check ons ​​vip gsd --grid user execute
cluvfy comp nodeapp -n all -verbose

Verify user equivity
cluvfy comp admprv -n all -o user_equiv -verbose

Check whether the clusterware components are healthy
cluvfy comp crs -n all -verbose
cluvfy comp crs -allnodes --19C command
Check whether the ocr is healthy - no risk
cluvfy comp ocr -n all -verbose

Cluster component check
cluvfy comp crs -n all -verbose
cluvfy comp clumgr -n all -verbose
cluvfy comp ocr -n all -verbose
cluster consistency check
cluvfy comp clu

Guess you like

Origin blog.csdn.net/kevinyu998/article/details/130465933