设为首页 收藏本站
查看: 1583|回复: 0

[经验分享] 11g ASM单实例 dbca报错 prcr-1006 crs-0259 prcr-1071

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2014-6-3 11:06:49 | 显示全部楼层 |阅读模式
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.


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

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


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



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-20050-1-1.html 上篇帖子: ORA-09925 Linux-x86_64 Error: 2: No such file or directory 下篇帖子: ORA-12170: TNS:Connect timeout occurred ORA-06512: at "SYS.DBMS_SNAPSHO
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表