PROT-302: Failed to initialize ocrdump

[root@r2 bin]# pwd
/u01/app/oracle/product/10.2.0/crs_1/bin
[root@r2 bin]# ls
cemutlo crs_getperm dbhome evmwatch kgmgrO ocrconfig racgmain
cemutlo.bin crs_getperm.bin diagcollection.pl evmwatch.bin kgpmon ocrconfig.bin racgons
cemutls crs_profile echodo evt.sh lbuilder ocrData_r2.tar.gz racgons.bin
cemutls.bin crs_profile.bin evmd extjob lcsscan ocrdump racgvip
clscfg crs_register evmd.bin extjobo linkshlib ocrdump.bin racgwrap
clscfg.bin crs_register.bin evminfo extjobO lmsgen ocssd racgwrap.sbs
clsfmt crs_relocate evminfo.bin extjoboO loadpsp ocssd.bin rawutl
clsfmt.bin crs_relocate.bin evmlogger genagtsh loadpspO oerr sclsspawn
clsid crs_setperm evmlogger.bin genclntsh localconfig oifcfg srvctl
clsid.bin crs_setperm.bin evmmkbin genclntst lsdb oifcfg.bin unzip
cluutil crs_start evmmkbin.bin genezi lsnodes olsadmintool usrvip
cluvfy crs_start.bin evmmklib gennfgt lsnodes.bin olsnodes vipca
coraenv crs_stat evmmklib.bin gennttab lxchknlb olsnodes.bin xmlwf
coreData_r2.tar.gz crs_stat.bin evmpost genorasdksh lxegen olsoidsync zip
crsctl crs_stop evmpost.bin gensyslib lxinst onsctl
crsctl.bin crs_stop.bin evmshow gsd oclsmon oraenv
crsd crstmpl.scr evmshow.bin gsdctl oclsmon.bin osdbagrp
crsData_r2.tar.gz crs_unregister evmsort gsd.sh ocrcheck racgeut
crsd.bin crs_unregister.bin evmsort.bin kgmgr ocrcheck.bin racgevtf
[root@r2 bin]# ./ocrdump -backupfile mybackupocr
PROT-302: Failed to initialize ocrdump

[root@r2 bin]#

OCRDUMP -BACKUPFILE Is Failing With PROT-302 [ID 782233.1]

Modified 27-MAY-2009Type PROBLEMStatus PUBLISHED

In this Document
Symptoms
Cause
Solution
References


Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 10.2.0.4
This problem can occur on any platform.

Symptoms

The command : ocrdump -backupfile <filename> ;used todump contents of a backup Oracle Cluster Registry (OCR)file will fail with error PROT-302: Failed to initialize ocrdump.

Eg.
$ORA_CRS_HOME/bin/ocrdump-backupfile /scratch/oracle-10.2.0/crs/cdata/crs/day.ocr
PROT-302: Failed to initialize ocrdump

$ORA_CRS_HOME/log/<hostname>/client/ocrdump_<pid>.log shows:
-----------------------------------------------------------------------------------------------

Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005
Oracle. All rights reserved.
2005-12-08 08:46:03.836: [ OCRDUMP][3086874304]ocrdump starts...
2005-12-08 08:46:03.838: [ OCROSD][3086874304]utstoragetype:
/scratch/oracle-10.2.0/crs/cdata/crs/day.ocr is on FS type 61267. Not supported.
2005-12-08 08:46:03.838: [ OCROSD][3086874304]utopen:6'': OCR location
/scratch/oracle-10.2.0/crs/cdata/crs/day.ocr configured is not valid storage type. Return code [37].
2005-12-08 08:46:03.838: [ OCRRAW][3086874304]proprinit: Could not open raw device
2005-12-08 08:46:03.838: [ OCRAPI][3086874304]a_init:7!: Backend init unsuccessful : [37]
2005-12-08 08:46:03.838: [ OCRDUMP][3086874304]Failed to initailized OCR context. Error [PROC-37: Oracle Cluster Registry does not support the storage type configured] [37].
2005-12-08 08:46:03.838: [ OCRDUMP][3086874304]Failed to initialize ocrdump stage 2
2005-12-08 08:46:03.838: [ OCRDUMP][3086874304]Exiting [status=failed]...

Cause

