Database Reference
In-Depth Information
If additional OCR files need to be created, there are two ways of doing so.
1.
Create a new diskgroup with Normal or High redundancy and create or relocate the
current OCR file to this new diskgroup. Oracle Clusterware will maintain mirrored images
of the OCR file.
2.
Create a new diskgroup with external redundancy and, using the ocrconfig utility, add a
new OCR file using the ocrconfig -add command.
[root@ssky3l11p1 ~]# /u01/app/12.1.0/grid/bin/ocrconfig -add +GRID_DATA2
[root@ssky3l11p1 ~]# /u01/app/12.1.0/grid/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 4
Total space (kbytes) : 409568
Used space (kbytes) : 1264
Available space (kbytes) : 408304
ID : 1817192482
Device/File Name : +GRID_DATA
Device/File integrity check succeeded
Device/File Name : +GRID_DATA2
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
OCR Configuration (ocrconfig) Utility
This utility provides various options for configuration and administration of the OCR, such as export, import, restore,
and so forth.
1.
Export of the OCR could be performed while the registry is online or offline. To perform an
export the following syntax is used:
ocrconfig -export <filename > [-s online]
[root@ssky3l11p1 ~]# /u01/app/12.1.0/grid/bin/ocrconfig -export OCRExpPostSRV.dmp
-s online
In the preceding output, an export of the OCR is taken while the OCR is in an online state by using ocrconfig .
2.
An OCR could be restored from either an export dump file or from a backup file. To import
from an OCR file the following syntax is used:
ocrconfig -import <filename>
The OCR is restored to a previous state by the import operation (from a previously exported file). In certain
situations, it may be required to bounce the clusterware.
3.
Oracle performs an automatic backup of the OCR once every four hours while the system
is up. While performing automatic backups, Oracle maintains three previous versions
of the backup from that day as well a backup copy taken at the beginning of the day and
another taken at the beginning of the week before purging the rest.
 
Search WWH ::




Custom Search