Get the App
SLTechnology News&Howtos  ›  Database  › 

Recovery of OCR, using physical backup

Shulou Source: shulou.com Published: 2022-06-01 04:40:27 11月16日 Update

*******************************

Recovery using OCR physical backup:

Use physical backups of OCR files to restore OCR files to disk groups:

First, find out which host the backup is on, assuming node1.

/u01/app/11.2.0/grid/bin/ocrconfig -showbackup manual

Stop crs on all nodes

/u01/app/11.2.0/grid/bin/crsctl stop crs

Start asm on node1:

/u01/app/11.2.0/grid/bin/crsctl start crs -excl -nocrs

Check if crs resource is running, it should not be running

CRS-2613: Could not find resource 'ora.crsd', only crsctl status res ora.crsd -init

/u01/app/11.2.0/grid/bin/crsctl status res ora.crsd

CRS-4535: Cannot communicate with Cluster Ready Services

CRS-4000: Command Status failed, or completed with errors.

3. Restore ocr files to disk group:

[root@node1 ~]# /u01/app/11.2.0/grid/bin/ocrconfig -restore /u01/backup_20141118_020104.ocr

If logical backup recovery is used:

/u01/app/11.2.0/grid/bin/ocrconfig -import /u01/ocr.dmp

4. Check the ocr file:

[root@node1 ~]# /u01/app/11.2.0/grid/bin/ocrcheck

Stop crs on node1:

/u01/app/11.2.0/grid/bin/crsctl stop crs -f

Start crs on node1 and node2:

/u01/app/11.2.0/grid/bin/crsctl start crs

7. Perform cluvfy check crs on node1:

cluvfy comp ocr -n all -verbose

*******************************

Tags: Backup file check physical run host command disk node resource logic will report Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Linux Shulou Tech Info macOS MariaDB