1 數(shù)據(jù)庫不重啟也會把一些啟動信息打在日志上,讓你懷疑這庫是不是無厘頭重啟,最重要的是沒有其他的相關(guān)日志,讓你懷疑是不是不要干DBA這行了;
網(wǎng)站建設(shè)哪家好,找成都創(chuàng)新互聯(lián)公司!專注于網(wǎng)頁設(shè)計、網(wǎng)站建設(shè)、微信開發(fā)、微信小程序、集團(tuán)企業(yè)網(wǎng)站建設(shè)等服務(wù)項目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了市中免費建站歡迎大家使用!
1.1禁止參數(shù)信息dump至Alert日志中
_log_segment_dump_parameter=FALSE
1.2禁止補丁信息dump至Alert日志中
_log_segment_dump_patch=FALSE
參見:12c Alert Log Appears To Show Unexpected Instance Restart (文檔 ID 2049516.1)
2 ORA-600 [K2GTEGET: PDBID] AND ORA-600 [KPDBSWITCHPRERESTORE: TXN]
看日志是調(diào)用dbms_advisor報的錯
[TOC00004]
----- PL/SQL Stack -----
----- PL/SQL Call Stack -----
object line object
handle number name
0x1c582f4f8 12825 package body SYS.DBMS_SQLTUNE_INTERNAL
0x1b5c1e8c8 7 SYS.WRI$_ADV_SQLTUNE
0x17e85ca58 602 package body SYS.PRVT_ADVISOR
0x17e85ca58 2678 package body SYS.PRVT_ADVISOR
0x1cca00190 241 package body SYS.DBMS_ADVISOR
0x1ccf8d670 937 package body SYS.DBMS_SQLTUNE
0x1b8d0af08 19 anonymous block
參見:
Bug 19942889 : ORA-600 [KPDBSWITCHPRERESTORE: TXN]
Bug 19971949 : ORA-600 [K2GTEGET: PDBID] AND ORA-600 [KPDBSWITCHPRERESTORE: TXN]
參見文檔說明
ORA-00600: Internal Error Code,arguments: [k2gteget: Pdbid] & Arguments: [kpdbSwitchPreRestore: Txn] (文檔 ID 2090473.1)
解決辦法:
1 升級到oracle 12.2
2 打補丁Patch 21283337 或者Oracle Database 12c Release 12.1.0.2.170117
3 12c的多路徑ORA-600 [krr_process_read_error_2]
臨時解決辦法:ALTER SYSTEM SET "_use_single_log_writer"=TRUE SID='*' SCOPE=SPFILE;
Oracle 12c introduces a new default feature of using multiple LGWRs which may lead to DEADLOCK / Database Hang or ORA-742 "Log read detects lost write" or ORA-600 [kcrfrgv_nextlwn_scn] during instance OPEN or ORA-600 [krr_process_read_error_2] during Recovery on IBM AIX and potentially on HPUX Itanium 64bit.
參考:
ALERT: Bug 21915719 Database hang or may fail to OPEN in 12c IBM AIX or HPUX Itanium - ORA-742, DEADLOCK or ORA-600 [kcrfrgv_nextlwn_scn] ORA-600 [krr_process_read_error_2] (文檔 ID 1957710.1)