==预先开启flashback
1、关闭dg并启动到mount
startup mount;
2、转换为快照dg
alter database convert to snapshot standby;
3、开启并使用
alter database open;
4、监控快照点使用的flashback日志
select name,storage_size/1024/1024/1024 from v$restore_point;
==快照dg下所有操作再返回检查点后都会滚,但是修改dba用户名的密码会影响系统上的密码文件,需要注意
1、关闭dg并启动到mount
startup mount;
2、恢复为物理dg
alter database convert to physical standby;
3、监控恢复进度
select opname,total_work,sofar from v$session_longops where sofar<>totalwork