重庆思庄Oracle、Redhat认证学习论坛

标题: 注册新的数据库资源到集群 [打印本页]

作者: miss_puff    时间: 2019-3-6 17:12
标题: 注册新的数据库资源到集群
在rac中,当修改数据库的db_unique_name后,启动数据库时,alter日志提示:
ERROR: failed to establish dependency between database orcldg and diskgroup resource ora.OGG.dg
解决办法:将新的数据库唯一名注册到集群


添加新的
[oracle@rac01 bin]$ ./srvctl add database -d orcldg -n orcl -o /u01/app/oracle/product/11.2.0/db_1/ -p +ogg/orcl/spfileorcl.ora -r primary -a ogg
[oracle@rac01 bin]$ ./srvctl add instance -d orcldg -i orcl1 -n rac01
[oracle@rac01 bin]$ ./srvctl add instance -d orcldg -i orcl2 -n rac02
[oracle@rac01 bin]$

删除原来的
[oracle@rac01 bin]$ ./srvctl remove instance -d orcl -i orcl1
Remove instance from the database orcl? (y/[n]) y
PRCD-1052 : Failed to remove instance from database orcl
PRCD-1101 : Failed to remove running instance orcl1 for database orcl
[oracle@rac01 bin]$ ./srvctl remove instance -d orcl -i orcl1
Remove instance from the database orcl? (y/[n]) y
[oracle@rac01 bin]$ ./srvctl remove instance -d orcl -i orcl2
Remove instance from the database orcl? (y/[n]) y
[oracle@rac01 bin]$ ./srvctl remove database -d orcl
Remove the database orcl? (y/[n]) y
[oracle@rac01 bin]$


修改成功后,alter日志将不再报错
NOTE: dependency between database orcldg and diskgroup resource ora.OGG.dg is established






欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2