 |
|
OCRCONFIG Command
Tips
Oracle Database Tips by Donald Burleson |
Importing Oracle Cluster
Registry Content on Windows-Based Systems
1. Stop the following OCR
clients using the Service Control Panel:
OracleClusterVolumeService, OracleCMService,
OracleEVMService,
OracleCSService, and the OracleCRService.
-
Import a valid OCR export file using the
ocrconfig -import command from one of the cluster nodes.
-
Restart all of the affected services on all
cluster nodes.
The OCRCONFIG Tool Command
Syntax and Options
You execute OCR commands, such as OCRCONFIG, from a user with
administrative privileges on UNIX-based platforms or from a user
with Administrator privileges on Windows-based systems. The OCRCONFIG
command syntax is as follows:
ocrconfig
-<option>
Option |
Purpose |
-export |
To export the contents of the OCR into
a target file. |
-import |
To import OCR contents from a
previously exported OCR file. |
-restore |
To restore the OCR from an
automatically created OCR backup file. |
The OCRCONFIG Tool Command Syntax and Options
To export the OCR contents to a binary file, for example, use the
OCRCONFIG command with the export syntax (where file_name is
the file to which you want to export the OCR contents):
ocrconfig -export file_name
The OCRCONFIG command export file is not editable. If OCR clients
such as the clusterware are running when you attempt an export, then
Oracle will report an OCRCONFIG error.
To make a backup, use the OCRCONFIG tool with the showbackup option
to identify the backup files, and then copy each file to a location
that is redundant to the location of the original OCR backup file.
This ensures that there are at least two copies of each OCR backup
file.
ocrconfig -showbackup
Oracle also recommends that the OCR location reside on RAID arrays.
If possible, use a backup location that is shared by all nodes in the
cluster. The default target location of each OCR backup file is as
follows where <cluster name> is the name assigned to
the cluster when CRS was installed:
/cdata/
This OCRCONFIG backup location can be changed by using the
following syntax:
ocrconfig -backuploc
You can also run the OCRCONFIG repair and OCRCONFIG replace
commands.
This OCRCONFIG command must be run as root user when HA service is
started but CRS must be stopped.
ocrconfig -repair -replace +DAT2 -replacement
+DATA1
 |
Is your RAC database Healthy?
Get the experts at Burleson Consulting to conduct a two day
RAC
health check and ensure the health of your RAC database.
Why guess? Have your RAC database certified by experienced RAC
experts. |
|
|