standby会同步target日志文件

偶尔善良 提交于 2020-03-01 16:53:56
SQL> execute sys.dbms_backup_restore.resetCfileSection(11);  #清空归档日志记录文件,便于查看

PL/SQL procedure successfully completed.

SQL> select name,sequence#,applied from v$archived_log order by sequence# ;

no rows selected

SQL> archive log list
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            +ARCH
Oldest online log sequence     97
Next log sequence to archive   98
Current log sequence           98

SQL> alter system switch logfile;  #切换归档会同时写入到本地和远程stand归档路径

System altered.

SQL> select name,sequence#,applied from v$archived_log order by sequence# ;

NAME                                                                                        SEQUENCE# APPLIED
------------------------------------------------------------------------------------------ ---------- ------------------
+ARCH/orcl/archivelog/2020_03_01/thread_2_seq_98.298.1033945047                                    98 NO
NET_ORCLDG                                                                                         98 NO

SQL> show parameter config

NAME                                 TYPE                   VALUE
------------------------------------ ---------------------- ------------------------------
dg_broker_config_file1               string                 /u01/app/oracle/product/11.2.0
                                                            /db_1/dbs/dr1orcl.dat
dg_broker_config_file2               string                 /u01/app/oracle/product/11.2.0
                                                            /db_1/dbs/dr2orcl.dat
log_archive_config                   string                 dg_config=(orcl,orcldg)

SQL> archive log list   
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            +ARCH
Oldest online log sequence     98
Next log sequence to archive   99
Current log sequence           99
SQL> 

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!