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

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2062|回复: 0
打印 上一主题 下一主题

[安装] 不能启动gi环境中的dg备库

[复制链接]
跳转到指定楼层
楼主
发表于 2018-1-24 12:46:22 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
本帖最后由 郑全 于 2018-1-24 12:54 编辑

Unable to start the database using SRVCTL in Oracle Restart or Grid Infrastructure with Physical Standby environment (文档 ID 1487620.1)

In this Document

Symptoms
Cause
Solution

Applies to:   Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Information in this document applies to any platform.
SymptomsOn dataguard environment running on Grid Infrastructure (GI) or on Oracle Restart, the database fails to start because the database name and database unique name are different.

The following srvctl commands are used to add the database (note that srvctl add database command does not have -n flag that is used to specify the db name):
The db_unique_name id PP0384ELM7_1
The db_name PP0384 (as also the instance)

srvctl add database -d PP0384ELM7_1 -o /u01/app/oracle/product/11.2.0.2/db_1 -a "DATA_PP0384ELM7_1,ARCH_PP0384ELM7_1,BKUP_PPAX2039" -r PHYSICAL_STANDBY -s MOUNT
srvctl setenv database -d PP0384ELM7_1 -T TNS_ADMIN=/u01/app/oracle/network/admin
srvctl setenv database -d PP0384ELM7_1 -t ORACLE_BASE=/u01/app/oracle
srvctl modify database -d PP0384ELM7_1 -m IKEADT.COM -n PP0384
srvctl modify database -d PP0384ELM7_1 -p +DATA_PP0384ELM7_1/PP0384ELM7_1/spfilePP0384.ora
The above commands are executed successfully, and the OCR configuration is pointing to correct SPfile.
srvctl config database -d PP0384ELM7_1 -a

Database unique name: PP0384ELM7_1
Database name: PP0384
...
Spfile: +DATA_PP0384ELM7_1/PP0384ELM7_1/spfilePP0384.ora
...
But trying to start the database gives the following error:
srvctl start database -d pp0384elm7_1

PRCR-1079 : Failed to start resource ora.pp0384elm7_1.db
CRS-5010: Update of configuration file "/u01/app/oracle/product/11.2.0.2/db_1/srvm/admin/oratab.bak.ppseelm-ax2039" failed: details at "(:CLSN00011:)" in "/u01/app/11.2.0.2/grid/log/ppseelm-ax2039/agent/ohasd/oraagent_grid/oraagent_grid.log"
CRS-5010: Update of configuration file "/u01/app/oracle/product/11.2.0.2/db_1/dbs/initPP0384ELM7_1.ora" failed: details at "(:CLSN00014:)" in "/u01/app/11.2.0.2/grid/log/ppseelm-ax2039/agent/ohasd/oraagent_grid/oraagent_grid.log"
CRS-5017: The resource action "ora.pp0384elm7_1.db start" encountered the following error:
CRS-5010: Update of configuration file "/u01/app/oracle/product/11.2.0.2/db_1/dbs/initPP0384ELM7_1.ora" failed: details at "(:CLSN00014:)" in "/u01/app/11.2.0.2/grid/log/ppseelm-ax2039/agent/ohasd/oraagent_grid/oraagent_grid.log"
The above error shows that it is looking for an initPP0384ELM7_1.ora based on the db_unique_name and not on SID.
CauseCustomer added a database using srvctl without -n {db name} option.

The Oracle® Real Application Clusters Administration and Deployment Guide11g Release 2 (11.2) says the following about -n option in "srvctl add database" command"
-n db_name  "The name of the database, if it is different from the unique name given by the -d option"Solution1) Remove the database resource from GI using srvctl remove database command
    For example,
    srvctl remove database -d pp0384elm7_1
2) Recreate the database resource with just one command containing both the -d and -n parameters.  
    For example,
    srvctl add database -d pp0384elm7_1 -n pp0384 -o /u01/app/oracle/product/11.2.0.2/db_1 -a "DATA_PP0384ELM7_1,ARCH_PP0384ELM7_1,BKUP_PPAX2039" -r PHYSICAL_STANDBY -s MOUNT -m IKEADT.COM -p +DATA_PP0384ELM7_1/PP0384ELM7_1/spfilePP0384.ora


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-27 17:50 , Processed in 0.132266 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

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