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

 
 Home
 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
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

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

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

   
  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.

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

  2. 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.


   
��  
 
 
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 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.