DGMGR-TO PHYSICAL STANDBY Failed (ORA12514 )解决方法
admin
2023-04-30 01:40:07
0

TO  PHYSICAL STANDBY  Failed  (ORA-12514: )解决方法:

 

==========DG 环境:

 

DGMGRL> SHOW CONFIGURATION;

 

Configuration - DRSolution

 

  Protection Mode: MaxAvailability

  Databases:

    PROD1 - Primary database

    SBDB1 - Physical standby database

 

Fast-Start Failover: DISABLED

 

Configuration Status:

SUCCESS

切换失败,报错信息:

============执行切换,报网络监听错误(ORA-12514: )

 

DGMGRL>  convert database 'SBDB1' to PHYSICAL STANDBY; --------------

Converting database "SBDB1" to a Physical Standby database, please wait...

Operation requires shutdown of instance "SBDB1" on database "SBDB1"

Shutting down instance "SBDB1"...

Database closed.

Database dismounted.

ORACLE instance shut down.

Operation requires startup of instance "SBDB1" on database "SBDB1"

Starting instance "SBDB1"...

Unable to connect to database

ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

 

Failed.

Warning: You are no longer connected to ORACLE.

 

Please complete the following steps and reissue the CONVERT command:

        start up and mount instance "SBDB1" of database "SBDB1"

 

 

 

 

 

 

=========检查备数据库的配置:

show database verbose 'SBDB1';----

stand:

StaticConnectIdentifier         = '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=edbjr2p2)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=SBDB1_DGMGRL.us.oracle.com)(INSTANCE_NAME=SBDB1)(SERVER=DEDICATED)))'

 

解决方法:

==================在备监听添加DGMGRL的静态监听:

==================

 

SID_LIST_LISTENER=

  (SID_LIST=

    (SID_DESC=

      (GLOBAL_DBNAME=SBDB1.us.oracle.com)

      (ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1)

      (SID_NAME=SBDB1))

    (SID_DESC=

      (GLOBAL_DBNAME=SBDB1_DGMGRL.us.oracle.com)

      (ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1)

      (SID_NAME=SBDB1)))

 

切换成功:

==============在次执行切换测试:ok

DGMGRL> convert database 'SBDB1' to PHYSICAL STANDBY;

Converting database "SBDB1" to a Physical Standby database, please wait...

Operation requires shutdown of instance "SBDB1" on database "SBDB1"

Shutting down instance "SBDB1"...

Database closed.

Database dismounted.

ORACLE instance shut down.

Operation requires startup of instance "SBDB1" on database "SBDB1"

Starting instance "SBDB1"...

ORACLE instance started.

Database mounted.

Continuing to convert database "SBDB1" ...

Operation requires shutdown of instance "SBDB1" on database "SBDB1"

Shutting down instance "SBDB1"...

ORA-01109: database not open

 

Database dismounted.

ORACLE instance shut down.

Operation requires startup of instance "SBDB1" on database "SBDB1"

Starting instance "SBDB1"...

ORACLE instance started.

Database mounted.

Database "SBDB1" converted successfully

 

 

如果在切换失败时候,手动在sqlplus 执行切换命令,登陆dgmgrl,查看配置肯能遇到如下错误:

DGMGRL> SHOW CONFIGURATION

 

Configuration - DRSolution

 

  Protection Mode: MaxAvailability

  Databases:

    PROD1 - Primary database

    SBDB1 - Snapshot standby database

      Error: ORA-16816: incorrect database role

 

Fast-Start Failover: DISABLED

 

Configuration Status:

ERROR

 

解决方法:删除配置文件,重新配置。o(^^)o

DGMGRL> disable CONFIGURATION;

Disabled.

DGMGRL> remove CONFIGURATION DRSolution;

 

 

 

 


相关内容

热门资讯

国台办:买再多的武器都是螳臂当... 5月13日,国务院台办举行例行新闻发布会。总台记者就台湾军购费用引发舆论质疑提问。发言人张晗表示,我...
豫篮联赛:赛场劲吹“文旅风” 汉服小姐姐在看台上翩翩起舞。胡斌 摄洛阳队球员上篮。胡斌 摄“五一”小长假后,豫篮联赛伴随着初夏的热...
凡星闪耀丨《武林外传》中小米扮... 张清(右)在免费餐厅为大家服务。张清在《武林外传》中饰演“丐帮弟子”小米(右)。在郑州的城市烟火气中...
卫华:做走向世界的“起重管家” 卫华集团智能生产车间。常晶晶 摄作为全省服务业大会的参会企业,河南卫华重型机械股份有限公司(以下简称...
在加快国际消费中心城市建设中彰... “服务业是推动经济高质量发展的重要引擎,也是强化国家中心城市核心竞争力的重要支柱。”5月12日,省委...
坚定不移沿着习近平总书记指引的... 壮美的郑州黄河文化公园。河南日报资料图片 河南日报全媒体记者 聂冬晗 摄来郑州,到哪里慢赏大河风光?...
双庆同辉映初心——黄河科技学院... 2026年5月12日,黄河科技学院附属医院迎来开诊七周年纪念日,恰逢第115个国际护士节。当天,医院...
驻美大使谢锋回应中美热点问题 据中国驻美国大使馆5月13日消息,5月5日,中国驻美国大使谢锋就美国总统特朗普访华和中美关系接受美国...
邻妹妹帮办 | 占地1.2万㎡... “杞县有个婚礼庄园,6 大主题特色宴会厅,可同时容纳2000人聚餐,在未变更工业用地用途、未经消防验...
国台办:和平统一后,台湾同胞民... 5月13日,国务院台办举行例行新闻发布会。有记者问,国务院台办发言人在之前发布会上已分别阐释了和平统...