Oracle RAC won’t start cleanly when the Oracle Cluster Registry (OCR) is missing, corrupt, or out of sync across nodes. Fixing it means restoring the OCR from a valid automatic or manual backup, then confirming the restore with ocrcheck and a clean clusterware restart on every node. The key condition: never run OCR repair or replacement commands while the cluster stack is up, and never overwrite the only surviving copy. If no usable backup exists, the path shifts to recreating the OCR on ASM or a supported shared filesystem.

The OCR holds cluster and resource configuration, which is why a bad OCR looks like a cluster-wide failure rather than a database error. On Oracle 12c Release 2 and later, Oracle moved much of that configuration into the Oracle Local Registry (OLR) and the Grid Infrastructure Management Repository, but the OCR remains the authoritative registry for cluster-wide resources and still must be healthy for crsctl, srvctl, and related tools to work reliably. Exact command behavior and available options vary by Grid Infrastructure release, so confirm syntax with ocrconfig -help on the installed version before executing anything.

What the OCR does and why it fails

The OCR stores cluster resource definitions, profiles, and configuration metadata shared by all nodes. Each node also has an OLR holding node-local metadata. Because the OCR is shared, corruption caused by storage problems, an interrupted write, a lost voting disk path, or a failed patch can affect the whole cluster at once. Cardinality matters too: OCR can run as a single copy or with a mirrored configuration on ASM or supported shared storage, and mirroring only helps if the surviving copies are actually intact.

Typical symptoms point to the OCR but don’t prove it. Common ones include CRS-0215 or OCR-related errors during clusterware startup, ocrcheck returning a failed status, crsctl check crs reporting the CSS or CRS stack as offline on all nodes, and srvctl commands failing with configuration errors. Lost voting disks can produce overlapping symptoms, so verify voting disk health separately with crsctl query css votedisk before you assume the OCR is the only problem.

The most important distinction is between a corrupt OCR and an inaccessible one. If the OCR is on ASM and the ASM disk group mounting the OCR is offline or the ASM instance won’t start, the OCR may be intact but unreachable. Restoring a backup in that situation can destroy a recoverable configuration. Confirm that underlying storage and ASM are healthy first, then decide whether the problem is corruption, misconfiguration, or availability.

Prerequisites before you touch the OCR

Work through these checks before running any repair command, because OCR operations during a live cluster can propagate a bad state to surviving copies.

Establish root or grid access on every node and know which user owns the OCR binaries in your release. Capture the current state: ocrcheck, crsctl stat res -t, crsctl check crs, olsnodes -s, and crsctl query css votedisk on each node. Locate every OCR device and backup. Run ocrconfig -showbackup and, where supported, ocrconfig -local -showbackup. Record physical paths, ASM disk groups, and file systems. Copy the current OCR files or ASM disk group metadata somewhere safe before changing anything, even if they appear corrupt. Confirm a recent automatic backup exists and note its timestamp. Backups are consumed oldest-first, so an aggressive purge or an unnoticed backup failure can leave you with nothing current. Know your Grid Infrastructure version. Backup locations, command options, and the split between OCR and OLR differ between 11g, 12c, 18c, 19c, and 21c.

Do not proceed to a restore while other cluster nodes are starting or shutting down. A restore is a cluster-wide operation even when you run it from one node.

Fix path 1: restore the OCR from a valid backup

Restoring from backup is the normal fix when the OCR is corrupt but a usable backup exists. The central command is ocrconfig -restore, which requires the cluster stack to be stopped on all nodes in most supported configurations because it replaces the OCR contents.

1: Stop the clusterware on every node. From the grid owner on each node, run crsctl stop crs (or crsctl stop has depending on version). On the node where you’ll restore, you may need crsctl stop crs -f if the stack hangs. Confirm with crsctl check crs that every node reports the stack down. 2: Verify the backup you intend to use. Run ocrconfig -showbackup and identify the newest backup whose timestamp predates the failure. Inspect the backup location on disk or in ASM so you can reference it precisely in the restore command. 3: Run the restore from one node. Use ocrconfig -restore <backup_file_path>, substituting the full path from the previous step. Watch for confirmation that the restore completed; a returned prompt with no error means the OCR was replaced. 4: Run ocrcheck on the restore node. You want a status of “SUCCEEDED” and a configuration version reported. If it fails, stop here and treat it as a storage or ASM issue rather than retrying blindly. 5: Start the clusterware on the restore node first, then bring up the remaining nodes one at a time. Run crsctl start crs on the restore node, wait for crsctl check crs to show the stack up, then proceed to the next node. 6: Confirm cluster and resource health. Run olsnodes -s, crsctl stat res -t, and ocrcheck on each node. Verify voting disks and services come back before declaring success.

Expect a short outage while the stack is down. If the stack refuses to stop, investigate blocking resources with crsctl stat res -t before forcing anything, because a forced stop can mask the underlying failure and make recovery harder.

Fix path 2: restore when the OCR is on ASM

When the OCR lives in an ASM disk group, the restore node must have ASM running to reach the backup and target locations. In many supported configurations, the OCR and ASM disk groups are accessed before the full CRS stack, so restoring may require the grid infrastructure to be partially up.

