Академический Документы
Профессиональный Документы
Культура Документы
The Second argument would give the information about the data object id.
If the above command errors out with ora-1499 it indicates a corruption in index.
Use this value and find the file and block number for this dba
select dbms_utility.data_block_address_file(155254965) Rfile#, dbms_utility.data_block_addre
ss_block(155254965) "Block#" from dual;
RFILE# Block#
---------- ----------
37 65717
Run dbverify on datafile with rfile#=37:
SQL> select name, block_size from v$datafile where rfile#=37;
$ dbv file=<location of datafile> blocksize=<block_size>
Note the DBA value reported in the trace file DBA = 1066265208
Convert this to find the file number and block number having issue
Sql>select dbms_utility.data_block_address_file('1066265208') from dual ;
DBMS_UTILITY.DATA_BLOCK_ADDRESS_FILE('1066265208')
--------------------------------------------------
254
Sql>Select dbms_utility.data_block_address_block('1066265208') from dual ;
DBMS_UTILITY.DATA_BLOCK_ADDRESS_BLOCK('1066265208')
---------------------------------------------------
911992
How to resolve when SMON terminates the instance due to ORA-00600 [13013]
If smon is terminating the instance then.
Set event 10513 and startup the database
event="10513 trace name context forever, level 2"
SQL>startup mount ;
SQL>show parameter event
SQL>alter datatabase open ;
Identify the object involved using information from Section 1.
How to resolve the issue if the object involved belongs to system tablespace
System objects are very important.
Please open a Service request with Oracle support if system tables are involved.
Identifying the row having issue when the table is having corruption.
1. Once the error occurs, using the ORA-600 arguments, gather the following information :
ORA-00600: internal error code, arguments: [13013], [5001], [57353], [155254965], [261],
[155254965], [17], []
arg b : [57353] - it is the OBJECT_ID
arg c : [155254965] - it is the block address in Decimal
arg d : [261] - is it the slot number
RFILE# Block#
---------- ----------
37 65717
4. You can select from table and identify the record causing the issue
SQL> Select * from <owner>.<table name> where rowid='AAAOAJAAlAAAQC1AEF';
ORA-00600 basically means you've crash the oracle server (not the instance, just the server servi
cing your request).
There will almost always be a trace file in your bdump location. This likely wont be a lot of help
you to, but will be very helpful to oracle support.
This is generally caused by an oracle bug, and from experience, there isn't a lot you can do about
them except raise a SR via metalink (this is the recommended solution from Oracle). They will try
to replicate the issue and with any luck, if its a bug it will eventually find its way into a patch.
In the immediate term though (eg, days - months) the main realistic solution is work around it.
While raising the SR doesn't really do alot to help you and can be a frustrating experience, its
worth doing, as it might save someone else time once the bug is fixed.
These bugs are usually related to the optimizer. I think even the smallest change in the query like
switching the order of table1 and table2 in the FROM clause might force the optimizer to choose a
different plan that will not encounter this error.
ORA-00600 generally means that there is something highly unexpected and it might be linked to
the database corruption. The symptoms can be that query works or not depending on how it is
formulated.
Life example:
LOB field update went wrong for a particular row with id=<ID>
The row is not visible with SELECT * FROM <table>
But: SELECT * FROM <table> WHERE id=<ID> fails to execute and gives ORA-006000.
(Possible) Solution used to the above example
export all accessible table contents
delete table
reimport the contents
Oracle is trying to get a stable set of rows to update and could not, after 5001 attempts.
Here is what the arguments mean:
[13013] ==> indicates the problem is a failure to identify a stable set of rows to update
[5001] ==> the number of times Oracle tried
[1675658] => The data object number (SELECT * FROM DBA_OBJECTS WHERE
DATA_OBJECT_ID = 1675658)
[773963968] => Tablespace-relative data block address
[10] ==> row slot number
[773963968] ==> decimal relative data block address of block being updated
[17] ==> internal code
[] ==> not used
What to try:
First, check for block corruption in your table's indexes: ANALYZE TABLE <table_name>
VALIDATE STRUCTURE CASCADE. Then drop and re-create and indexes that show problems.
Using that tool, you enter the specifics of your ORA-00600 error (usually just the first argument -
"13013", in your case) and, if you're lucky, it will redirect you to a note telling you all about it.
This is not random try, I had this issue in the past for 4-5 times and I went through the internet and
found this solution that worked for me. I have this solution noted down in my notes.