PROT-302: Failed to initialize ocrdump-程序员宅基地

技术标签: database  oracle  file  system  2010  Oracle  Oracle EBS  command  

[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-2009     Type PROBLEM     Status 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 to dump 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 specified backup 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 have been fixed in latest CRS bundle patch for 10.2.0.4.  For more information, please consult Note 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 Information Related


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->

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/aicon/article/details/5789288

智能推荐

适合入门的8个趣味机器学习项目-程序员宅基地

文章浏览阅读86次。首发地址:https://yq.aliyun.com/articles/221708谈到机器学习,相信很多除学者都是通过斯坦福大学吴恩达老师的公开课《Machine Learning》开始具体的接触机器学习这个领域,但是学完之后又不知道自己的掌握情况,缺少一些实际的项目操作。对于机器学习的相关竞赛挑战,有些项目的门槛有些高,参加后难以具体的实现,因此造..._scrath五子棋下载

oracle 12c avg,Oracle 12c新特性系列专题-安徽Oracle授权认证中心-程序员宅基地

文章浏览阅读83次。原标题:Oracle 12c新特性系列专题-安徽Oracle授权认证中心 随着Oracle database 12c的普及,数据库管理员 (DBA) 的角色也随之发生了转变。 Oracle 12c数据库对 DBA 而言是下一代数据管理。它让 DBA 可以摆脱单调的日常管理任务,能够专注于如何从数据中获取更多价值。未来我们会推出基于Oracle12c的技术文章,帮助DBA尽快掌握新一代数据库的新特性..._ilm add policy row store compress advanced row after

第七周项目三(负数把正数赶出队列)-程序员宅基地

文章浏览阅读150次。问题及代码:*Copyright(c)2016,烟台大学计算机与控制工程学院 *All right reserved. *文件名称:负数把正数赶出队列.cpp *作者:张冰 *完成日期;2016年10月09日 *版本号;v1.0 * *问题描述: 设从键盘输入一整数序列a1,a2,…an,试编程实现: 当ai>0时,ai进队,当ai<0时,将队首元素出队,当ai

Linux命名空间学习教程(二) IPC-程序员宅基地

文章浏览阅读150次。本文讲的是Linux命名空间学习教程(二) IPC,【编者的话】Docker核心解决的问题是利用LXC来实现类似VM的功能,从而利用更加节省的硬件资源提供给用户更多的计算资源。而 LXC所实现的隔离性主要是来自内核的命名空间, 其中pid、net、ipc、mnt、uts 等命名空间将容器的进程、网络、消息、文件系统和hostname 隔离开。本文是Li..._主机的 ipc 命名空间

adb强制安装apk_adb绕过安装程序强制安装app-程序员宅基地

文章浏览阅读2w次,点赞5次,收藏7次。在设备上强制安装apk。在app已有的情况下使用-r参数在app版本低于现有版本使用-d参数命令adb install -r -d xxx.apk_adb绕过安装程序强制安装app

随便推点

STM32F407 越界问题定位_stm32flash地址越界怎么解决-程序员宅基地

文章浏览阅读290次。如果是越界进入硬件错误中断,MSP 或者 PSP 保存错误地址,跳转前会保存上一次执行的地址,lr 寄存器会保存子函数的地址,所以如果在 HardFault_CallBack 中直接调用 C 语言函数接口会间接修改了 lr,为了解决这个问题,直接绕过 lr 的 C 语言代码,用汇编语言提取 lr 寄存器再决定后面的操作。由于 STM32 加入了 FreeRTOS 操作系统,可能导致无法准确定位,仅供参考(日常编程需要考虑程序的健壮性,特别是对数组的访问,非常容易出现越界的情况)。_stm32flash地址越界怎么解决

利用SQL注入上传木马拿webshell-程序员宅基地

文章浏览阅读1.8k次。学到了一种操作,说实话,我从来没想过还能这样正常情况下,为了管理方便,许多管理员都会开放MySQL数据库的secure_file_priv,这时就可以导入或者导出数据当我如图输入时,就会在D盘创建一个名为123456.php,内容为<?php phpinfo();?>的文件我们可以利用这一点运用到SQL注入中,从拿下数据库到拿下目标的服务器比如我们在使用联合查询注入,正常是这样的语句http://xxx?id=-1 union select 1,'你想知道的字段的内容或查询语句',

Html CSS的三种链接方式_html链接css代码-程序员宅基地

文章浏览阅读2.9w次,点赞12次,收藏63次。感谢原文:https://blog.csdn.net/abc5382334/article/details/24260817感谢原文:https://blog.csdn.net/jiaqingge/article/details/52564348Html CSS的三种链接方式css文本的链接方式有三种:分别是内联定义、链入内部css、和链入外部css1.代码为:<html>..._html链接css代码

玩游戏哪款蓝牙耳机好?2021十大高音质游戏蓝牙耳机排名_适合游戏与运动的高音质蓝牙耳机-程序员宅基地

文章浏览阅读625次。近几年,蓝牙耳机市场发展迅速,越来越多的消费者希望抛弃线缆,更自由地听音乐,对于运动人士来说,蓝牙耳机的便携性显得尤为重要。但目前市面上的大多数蓝牙耳机实际上都是“有线”的,运动过程中产生的听诊器效应会严重影响听歌的感受。而在“真无线”耳机领域,除了苹果的AirPods外,可供选择的产品并不多,而AirPods又不是为运动场景打造的,防水能力非常差。那么对于喜欢运动又想要“自由”的朋友来说,有没有一款产品能够满足他们的需求呢?下面这十款小编专门为大家搜罗的蓝牙耳机或许就能找到适合的!网红击音F1_适合游戏与运动的高音质蓝牙耳机

iOS 17 测试版中 SwiftUI 视图首次显示时状态的改变导致动画“副作用”的解决方法-程序员宅基地

文章浏览阅读1k次,点赞6次,收藏7次。在本篇博文中,我们在 iOS 17 beta 4(SwiftUI 5.0)测试版中发现了 SwiftUI 视图首次显示时状态的改变会导致动画“副作用”的问题,并提出多种解决方案。

Flutter 自定义 轮播图的实现_flutter pageview轮播图 site:csdn.net-程序员宅基地

文章浏览阅读1.9k次。  在 上篇文章–Flutter 实现支持上拉加载和下拉刷新的 ListView 中,我们最终实现的效果是在 listView 上面留下了一段空白,本意是用来加载轮播图的,于是今天就开发了一下,希望能给各位灵感。一 、效果如下说一下大体思路   其实图片展示是用的 PageView ,然后,下面的指示器 是用的 TabPageSelector ,当然整体是用 Stack 包裹起来的。1、..._flutter pageview轮播图 site:csdn.net

推荐文章

热门文章

相关标签