Oracle Failover切换及恢复

检查数据库同步是否正常:

col name for a25
col value for a20
col unit for a30
col time_computed for a20
col datum_time for a20
select name,value,unit,time_computed,datum_time from GV$dataguard_stats;  

set line 125
select inst_id,process, status, thread#, sequence#,block#, blocks from gv$managed_standby
where status in ('IDLE','APPLYING_LOG') and thread# in ('1','2');


select thread#,low_sequence#,high_sequence# from v$archive_gap;

 

alter database recover managed standby database finish force;

alter database activate physical standby database;

alter database open;

 

恢复:

STARTUP MOUNT FORCE;

FLASHBACK DATABASE TO SCN 855949753469;

ALTER DATABASE CONVERT TO PHYSICAL STANDBY;

STARTUP FORCE;

select name,open_mode,protection_mode,database_role from v$database;

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;

 

col name for a25
col value for a20
col unit for a30
col time_computed for a20
col datum_time for a20
select name,value,unit,time_computed,datum_time from GV$dataguard_stats;  

 

 

你可能感兴趣的:(ORACLE,备份恢复)