Export or Import of Oracle Cluster Registry (OCR) in RAC

Export or Import of Oracle Cluster Registry (OCR) in RAC

Oracle Export and import is other utility to take backup of OCR and Restore the OCR.
Oracle recommends you to use automatic or manual backups and use the ocrconfig -restore command instead of the ocrconfig -export and -import commands because Backup is not consistent snapshot in export. For consistent backup you need to shutdown the cluster on all nodes.

EXPORT the OCR
Exports OCR content to a file format.
Note: best practice is down the clusterware on all nodes then take the export backup at consistent state.

ocrconfig -export filename

Note:
1. ocrconfig -export and ocrconfig -import commands are compatible.
2. ocrconfig -manualbackup and ocrconfig -restore commands are compatible.

Import the OCR

1. List the nodes in your cluster from one node:

olsnodes

2. Stop Oracle Clusterware on all of the nodes:

crsctl stop crs

--force fully
crsctl stop crs -f

3. Start Clusterware in exclusively in one node:

crsctl start crs -excl

4. Stop the CRSD resource:

crsctl stop resource ora.crsd -init

5. Import OCR by running the following command as root:

ocrconfig -import file_name

6. Check the integrity of OCR:

ocrcheck

7. Stop Oracle Clusterware on the node which running in exclusive mode:

crsctl stop crs -f

8. Start the Oracle clusterware services on all nodes:

crsctl start crs

9. Verify the OCR integrity by cluvfy command:

cluvfy comp ocr -n all -verbose

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.