一、環(huán)境
12c ADG環(huán)境
二、現(xiàn)象描述
主庫日志切換卡?。╤ang)
SQL> alter system switch logfile;
三、處理過程
1、查看日志
<roidb02:orcldg:/u01/app/oracle/diag/rdbms/orcldg/orcldg/trace>$tail -f al*.log
Mon Jan 08 21:04:20 2018
ARC0: LGWR is scheduled to archive destination LOG_ARCHIVE_DEST_1 after log switch
Mon Jan 08 21:11:21 2018
ARC3: LGWR is scheduled to archive destination LOG_ARCHIVE_DEST_1 after log switch
Mon Jan 08 21:19:21 2018
ARC0: LGWR is scheduled to archive destination LOG_ARCHIVE_DEST_1 after log switch
Mon Jan 08 21:26:22 2018
ARC3: LGWR is scheduled to archive destination LOG_ARCHIVE_DEST_1 after log switch
Mon Jan 08 21:34:22 2018
ARC0: LGWR is scheduled to archive destination LOG_ARCHIVE_DEST_1 after log switch
Mon Jan 08 21:42:19 2018
ARC0: LGWR is scheduled to archive destination LOG_ARCHIVE_DEST_1 after log switch
2、考慮歸檔參數(shù)
SQL> show parameter log_archive_dest
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest string
log_archive_dest_1 string service="orcl", SYNC AFFIRM de
lay=0 optional compression=dis
able max_failure=0 max_connect
ions=1 reopen=300 db_unique_na
me="orcl" net_timeout=10, vali
d_for=(online_logfile,all_role
s)
log_archive_dest_10 string
log_archive_dest_11 string
log_archive_dest_12 string
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_13 string
log_archive_dest_14 string
log_archive_dest_15 string
log_archive_dest_16 string
log_archive_dest_17 string
log_archive_dest_18 string
log_archive_dest_19 string
log_archive_dest_2 string location="+DATADG/arch", vali
d_for=(STANDBY_LOGFILE,STANDBY
_ROLE)
3、參數(shù)明顯有問題,另開一個會話
SQL> ALTER SYSTEM SET log_archive_dest_2='location="+DATADG/arch", valid_for=(ALL_LOGFILES,ALL_ROLES)';
System altered.
SQL>
4、查看主庫日志
ALTER SYSTEM SET log_archive_dest_2='location="+DATADG/arch", valid_for=(ALL_LOGFILES,ALL_ROLES)' SCOPE=BOTH;
Mon Jan 08 21:49:23 2018
Archived Log entry 376 added for thread 1 sequence 365 ID 0x58e622f8 dest 2:
krse_arc_driver_core: Successful archiving of previously failed ORL
Mon Jan 08 21:49:23 2018
******************************************************************
LGWR: Setting 'active' archival for destination LOG_ARCHIVE_DEST_1
******************************************************************
Mon Jan 08 21:49:24 2018
Destination LOG_ARCHIVE_DEST_1 no longer supports SYNCHRONIZATION
Mon Jan 08 21:49:24 2018
Thread 1 advanced to log sequence 368 (LGWR switch)
Current log# 1 seq# 368 mem# 0: +DATADG/ORCLDG/ONLINELOG/group_1.399.962961189
Current log# 1 seq# 368 mem# 1: +DATADG/ORCLDG/ONLINELOG/group_1.402.962961189
Mon Jan 08 21:49:24 2018
Archived Log entry 377 added for thread 1 sequence 366 ID 0x58e622f8 dest 2:
Mon Jan 08 21:49:24 2018
Archived Log entry 378 added for thread 1 sequence 367 ID 0x58e622f8 dest 2:
Mon Jan 08 21:49:48 2018
Destination LOG_ARCHIVE_DEST_1 is SYNCHRONIZED
Mon Jan 08 21:49:49 2018
Destination LOG_ARCHIVE_DEST_1 no longer supports SYNCHRONIZATION
Mon Jan 08 21:49:49 2018
Thread 1 advanced to log sequence 369 (LGWR switch)
Current log# 2 seq# 369 mem# 0: +DATADG/ORCLDG/ONLINELOG/group_2.401.962961191
Current log# 2 seq# 369 mem# 1: +DATADG/ORCLDG/ONLINELOG/group_2.404.962961191
Mon Jan 08 21:49:49 2018
Archived Log entry 383 added for thread 1 sequence 368 ID 0x58e622f8 dest 2:
5、小結
要理解本地歸檔路徑參數(shù)的具體含義
另外有需要云服務器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。
網頁名稱:12cOracleADG日志切換hang-創(chuàng)新互聯(lián)
本文鏈接:http://jinyejixie.com/article16/djsggg.html
成都網站建設公司_創(chuàng)新互聯(lián),為您提供網站設計、全網營銷推廣、手機網站建設、ChatGPT、App開發(fā)、小程序開發(fā)
聲明:本網站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)