在dgbroker里面执行
show database verbose dbname;
然后报错
DGMGRL> show configuration;
Configuration - DG_dbname
Protection Mode: MaxPerformance
Databases:
NCDB - Primary database
NCDBSDB - Physical standby database
Warning: ORA-16857: standby disconnected from redo source for longer than specified threshold
Fast-Start Failover: DISABLED
Configuration Status:
WARNING
DGMGRL> show database verbose dbnamesty;
Object "dbnamesty" was not found
这个主要是在进行dgbroker配置的时候,添加数据库名字的时候带引号了
解决方法:
1、先disable configuration
DGMGRL> disable configuration;
2、用sys用户登录
DGMGRL>sys/"密码"
3、编辑配置
DGMGRL> show configuration; Configuration - DG_dbname
Protection Mode: MaxPerformance
Databases: dbname- Primary database
dbnamesty - Physical standby database
Fast-Start Failover: DISABLED Configuration Status: DISABLED
DGMGRL> edit database 'dbnamesty' rename to dbnamesty; Succeeded.
DGMGRL> edit database 'dbname' rename to dbname;
4、enable配置文件
DGMGRL> enable configuration;
Enabled.
DGMGRL> show configuration;
Configuration - DG_DBNAME
Protection Mode: MaxPerformance
Databases: dbname - Primary
database dbnamesty- Physical standby database
Fast-Start Failover: DISABLED
Configuration Status: SUCCESS




