Oracle study--aix RAC under OCR disk failure (PROT-602)

Source: Internet
Author: User
Tags cdata

Oracle study--aix RAC under OCR disk failure (PROT-602)

*******************************************************************************
* Welcome to AIX Version 5.3! *
*                                                                             *
* The README file In/usr/lpp/bos for information pertinent to *
* This release of the AIX Operating System. *
*******************************************************************************
Failure Phenomena

[[email protected]/] #crsctl check CRS
Failure 1 Contacting CSS daemon
Cannot communicate with CRS
EVM appears healthy


[[email protected]/] #ocrcheck
prot-602:failed to retrieve data from the cluster registry


----OCR disk was mistakenly deleted by the user!


Workaround:

Recover with Ocrconfig tool:

[[email protected]/] #ocrconfig
Name:
Ocrconfig-configuration tool for Oracle Cluster Registry.
Synopsis:
ocrconfig [option]
Option
-export <filename> [-S online]
-Export Cluster register contents to a file
-import <filename>-Import cluster registry contents from a file
-upgrade [<user> [<group>]
-Upgrade cluster registry from previous version
-downgrade [-version <version String>]
-Downgrade cluster registry to the specified version
-backuploc <dirname>-Configure Periodic backup location
-showbackup-show Backup Information
-restore <filename>-Restore from physical backup
-replace Ocr|ocrmirror [<filename>]-Add/replace/remove a OCR device/file
-overwrite-overwrite OCR configuration on disk
-repair ocr|ocrmirror <filename>-Repair Local OCR configuration
-help-print out this Help information
Note:
A log file would be created in
$ORACLE _home/log/You have a file creation privileges in the above directory before
Running this tool.

1) Repair by repair
[[email protected]/] #ocrconfig-repair OCR

[[email protected]/] #ocrcheck
Prot-601:failed to initialize Ocrcheck


To view the OCR device files:

[[email protected]/] #ls-l/dev |grep OCR
BRW-RW----1 Oracle DBA 123, 1 Feb 14:54 RAC_OCR
BRW-RW----1 root system 123, 12:01 RAC_OCR2
Crw-r-----1 Root dba 123, 1 Feb 12:16 RRAC_OCR
-rw-r--r--1 root system 139264000 Feb 13:50 RRAC_OCR1
CRW-RW----1 Oracle DBA 123, 12:16 Rrac_ocr2


[[email protected]/] #ocrconfig-repair OCR/DEV/RRAC_OCR
[[email protected]/] #ocrcheck
Prot-601:failed to initialize Ocrcheck


[[email protected]/] #ocrconfig-replace OCR/DEV/RRAC_OCR
PROT-1: Failed to initialize Ocrconfig

2) repair with OCR backup:
[[email protected]/] #ocrconfig-showbackup


To view Backup data:
[[email protected]/] #cd/u01/crs_1/cdata/crs

[[email protected] CRS] #ls
BACKUP00.OCR DAY.OCR WEEK.OCR
[[email protected] CRS] #ls-L
Total 20256
-rw-r--r--1 root system 3457024 Feb 11:48 BACKUP00.OCR
-rw-r--r--1 root system 3457024 Feb 11:48 DAY.OCR
-rw-r--r--1 root system 3457024 Feb 11:48 WEEK.OCR
[[email protected] CRS] #ls-lt
Total 20256
-rw-r--r--1 root system 3457024 Feb 11:48 WEEK.OCR
-rw-r--r--1 root system 3457024 Feb 11:48 DAY.OCR
-rw-r--r--1 root system 3457024 Feb 11:48 BACKUP00.OCR

With A backup, use the Restore tool to fix:
[[email protected] CRS] #ocrconfig-RESTORE/U01/CRS_1/CDATA/CRS/DAY.OCR


[[email protected] CRS] #ocrcheck
Status of Oracle Cluster Registry is as follows:
Version:2
Total Space (Kbytes): 130984
Used Space (Kbytes): 3252
Available Space (Kbytes): 127732
id:133619783
Device/file Name:/DEV/RRAC_OCR
Device/file Integrity Check Succeeded
Device/file Not Configured
Cluster Registry Integrity Check succeeded

[[email protected] CRS] #crsctl Check CRS
CSS appears healthy
CRS appears healthy
EVM appears healthy


[[email protected] CRS] #crs_stat-t
Name Type Target State Host
------------------------------------------------------------
Ora .... 07.lsnr Application Online Online aix207
ORA.AIX207.GSD Application Online Online aix207
Ora.aix207.ons Application Online Online aix207
ORA.AIX207.VIP Application Online Online aix207
Ora .... 08.lsnr Application Online Online aix208
ORA.AIX208.GSD Application Online Online aix208
Ora.aix208.ons Application Online Online aix208
ORA.AIX208.VIP Application Online Online aix208
Ora.prod.db Application Online Online aix207
Ora....d1.inst Application Online Online aix207
Ora....d2.inst Application ONLINE OFFLINE aix208

------Repair Success!!!

This article is from the "Tianya blog," Please make sure to keep this source http://tiany.blog.51cto.com/513694/1745001

Oracle study--aix RAC under OCR disk failure (PROT-602)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.