1: Confirm ASM health on the restore node. Verify the ASM instance is running and the disk group holding the OCR and backup is mounted. If ASM won’t start, fix ASM before attempting an OCR restore, because the OCR command can’t reach its target otherwise. 2: Stop the clusterware on all nodes as in the previous path, keeping ASM available where the restore requires it. 3: Locate the automatic backup inside ASM. Use ocrconfig -showbackup and, when available, the asmcmd browsing tools to read the directory where backups are stored. Note the ASM path, since you’ll pass it to the restore command. 4: Run the restore: ocrconfig -restore +<disk_group>/<path_to_backup_file>. Use a fully qualified path exactly as shown by the backup listing. 5: Run ocrcheck and confirm success. If ASM is reachable but check fails, the backup itself may be truncated; move to the next-newest backup rather than a random older file. 6: Restart the stack across nodes in the same order used in the file-based path and re-verify cluster resources.

Because ASM is involved, a restore against a backup in a disk group that is later dismounted can fail partway. Keep the disk group mounted throughout and avoid parallel maintenance on the same ASM instance.

Fix path 3: recreate the OCR when no backup is usable

If every backup is corrupt, too old to match the current cluster, or missing, you can recreate the OCR. This is a bigger operation: it resets registry contents and depends on the resources being re-registered or restored from configuration, and on supported versions it requires the cluster to be taken down and rebuilt around a new registry.

1: Confirm no usable backup exists. Run ocrconfig -showbackup and, where supported, check local backups. If a recent backup exists, restore is almost always safer than recreation. 2: Stop the clusterware on all nodes and confirm the stack is down. 3: Export the current, even if damaged, OCR metadata where possible so you retain evidence: ocrconfig -export may fail on corruption, but it can succeed enough to document what existed. 4: Recreate the registry with ocrconfig -create on the supported target, following the specific syntax for your release—on ASM this typically means pointing at a suitable disk group and often a device location within it. Confirm the exact argument form from ocrconfig -help on your installed version, because the options for file-based versus ASM-based creation differ. 5: Verify the new OCR: ocrcheck should report success and a fresh configuration version. 6: Re-register or restore the cluster configuration as your version requires. This is the riskiest part: recreated OCRs don’t contain the old resource definitions automatically. In many environments you’ll rely on a supported clusterware restore or configuration method for your version, and you should confirm with Oracle documentation or support which mechanism applies. 7: Start the stack and inspect every resource. Expect some resources to need reconfiguration, and don’t assume the cluster is complete until crsctl stat res -t matches the expected inventory.

Recreation is the path where estimating risk is hardest. For a production cluster, the supported and predictable route usually involves Oracle Support, because the configuration step after recreation varies by release and can silently drop resource definitions that applications depend on.

Treating a healthy OCR as the real fix

Restoring a backup that’s weeks old works, but it also sheds every configuration change made after that backup. If nodes were added, services moved, or profiles changed, you may finish the restore and still find missing resources. That’s why a restore should be followed by a reconciliation pass: compare srvctl config output for databases, services, and node applications against the intended design and re-create what’s missing.

The durable fix is making backups predictable and verifying them. Check ocrconfig -showbackup regularly so a silently failing backup job doesn’t leave you with no recent copy, and confirm that OCR mirroring is positioned on storage independent from the OCR’s primary location. Backups written to the same failing disk or the same overworked ASM disk group are not real protection. A simple monthly check—restore a backup to a test environment and run ocrcheck—catches corruption before an outage does.

OCR vs. OLR and voting disks: don’t fix the wrong component

Three components get confused during a cluster outage, and fixing the wrong one wastes a maintenance window.

Component Scope Typical failure signal Safe first response
OCR Cluster-wide ocrcheck failure, srvctl errors Restore from backup, then verify
OLR Node-local Node-specific startup failures Investigate node logs, repair or rebuild OLR per version guidance
Voting disks Cluster membership CSS missing-disk errors, node eviction Query votedisk, restore redundancy before touching OCR

If one node fails but others are healthy, the OLR is the better suspect. If all nodes lose cluster membership but ocrcheck passes, voting disks are more likely. Restoring the OCR for either problem can make a recoverable situation worse. Confirm which component’s check is failing before you open a restore window.

Verifying success and setting a stop condition

Success is more than a clean ocrcheck. Do all of these before you close the change:

ocrcheck returns SUCCEEDED on every node. olsnodes -s lists all nodes as active. crsctl check crs shows CSS, CRS, and EVM resources up on each node. crsctl stat res -t shows the expected resource inventory, not a subset. Voting disk health is confirmed with crsctl query css votedisk. Application services connect and database instances start through srvctl.

If ocrcheck passes but resources remain missing, you’re in the reconciliation phase, not a new OCR failure. Re-create the missing resources or apply the supported configuration restore for your version.

Stop and involve Oracle Support or a qualified DBA when: no backup restores cleanly, recreation fails midway, ASM can’t start or the disk group holding the OCR is inaccessible, ocrcheck alternates between success and failure across nodes, or you’re outside supported version combinations for the commands you’re about to run. Those situations can turn a fix into data or configuration loss if attempted with guesswork.

Frequently asked questions

Can I fix the OCR while the cluster is running? No for a restore or replace. Those operations require the cluster stack to be down on all nodes in supported configurations. A plain ocrcheck or ocrconfig -showbackup is read-only and safe to run at any time.

Will restoring an older OCR backup lose settings? Yes. Anything configured after the backup timestamp—services, node applications, profiles—may be missing, so plan a reconciliation pass after the restore rather than assuming completion at ocrcheck.

Is OCR damage the same as OLR damage? No. OCR affects cluster-wide configuration across nodes; OLR is node-local metadata. Diagnose which check is failing before choosing a fix, because the repair paths are different and touching the wrong one extends the outage.

This article is general technical education on Oracle Grid Infrastructure administration, not a substitute for version-specific Oracle documentation, support guidance, or a qualified DBA’s judgment. Production recovery decisions should be validated against your installed release and supported procedures.