1  故障发生现象及报错信息

PRCR-1006 : Failed to add resource ora.lhrdg.db for lhrdg

PRCR-1071 : Failed to register or update resource ora.lhrdg.db

CRS-2566: User 'oracle' does not have sufficient permissions to operate on resource 'ora.LISTENER_LHRDG.lsnr', which is part of the dependency specification.

DBCA_PROGRESS : 100%

[ZFXDESKDB3:oracle]:/oracle>dbca -silent -createDatabase -templateName General_Purpose.dbc \

> -gdbname LHRDG  -sid LHRDGZK \

> -sysPassword lhr -systemPassword lhr \

> -datafileDestination 'DATA/' -redoLogFileSize 50 -recoveryAreaDestination '/arch' \

> -storageType ASM -asmsnmpPassword lhr  -diskGroupName 'DATA' -responseFile NO_VALUE \

> -characterset ZHS16GBK -nationalCharacterSet AL16UTF16 -sampleSchema true -automaticMemoryManagement true \

> -totalMemory 1024  -nodeinfo ZFXDESKDB3,ZFXDESKDB4

 

 

 

Copying database files

100% complete

Look at the log file "/oracle/app/oracle/cfgtoollogs/dbca/LHRDG/LHRDG.log" for further details.

[ZFXDESKDB3:oracle]:/oracle>

[ZFXDESKDB3:oracle]:/oracle>

[ZFXDESKDB3:oracle]:/oracle>

[ZFXDESKDB3:oracle]:/oracle>more /oracle/app/oracle/cfgtoollogs/dbca/LHRDG/LHRDG.log

Copying database files

PRCR-1006 : Failed to add resource ora.lhrdg.db for lhrdg

PRCR-1071 : Failed to register or update resource ora.lhrdg.db

CRS-2566: User 'oracle' does not have sufficient permissions to operate on resource 'ora.LISTENER_LHRDG.lsnr', which is part of the dependency specification.

DBCA_PROGRESS : 100%

 

 

[ZFXDESKDB3:oracle]:/oracle>oerr crs 2566

2566, 1, "User '%s' does not have sufficient permissions to operate on resource '%s', which is part of the dependency specification."

// *Cause: User does not have permissions to operate on the resource as it will prevent the current resource from starting or staying online in future.

// *Action: The user performing the operation must have access

// privileges to operate on the entire resource dependency tree. The

// user must either be given those privileges by modifying the dependent

// resources' access rights or another user having permissions should

// perform this operation.

 

《《《《---------------------简单点还是没有权限,且和 resource 'ora.LISTENER_LHRDG.lsnr'有关,这个资源是我创建dg的时候单独开的监听,且看看该资源的配置情况

 

[ZFXDESKDB3:grid]:/home/grid>srvctl config listener -l LISTENER_LHRDG -a

Name: LISTENER_LHRDG

Network: 1, Owner: root《《《《----------很明显的错误,owner是root,

Home: <CRS home>

  /oracle/app/11.2.0/grid on node(s) zfxdeskdb3,zfxdeskdb4

End points: TCP:1523

 

 

《《《《-----下边删除该资源重新添加

[ZFXDESKDB3:grid]:/home/grid>srvctl remove listener -l LISTENER_LHRDG

PRCR-1025 : Resource ora.LISTENER_LHRDG.lsnr is still running

[ZFXDESKDB3:grid]:/home/grid>crsctl  stop resource ora.LISTENER_LHRDG.lsnr

CRS-0245:  User doesn't have enough privilege to perform the operation

CRS-4000: Command Stop failed, or completed with errors.

[ZFXDESKDB3:grid]:/home/grid>exit

[ZFXDESKDB3:root]:/>

[ZFXDESKDB3:root]:/>

[ZFXDESKDB3:root]:/>crsctl  stop resource ora.LISTENER_LHRDG.lsnr

CRS-2673: Attempting to stop 'ora.LISTENER_LHRDG.lsnr' on 'zfxdeskdb4'

CRS-2673: Attempting to stop 'ora.LISTENER_LHRDG.lsnr' on 'zfxdeskdb3'

