Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 E-mail Us
 Oracle Articles
New Oracle Articles

 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog

 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Oracle Support

 SQL Tuning

 Oracle UNIX
 Oracle Linux
 Remote s
 Remote plans
 Application Server

 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S


 Consulting Staff
 Consulting Prices
 Help Wanted!


 Oracle Posters
 Oracle Books

 Oracle Scripts

Don Burleson Blog 









Importing the Oracle Cluster Registry with OCR Exports

Oracle RAC Cluster Tips by Burleson Consulting

This is an excerpt from the bestselling book Oracle Grid & Real Application Clusters.  To get immediate access to the code depot of working RAC scripts, buy it directly from the publisher and save more than 30%.

To ensure the OCR files are recoverable, in addition to using the automatically created OCR backup files, export the OCR contents before and after making significant configuration changes. This is done by using the ocrconfig -export command. This will enable the restoration of the OCR if the configuration changes cause errors. For example, if there are unresolvable configuration problems, or if the clusterware will not restart after making changes, restore the configuration using one of the following platform-specific procedures. The configuration cannot be restored from an automatically created OCR backup file using the -import option. Instead, the -restore option must be used.

Importing Oracle Cluster Registry Content on UNIX-Based Systems

1.      Shut down all of the nodes in the cluster and restart one of them in single-user mode.

2.      Import a valid OCR export file using the ocrconfig -import command from any node.

3.      Restart all the nodes in the cluster in multi-user mode.

To avoid stopping the entire cluster, this alternate method can be used:

1.      Update the inittab entries on all the nodes and remove the CRS-specific entries. Retain a copy of the original inittab file.

2.      Run the /etc/init.d/ stop command on all the nodes.

3.      Import the valid OCR export file using the ocrconfig -import command from any cluster node.

4.      Restore the original inittab file on all nodes.

5.      Run the /etc/init.d/ start command on all nodes.

6.      Run the /etc/init q command.

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.

2.     Import a valid OCR export file using the ocrconfig -import command from one of the cluster nodes.

3.     Restart all of the affected services on all cluster nodes.

The ocrconfig Tool Command Syntax and Options

Execute OCR commands from a user with administrative privileges on UNIX-based platforms or from a user with Administrator privileges on Windows-based systems. The OCR command syntax is as follows:

ocrconfig -<option>




To export the contents of the OCR into a target file.


To import OCR contents from a previously exported OCR file.


To restore the OCR from an automatically created OCR backup file.

Table 8.12: Common OCR command options

To export the OCR contents to a binary file, for example, use the ocrconfig command with the following syntax where file_name is the file to which the OCR contents are to be exported:

ocrconfig -export file_name

The export file is not editable. If OCR clients such as the clusterware are running when an export is attempted, then Oracle will report an error.


This is an excerpt from the bestselling book Oracle Grid & Real Application Clusters, Rampant TechPress, by Mike Ault and Madhu Tumma.

You can buy it direct from the publisher for 30%-off and get instant access to the code depot of Oracle tuning scripts.


Oracle Training at Sea
oracle dba poster

Follow us on Twitter 
Oracle performance tuning software 
Oracle Linux poster


Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


Copyright © 1996 -  2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by Conversational