11g ASM单实例 dbca报错 prcr-1006 crs-0259 prcr-1071
admin
2023-05-15 00:42:02
0次
11g ASM dbca报错 prcr-1006 crs-0259  prcr-1071


使用ASM方式创建单实例DB时,在运行DBCA时出现
PRCR-1006 : Failed to add resource ora.orcl.db for orcl
PRCR-1071 : Failed to register or update resource ora.orcl.db
PRCR-1001 : Resource ora.orcl.db does not exist


查看DBCA日志后,发现以下报错

[oracle@dga01 orcl]$ tail -30000 trace.log  | grep PRCR

[Thread-138] [ 2013-03-19 14:15:51.520 CST ] 
[HASIDBRegistrationStep.executeImpl:253] 
 Exception while registering with HAS 
PRCR-1006 : Failed to add resource ora.orcl.db for orcl
PRCR-1071 : Failed to register or update resource ora.orcl.db
PRCR-1001 : Resource ora.orcl.db does not exist


oracle说这是一个bug  如下

Bug 11886915 : CRS-0259 WHEN REGISTERING THE DATABASE WITH ORACLE RESTART	
 
Bug 属性
 
类型	B - Defect	已在产品版本中修复	
严重性	2 - Severe Loss of Service	产品版本	11.2.0.2
状态	33 - Suspended, Req'd Info not Avail	平台	226 - Linux x86-64
创建时间	2011-3-18	平台版本	ORACLE LINUX 5
更新时间	2011-10-3	基本 Bug	N/A
数据库版本	11.2.0.2	影响平台	Generic
产品源	Oracle

 
产品线	Oracle Database Products	系列	Oracle Database
区域	Oracle Database	产品	5 - Oracle Database - Enterprise Edition

Hdr: 11886915 11.2.0.2 PCW 11.2.0.2 CRS PRODID-5 PORTID-226
Abstract: CRS-0259 WHEN REGISTERING THE DATABASE WITH ORACLE RESTART
 
*** 03/18/11 07:51 am ***
 
PROBLEM:
--------
Oracle Restart Environment, using separate Database Oracle Homes, each owned 
by a different OS user.
 
A database cannot be registered with Oracle Restart when the OS user used to 
install the database software was created after the last restart of the 
Oracle Restart Environment.
 
There must be at least 1 database from a different Oracle Home/OS owner 
already registered with the Oracle Restart.
 
The database can be registered only after OHASD is restarted.
 
DIAGNOSTIC ANALYSIS:
--------------------
srvctl error:
 
PRCR-1006 : Failed to add resource ora.elin.db for null
PRCR-1071 : Failed to register or update resource ora.elin.db
CRS-0259: Owner of the resource does not belong to the group.
 
WORKAROUND:
-----------
after restarting the grid infrastructure the second db can be added.
However, this causes downtime for the already existing databases, which is 
not acceptable by the customer
 
RELATED BUGS:
-------------
Bug 10337212
Bug 10118593
Bug 11063852
 
REPRODUCIBILITY:
----------------
Can be reproduced as follows on CT env:
- install grid infrastructure for single node (oracle restart) 11.2.0.2 using 
a separate OS user (grid) on linux 64 bit.
- install the oracle enterprise db software using a separate OS user 
(oracle1), create a new db in this Oracle Home and register this db with 
oracle restart (happens automatically when using dbca).
- Install the oracle enterprise db software using a new OS user (os user did 
not exists since the last grid infrastructure restart) and create a new db in 
this Oracle Home.
At this point dbca will complain that the db can not be registered with 
Oracle restart and further installation (db console) will fail. Manual 
registration attempts using srvctl will also fail.
- Restart the ohas (crsctl stop has / crsctl start has). This will also 
restart all db already registered with Oracle restart
- Manual register the second created database using "srvctl add database" 
will now work.
- When now creating a third Oracle Home using a new OS user, the db 
registration will again fail.
 


解决方法如下,先利用grid用户重启has服务,

[grid@dga01 ~]$ crsctl stop has
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'dga01'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'dga01'
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'dga01'
CRS-2673: Attempting to stop 'ora.OCR.dg' on 'dga01'
CRS-2677: Stop of 'ora.DATA.dg' on 'dga01' succeeded
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'dga01' succeeded
CRS-2677: Stop of 'ora.OCR.dg' on 'dga01' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'dga01'
CRS-2677: Stop of 'ora.asm' on 'dga01' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'dga01'
CRS-2677: Stop of 'ora.cssd' on 'dga01' succeeded
CRS-2673: Attempting to stop 'ora.evmd' on 'dga01'
CRS-2677: Stop of 'ora.evmd' on 'dga01' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'dga01' has completed
CRS-4133: Oracle High Availability Services has been stopped.

[grid@dga01 ~]$ crsctl start has
CRS-4123: Oracle High Availability Services has been started.


[root@dga01 ~]# su - oracle
用 srvctl  重新注册 database

[oracle@dga01 ~]$ srvctl  add database -d orcl -o /u01/app/oracle/product/11.2/db_1


执行以上命令完成后 dbca正常


相关内容

热门资讯

空调连续工作多久需要停机休息 空调连续工作的时间取决于多个因素,包括空调的型号、功率、使用环境和维护情况等。一般来说,空调可以连续...
空调哪个符号是除湿的 空调除湿功能通常用一个水滴形状的符号表示。不同品牌和型号的空调遥控器可能会有所差异,但一般来说,除湿...
格力空调多长时间加一次氟利昂 1、一般情况下,空调对氟利昂的使用量是非常小的,所以在空调使用了四年左右的时候再考虑加也没问题。2、...
空调用多长时间需要加氟一次 一般情况下是五年。当出现以下这几种情况时,空调才需要加氟。1、空调的室内机和室外机各有两个接口,当接...
格调生活·C标思享荟:卡萨帝在... 9月12日的郑州龙湖金融岛,夜风轻拂,灯光璀璨。“C标时刻共传奇——卡萨帝思享荟暨20周年品牌盛典郑...
品牌价值破千亿、高端份额持续领... 9月12日,“C标时刻共传奇——卡萨帝思享荟暨20周年品牌盛典郑州站”在郑州龙湖金融岛举办。2026...
空调主板坏了修800还是换新的 空调主板坏了是修还是换新,需要考虑多个因素,以下是一些建议:1. 维修成本:如果维修费用较低,比如 ...
空调开多久需要休息多长时间 问题:空调开多久需要休息多长时间回答:1、在使用空调的过程中,一般空调开7~8个小时左右需要休息2~...
中央空调多长时间清洗一次 1、一般空调开机前清洗一次即可,空调开机中间时段再清洗一次,空调关机时清洗一次,这样比较合理。2、空...
中央空调氟利昂多久加一次 看空调制热和制冷程度,很多人的观点认为氟利昂必须一年放一次,其实这个观点是错误的,理解上面有点偏差,...