CRS-2677: Stop of 'ora.LISTENER_LHRDG.lsnr' on 'zfxdeskdb4' succeeded

CRS-2677: Stop of 'ora.LISTENER_LHRDG.lsnr' on 'zfxdeskdb3' succeeded

[ZFXDESKDB3:root]:/>

[ZFXDESKDB3:root]:/>

[ZFXDESKDB3:root]:/>srvctl remove listener -l LISTENER_LHRDG

[ZFXDESKDB3:root]:/>

[ZFXDESKDB3:root]:/>

[ZFXDESKDB3:root]:/>su - grid

[ZFXDESKDB3:grid]:/home/grid>

[ZFXDESKDB3:grid]:/home/grid>

[ZFXDESKDB3:grid]:/home/grid>srvctl add listener -l LISTENER_LHRDG -p 1523 -o $ORACLE_HOME

[ZFXDESKDB3:grid]:/home/grid>

[ZFXDESKDB3:grid]:/home/grid>srvctl config listener -l LISTENER_LHRDG -a

Name: LISTENER_LHRDG

Network: 1, Owner: grid

Home: <CRS home>

  /oracle/app/11.2.0/grid on node(s) zfxdeskdb3,zfxdeskdb4

End points: TCP:1523

 

《《《《-----修改完成后可以正常dbca库了

 

[ZFXDESKDB3:oracle]:/oracle>dbca -silent -createDatabase -templateName General_Purpose.dbc \

> -gdbname LHRDG  -sid LHRDGZK \

> -sysPassword lhr -systemPassword lhr \

> -datafileDestination 'DATA/' -redoLogFileSize 50 -recoveryAreaDestination '/arch' \

> -storageType ASM -asmsnmpPassword lhr  -diskGroupName 'DATA' -responseFile NO_VALUE \

> -characterset ZHS16GBK -nationalCharacterSet AL16UTF16 -sampleSchema true -automaticMemoryManagement true \

> -totalMemory 1024  -nodeinfo ZFXDESKDB3,ZFXDESKDB4

Cleaning up failed steps

4% complete

Copying database files

5% complete

6% complete

7% complete

33% complete

Creating and starting Oracle instance

35% complete

39% complete

43% complete

47% complete

48% complete

50% complete

52% complete

Creating cluster database views

54% complete

71% complete

Completing Database Creation

74% complete

77% complete

85% complete

94% complete

100% complete

Look at the log file "/oracle/app/oracle/cfgtoollogs/dbca/LHRDG/LHRDG0.log" for further details.

 

 处理完了想起来还有一个modify可以直接修改的,比如这里修改user我们可以用命令 srvctl modify listener  -l LISTENER_LHRDG -u grid 来修改。

 

 

2  故障处理总结

 

① rac添加LISTENER资源的时候需要使用grid用户

② srvctl config查看资源的具体配置情况

③ srvctl modify可以修改资源的配置


©著作权归作者所有:来自51CTO博客作者小麦苗DB宝的原创作品,如需转载,请注明出处,否则将追究法律责任

更多相关文章

  1. PMP:项目资源管理总结
  2. 【EMCC】 12.1.0.5 OEM server agent 安装配置及监控MySQL数据库
  3. jenkins发布nodejs项目(修改)
  4. 免费证书申请——Let's Encrypt的申请与应用(IIS,Tomcat)
  5. 基于JavaEE(JSP)的共享资料平台的设计与实现
  6. centos7修改主机名方法
  7. Centos7系统下修改主机名、清理linux日志和操作记录 - 运维笔记
  8. Hadoop学习笔记之Hadoop伪分布式环境搭建
  9. RESTful架构剖析

随机推荐

  1. 引入布局
  2. android之SharedPreferences
  3. Android闪光灯的打开与关闭
  4. 关于Android(安卓)Studio安装完后activit
  5. library project 和android项目
  6. Android数据缓存
  7. Android:Could not GET xxxx Received sta
  8. android 源码
  9. Android检测网络是否可用
  10. Android Study ING