DG问题

如果是switchover_status为recovery needed或switchover latent 恢复数据库
alter database recover managed standby database disconnect from session;

SQL>select switchover_status from v$database
 switchover_status的值入股是To standby,可以直接switchover,如果是sessions active,   
 则需要在switchover的命令后面加上with session shutdown  

你可能感兴趣的:(sql)