SQL> alter system switch logfile;
System altered.
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /oracle/app/oracle/flash_recovery_area/archivelog
Oldest online log sequence 32511
Next log sequence to archive 32513
Current log sequence 32513
SQL>
16,在主库切完日志后,去备库看下日志有没有传输过去并应用起来
备库alert日志
Wed May 13 21:11:23 2015
Media Recovery Log/data/oracle/oradgdata/standby_archive/1_32512_821708334.dbf
Media Recovery Waiting for thread 1sequence 32513 (in transit)
备库alert loglist;
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /data/oracle/oradgdata/standby_archive
Oldest online log sequence 32512
Next log sequence to archive 0
Current log sequence 32513
SQL>
17,以open read only模式打开备库,在备库操作
先查看数据库状态
SQL> select open_mode fromv$database;
OPEN_MODE
--------------------
MOUNTED
SQL>
取消applied
alter database recover managed standbydatabase using current logfile disconnect from session;
SQL> alter database recover managedstandby database using current logfile disconnect from session;