标签:and iat 1.4 ror color cal glob 物理 logfile
standby>alter database recover managed standby database cancel;
primary> select switchover_status from v$database;
该值为:TO STANDBY;表示支持。
该值为:SESSION ACTIVE;表示主库有激活会话。不妨碍switchover操作。
若上值为第二种情况;后面需加 with shutdown session
即 alter database commit to switchover to physical standby with shutdown session;
primary> alter database commit to switchover to physical standby; Database altered.
Primary> shutdown immediate; ORA- 01507 : database not mounted ORACLE instance shut down. Primary> startup ORACLE instance started. Total System Global Area 1.5132E+10 bytes Fixed Size 2243112 bytes Variable Size 2013267416 bytes Database Buffers 1.3086E+10 bytes Redo Buffers 30552064 bytes Database mounted. Database opened.
standby>alter database commit to switchover to primary; alter database commit to switchover to primary * ERROR at line 1: ORA-16139: media recovery required standby>alter database recover managed standby database disconnect from session; Database altered. standby>alter database commit to switchover to primary; Database altered.
standby> alter database open; Database altered.
Primary> alter database recover managed standby database using current logfile disconnect from session;
模拟主库挂掉
Primary> shutdown abort; ORACLE instance shut down.
查询待转换standby 数据库的V$ARCHIVE_GAP 视图,确认归档文件是否连接
StandBy> SELECT THREAD#, LOW_SEQUENCE#, HIGH_SEQUENCE# FROM V$ARCHIVE_GAP; no rows selected
如果有,则拷贝过来;
手工的注册这些日志:
StandBy> ALTER DATABASE REGISTER LOGFILE ‘路径‘;
StandBy> alter database recover managed standby database finish force; Database altered. StandBy> alter database commit to switchover to primary; Database altered. StandBy> alter database open; Database altered.
参考博客:http://www.cnblogs.com/lottu/p/7054731.html;http://www.cnblogs.com/lottu/p/7058774.html
实施数据库克隆(辅助实例启动到nomount状态后)
应用redo日志操作;或者 启动实时应用redo日志操作。
参考文献:《三思笔记第10.2.4章节》
标签:and iat 1.4 ror color cal glob 物理 logfile
原文地址:http://www.cnblogs.com/lottu/p/7065296.html