Your browser does not support JavaScript. This help page requires JavaScript to render correctly.
Skip Headers
Previous
Previous
 
Next
Next

Maintaining the Oracle Local Registry

You maintain the Oracle Local Registry using the OCRCHECK, OCRDUMP, and OCRCONFIG utilities with the -local option.

To check the status of the OLR:

Use the OCRCHECK utility, as shown in the following example:

ocrcheck -local

This command produces output similar to the following:

Status of Oracle Cluster Registry is as follows :
        Version                  :          3
        Total space (kbytes)     :     262132
        Used space (kbytes)      :       9200
        Available space (kbytes) :     252932
        ID                       :  604793089
        Device/File Name         : /orahome/cdata/localhost//ldata.ocr
                                   Device/File integrity check succeeded
        Device/File Name         : /orahome/cdata/localhost//lmirror.ocr
                                   Device/File integrity check succeeded
        Local OCR integrity check succeeded

To view the contents of the OLR:

Use the OCRDUMP utility to display the contents of the OLR to the text terminal that initiated the program, as follows:

$ ocrdump -local -stdout

To export the OLR to a file:

Use the OCRCONFIG utility, as shown in the following example:

$ ocrconfig –local –export file_name

To import a specified file to the OLR:

Use the OCRCONFIG utility, as shown in the following example:

$ ocrconfig –local –import file_name

To change the location of the OLR file on the local node:

To modify the olr.loc file on the local node using the OCRCONFIG utility:

$ ocrconfig –local –repair olr file_name

The olr keyword used with the -repair option is valid only when -local is used.