DGMGR-TO PHYSICAL STANDBY Failed (ORA12514 )解决方法
2016-12-10 20:20
316 查看
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
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)))'
==================
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)))
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;
==========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;
相关文章推荐
- JVM虚拟机内存及垃圾收集
- 基于 Red Hat 的发行版 Oracle Linux 正式发布Oracle Linux 7.1
- Oracle Containers for J2EE远程安全漏洞(CVE-2014-0413)
- Oracle 10g R2不能使用EM的问题
- 表空间操作
- PreparedStatement中in子句的处理
- VMware下RedHat4.8_64位安装Oracle 10g RAC--简略脚本
- oracle sql日期比较
- 基于 Red Hat 的发行版 Oracle Linux 正式发布Oracle Linux 7.1
- OS block size和Oracle block size,查找OS Blocksize的方法
- oracle中创建数据库和表空间的几点总结
- 数据库自动备份脚本
- oracle的nvl函数的使用介绍
- 解决oracle用户连接失败的解决方法
- oracle的一些tips技巧
- Oracle 下的开发日积月累
- Oracle存储过程之数据库中获取数据实例
- Windows下ORACLE 10g完全卸载的方法分析