您好,登錄后才能下訂單哦!
12c R1測試環境
A 0 value disables the time-based thread advance feature; otherwise, the value represents the number of seconds. Values larger than 7200 seconds are not of much use in maintaining a reasonable lag in the standby database. The typical, or recommended value is 1800 (30 minutes). Extremely low values can result in frequent log switches, which could degrade performance; such values can also make the archiver process too busy to archive the continuously generated logs.
建議半個小時到1個小時切換一次,以下為了做實驗測試,設置了60秒。
SQL> show parameter lag
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
archive_lag_target integer 0
client_result_cache_lag big integer 3000
plsql_ccflags string
SQL> alter system set archive_lag_target=60; --單位秒
System altered.
SQL> show parameter archive_lag_target;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
archive_lag_target integer 60
SQL> select name,COMPLETION_TIME from v$archived_log where name is not null order by COMPLETION_TIME desc ;
NAME COMPLETION_TIME
------------------------------------------------------------ -------------------
+DATADG/arch/log_1_406_961866198_585bafa7.arc 2018-01-25 12-04-59
+DATADG/arch/log_1_405_961866198_585bafa7.arc 2018-01-25 12-03-59
...................省略
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。