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>