ORA-00600: internal error code, arguments: [qcisSetPlsqlCtx:tzi init], [], [],

今天在做oracle異機備份恢復測試的時候,數據文件以及應用歸檔日誌都正常恢復,但是在打開數據庫的時候報瞭如下錯誤

RMAN> run{
2>      sql 'alter session set NLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS"';
3>      recover database until time '2019-07-11 09:16:00';
4>  }

sql statement: alter session set NLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS"

Starting recover at 11-JUL-19
using channel ORA_DISK_1

starting media recovery

archived log for thread 1 with sequence 52935 is already on disk as file /backup2/backup189.82_prod/rman/2019_07_11/log1_52935_899300012.arc
channel ORA_DISK_1: starting archived log restore to default destination
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=52926
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=52927
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=52928
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=52929
channel ORA_DISK_1: reading from backup piece /backup2/backup189.82_prod/rman/2019_07_11/prod_lev"0"_mpu6bp4l_1_1_20190711
channel ORA_DISK_1: piece handle=/backup2/backup189.82_prod/rman/2019_07_11/prod_lev"0"_mpu6bp4l_1_1_20190711 tag=PROD_LEV"0"
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:02:45
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52926_899300012.arc thread=1 sequence=52926
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52927_899300012.arc thread=1 sequence=52927
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52928_899300012.arc thread=1 sequence=52928
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52929_899300012.arc thread=1 sequence=52929
channel ORA_DISK_1: starting archived log restore to default destination
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=52930
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=52931
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=52932
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=52933
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=52934
channel ORA_DISK_1: reading from backup piece /backup2/backup189.82_prod/rman/2019_07_11/prod_lev"0"_mqu6bp4l_1_1_20190711
channel ORA_DISK_1: piece handle=/backup2/backup189.82_prod/rman/2019_07_11/prod_lev"0"_mqu6bp4l_1_1_20190711 tag=PROD_LEV"0"
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:02:15
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52930_899300012.arc thread=1 sequence=52930
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52931_899300012.arc thread=1 sequence=52931
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52932_899300012.arc thread=1 sequence=52932
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52933_899300012.arc thread=1 sequence=52933
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52934_899300012.arc thread=1 sequence=52934
archived log file name=/backup2/backup189.82_prod/rman/2019_07_11/log1_52935_899300012.arc thread=1 sequence=52935
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52936_899300012.arc thread=1 sequence=52936
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52937_899300012.arc thread=1 sequence=52937
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52938_899300012.arc thread=1 sequence=52938
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52939_899300012.arc thread=1 sequence=52939
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52940_899300012.arc thread=1 sequence=52940
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52941_899300012.arc thread=1 sequence=52941
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52942_899300012.arc thread=1 sequence=52942
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52943_899300012.arc thread=1 sequence=52943
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52944_899300012.arc thread=1 sequence=52944
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52945_899300012.arc thread=1 sequence=52945
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52946_899300012.arc thread=1 sequence=52946
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52947_899300012.arc thread=1 sequence=52947
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52948_899300012.arc thread=1 sequence=52948
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52949_899300012.arc thread=1 sequence=52949
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52950_899300012.arc thread=1 sequence=52950
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52951_899300012.arc thread=1 sequence=52951
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52952_899300012.arc thread=1 sequence=52952
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52953_899300012.arc thread=1 sequence=52953
archived log file name=/opt/oracle/oradata/PROD/archivelog/log1_52954_899300012.arc thread=1 sequence=52954
media recovery complete, elapsed time: 01:14:54
Finished recover at 11-JUL-19

 嘗試打開數據庫

SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-00600: internal error code, arguments: [opiodr: call 2], [], [], [], [],
[], [], [], [], [], [], []
ORA-00600: internal error code, arguments: [qcisSetPlsqlCtx:tzi init], [], [],
[], [], [], [], [], [], [], [], []

雖然上面報錯,但是數據庫卻是打開的狀態,之前做恢復之前插了一筆測試數據也都還在,說明恢復沒啥大問題

SQL> select open_mode from v$database;
ERROR:
ORA-03114: not connected to ORACLE


SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@db_hx_55_36 archivelog]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Thu Jul 11 15:50:55 2019

Copyright (c) 1982, 2013, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select open_mode from v$database;

OPEN_MODE
----------------------------------------
READ WRITE

SQL> select * from test;

        ID TIMES
---------- --------------------------------------
         1 2018-12-19 09:52:57
         2 2019-07-11 09:15:30

那爲什麼會報這種ora-600錯誤呢,mos上給出了答案

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=521293572915587&id=362036.1&displayIndex=4&_afrWindowMode=0&_adf.ctrl-state=c2aptw4s0_224#SYMPTOM

按照文檔上,查看異機數據庫

這樣,就必須有時區信息文件 

檢查安裝目錄之後,果然沒有這兩個文件。


那如果從原庫把這2個文件copy過來可以嗎,

然後重啓數據庫

數據庫已經正常打開

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章