The command "ocrdump -backupfile filename" fails to dump the content of the specifiedbackup file if the backup file is not placed on an OCR-compatible device,which can be used to configure as an OCR device.

This issue was reported in Bug 4966320, Bug 7421563, Bug 5893432, Bug 5654475, Bug 7698962 fixed via internal unpublished Bug 4870817

Solution

This bug is known to havebeen fixed in latest CRS bundle patch for 10.2.0.4. For more information, please consultNote 405820.1

Workaround :
---------------------

Move the backup file to a compatible deivce. A compatible device is the type of device that can be used to configure OCR. For example, the backup file can be placed on the same device where OCR device is configured.

References

BUG:4966320 - OCRDUMP -BACKUPFILE FAILED WITH PROT-302
BUG:5654475 - OCRDUMP -BACKUPFILE IS FAILING WITH PROT-302
BUG:5893432 - OCRDUMP -BACKUPFILE BACKUP.OCR FAILS WITH PROT-302: FAILED TO INITIALIZE OCRDUMP
BUG:7421563 - OCRDUMP -BACKUPFILE IS FAILING WITH PROT-302

Show Related InformationRelated


Products
  • Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
Keywords
OCR; RAW DEVICE
Errors
PROT-302

[root@h1 ~]# su - oracle
h1-> ls
a.txt bak.html Desktop ocr.dmp
h1-> mv ocr.dmp ocrdumpbak
h1-> ls
a.txt bak.html Desktop ocrdumpbak
h1-> ocrdump -h
Name:
ocrdump - Dump contents of Oracle Cluster Registry to a file.

Synopsis:
ocrdump [<filename>|-stdout] [-backupfile <backupfilename>] [-keyname <keyname>] [-xml] [-noheader]

Description:
Default filename is OCRDUMPFILE. Examples are:

prompt> ocrdump
writes cluster registry contents to OCRDUMPFILE in the current directory

prompt> ocrdump MYFILE
writes cluster registry contents to MYFILE in the current directory

prompt> ocrdump -stdout -keyname SYSTEM
writes the subtree of SYSTEM in the cluster registry to stdout

prompt> ocrdump -stdout -xml
writes cluster registry contents to stdout in xml format

Notes:
The header information will be retrieved based on best effort basis.
A log file will be created in
$ORACLE_HOME/log/<hostname>/client/ocrdump_<pid>.log. Make sure
you have file creation privileges in the above directory before
running this tool.

h1-> ocrdump ocrdmpbackup
h1-> ls
a.txt bak.html Desktop ocrdmpbackup ocrdumpbak
h1-> ocrdump -backupfile ocrdmpbackup.bak
PROT-302: Failed to initialize ocrdump
h1-> ocrconfig -showbackup

h1 2010/07/13 22:13:12 /u01/app/oracle/product/10.2.0/crs_1/cdata/crs

h1 2010/07/12 22:24:00 /u01/app/oracle/product/10.2.0/crs_1/cdata/crs

h2 2010/07/09 02:10:40 /u01/app/oracle/product/10.2.0/crs_1/cdata/crs

h1 2010/07/12 22:24:00 /u01/app/oracle/product/10.2.0/crs_1/cdata/crs

h2 2010/07/09 02:10:40 /u01/app/oracle/product/10.2.0/crs_1/cdata/crs
h1-> cd /u01/app/oracle/product/10.2.0/crs_1/cdata/crs
h1-> ll
total 16816
-rw-r--r-- 1 root root 4292608 Jul 13 22:13 backup00.ocr
-rw-r--r-- 1 root root 4292608 Jul 12 22:24 backup01.ocr
-rw-r--r-- 1 root root 4292608 Jul 13 22:13 day_.ocr
-rw-r--r-- 1 root root 4292608 Jul 12 22:24 day.ocr
h1-> ocrdump -backupfile /u01/app/oracle/product/10.2.0/crs_1/cdata/crs/backup01.ocr
PROT-302: Failed to initialize ocrdump
h1-> ls
backup00.ocr backup01.ocr day_.ocr day.ocr
h1-> cd
h1-> ls
a.txt bak.html Desktop ocrdmpbackup ocrdumpbak
h1-> ocrdump -backupfile thisdump
PROT-302: Failed to initialize ocrdump
h1-> ls
a.txt bak.html Desktop ocrdmpbackup ocrdumpbak
h1->

你可能感兴趣的:(init)