刚上手学习dataguard,在一台windows上安装了数据库11g。
建立了2个实例,primary和standby。standby是primary的物理standby。现在发现primary做出改变之后,standby中无法查看到变化,必须要在primary中执行
alter system switch logfile;
进行日志切换,实现归档,standby中才能发生变化。请问要如何设置,才能用dataguard实现实时备份。primary的archive log list显示如下
数据库日志模式 存档模式
自动存档 启用
存档终点 E:\app\Administrator\flash_recovery_area\etsprim\archivelog\
最早的联机日志序列 32
下一个存档日志序列 34
当前日志序列 34
建立了2个实例,primary和standby。standby是primary的物理standby。现在发现primary做出改变之后,standby中无法查看到变化,必须要在primary中执行
alter system switch logfile;
进行日志切换,实现归档,standby中才能发生变化。请问要如何设置,才能用dataguard实现实时备份。primary的archive log list显示如下
数据库日志模式 存档模式
自动存档 启用
存档终点 E:\app\Administrator\flash_recovery_area\etsprim\archivelog\
最早的联机日志序列 32
下一个存档日志序列 34
当前日志序列 34
2)取消备库的自动恢复
sys@ora11gdg@> alter database recover managed standby database cancel;-- 实时应用日志:
alter database recover managed standby database using current logfile disconnect;
recover managed standby database using current logfile disconnect from session;
17:00:36 SYS@BIDW > select sequence#, applied from v$archived_log order by completion_time desc; SEQUENCE# APPLIED
---------- ---------------------------
898 IN-MEMORY 897 YES
...