当前位置: 代码迷 >> Oracle开发 >> Oracle登陆时报了一个异常,ORA-00600
  详细解决方案

Oracle登陆时报了一个异常,ORA-00600

热度:156   发布时间:2016-04-24 06:44:22.0
Oracle登陆时报了一个错误,ORA-00600
用户登录时,oracle报了一个错误 ORA-00600:内部错误代码,参数:【18062】,【】,【】,【】,【】,【】,【】,【】

出错原因已经找到,是由于我把global_name设置为空了,有大神遇到过这样的错误么??如何恢复~~~跪求大神
------解决方案--------------------
Applies to: 
Oracle Server - Enterprise Edition - Version: 11.2.0.2.0 and later   [Release: 11.2 and later ]
Information in this document applies to any platform.

Symptoms
After updating the GLOBAL_NAME and setting it to NULL:


UPDATE GLOBAL_NAME SET GLOBAL_NAME = '';
COMMIT;

The database is not starting up:


SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 422670336 bytes
Fixed Size 1344616 bytes
Variable Size 318770072 bytes
Database Buffers 96468992 bytes
Redo Buffers 6086656 bytes
Database mounted.
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-00600: internal error code, arguments: [18062], [], [], [], [], [], [], [],
[], [], [], []
Process ID: 3552
Session ID: 1 Serial number: 5

Cause
The steps that can cause the error:

SQL> select * from global_name;

GLOBAL_NAME
--------------------------------------------------------------------------------
ORCL1.LOCALDOMAIN

SQL> UPDATE GLOBAL_NAME SET GLOBAL_NAME = '';

1 row updated.

SQL> commit;

Commit complete.

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area 422670336 bytes
Fixed Size 1344616 bytes
Variable Size 318770072 bytes
Database Buffers 96468992 bytes
Redo Buffers 6086656 bytes
Database mounted.
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-00600: internal error code, arguments: [18062], [], [], [], [], [], [], [],
[], [], [], []
Process ID: 3552
Session ID: 1 Serial number: 5



Solution
Steps to resolve the error:

1) Mount the DB


SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup mount;
ORACLE instance started.

Total System Global Area 422670336 bytes 
Fixed Size 1344616 bytes 
Variable Size 318770072 bytes 
Database Buffers 96468992 bytes 
Redo Buffers 6086656 bytes 
Database mounted.

2) Find the PID of the Oracle process



oracle@localhost:[oracle@localhost ~]$ ps -ef 
------解决方案--------------------
 grep LOCAL 
------解决方案--------------------
 grep -v grep
oracle 4030 3417 0 11:51 ? 00:00:00 oracleorcl1 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))


3) Here the PID is 4030 which we will use in the GDB


oracle@localhost:[oracle@localhost ~]$ gdb $ORACLE_HOME/bin/oracle 4030

GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-32.el5_6.2)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /home/oracle/app/oracle/product/11.2.0/dbhome_2/bin/oracle...(no debugging symbols found)...done.
Attaching to program: /home/oracle/app/oracle/product/11.2.0/dbhome_2/bin/oracle, process 4030
warning: .dynamic section for "/lib/librt.so.1" is not at the expected address
warning: difference appears to be caused by prelink, adjusting expectations
Reading symbols from /home/oracle/app/oracle/product/11.2.0/dbhome_2/lib/libodm11.so...(no debugging symbols found)...done.
Loaded symbols for /home/oracle/app/oracle/product/11.2.0/dbhome_2/lib/libodm11.so
  相关解决方案