Examples

Example I-1 OCRCHECK Utility Sample Output

# ocrcheck

Status of Oracle Cluster Registry is as follows :
        Version                  :          4
        Total space (kbytes)     :     409568
        Used space (kbytes)      :      17012
        Available space (kbytes) :     392556
        ID                       :  467263828
        Device/File Name         : +ocrdg1
                                   Device/File integrity check succeeded
        Device/File Name         : +ocrdg2
                                   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 succeeded

Note:

The logical corruption check is only performed if you run the ocrcheck command as root.

Example I-2 shows using ocrcheck -local -config command to obtain OLR information.

Note:

Oracle supports using the ocrcheck -local command when both the Oracle Cluster Ready Services and Oracle High Availability Services stacks are OFFLINE on the local node.

See Also:

"The Oracle Clusterware Technology Stack" for more information about the Oracle Cluster Ready Services and Oracle High Availability Services stacks

Example I-2 Using OCRCHECK to Obtain OLR Information

$ ocrcheck -local -config

Oracle Local Registry configuration is :
        Device/File Name         : /scratch/oracle/crshome/cdata/rwsbg08.olr

Example I-3 shows using the ocrcheck -config -details command to obtain the ___location of OCR in an Oracle ASM disk group.

Example I-3 Using OCRCHECK to Obtain OCR Information

$ ocrcheck -config -details

Oracle Cluster Registry configuration is :
        Device/File Name         : +ocrvd11/mjk_1/OCRFILE/registry.255.842574113
        Device/File Name         : +ocrdv2/mjk_1/OCRFILE/registry.255.842574125

Example I-4 shows using the ocrcheck -details command to obtain a greater level of detail for the OCR configuration.

Example I-4 Using OCRCHECK to Obtain More OCR Information

$ ocrcheck -details

Status of Oracle Cluster Registry is as follows :
        Version                  :          4
        Total space (kbytes)     :     409568
        Used space (kbytes)      :      17012
        Available space (kbytes) :     392556
        ID                       :  467263828
        Device/File Name         : +OCRVD11/mycluster/OCRFILE/registry.255.842574113
                                   Device/File integrity check succeeded
        Device/File Name         : +OCRVD2/mycluster/OCRFILE/registry.255.842574125
                                   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 succeeded

Example I-5 shows an example of OCR located on a shared file system.

Example I-5 OCR Located on a Shared File System

$ ocrcheck -config

Oracle Cluster Registry configuration is :
        Device/File Name         : /nas/data.ocr
        Device/File Name         : /nas2/mirror.ocr
        Device/File Name         : /nas3/mirror2.ocr
.
.
.
Status of Oracle Cluster Registry is as follows :
        Version                  :          4
        Total space (kbytes)     :     409568
        Used space (kbytes)      :      17012
        Available space (kbytes) :     392556
        ID                       :  157485888
        Device/File Name         : /dev/raw/raw15
                                   Device/File integrity check succeeded
        Device/File Name         : /dev/raw/raw17
                                   Device/File integrity check succeeded
        Device/File Name         : /dev/raw/raw16
                                   Device/File integrity check succeeded
                                   Device/File not configured
                                   Device/File not configured
        Cluster registry integrity check succeeded 
        Logical corruption check succeeded

OCRCHECK creates a log file in the Grid_home/diag/crs/host_name/crs/trace directory. To change the log level, edit the Grid_home/srvm/admin/ocrlog.ini file.