7.3 Resolving ORA-00600 Internal Error Codes

For more information and videos, see https://blogs.oracle.com/database/post/ora-00600.

Follow these step-by-step instructions for everything you need to do to resolve ORA-00600.

Understanding ORA-00600

ORA-00600 is a generic internal error. It indicates the process has encountered a low-level unexpected condition, which typically means you’ve encountered a bug.

The impact can vary from just being an annoyance that shows up in your logs once in a while, to something major that brings the database down.

When an ORA-00600 error is logged it includes a list of arguments in square brackets.

  • The first argument can be useful to narrow down to known asserts, as it indicates the function logging the error. However, beware if this is a commonly used function there may be multiple different possible causes.
  • The remaining arguments are used to show various internal variables for debugging.

    Figure 7-3 ORA-00600 Internal Error Code: Arguments


    This image illustrates ORA-00600 internal error code arguments

Whenever an ORA-00600 occurs, it will be logged in the database instance alert.log, which will also point to a trace file. This trace file will contain more detailed call stack information, which may be required to identify the error.

Figure 7-4 Database Instance Alert Log


This image illustrates database instance alert log

Depending on the cause of the ORA-00600, it may be necessary to look at other information to isolate the exact cause.

This can include understanding other configuration details such as:

  • Database
  • Operating System

ORA-00600 Error Troubleshooting Steps

The basic resolution steps for ORA-00600 are:

  • Use AHF to generate an ORA-00600 Service Request Data Collection (SRDC)
  • Use ORA-00600 Troubleshooting Tool to find recommendations
  • Log a new SR using the diagnostic collection

Use AHF to generate an ORA-00600 Service Request Data Collection (SRDC)

In the first step, use AHF to generate an ORA-00600 diagnostic collection.

  1. Log into the machine where the ORA-00600 occurred and as the Oracle user run the command:
    tfactl diagcollect –srdc ORA-00600

    You’ll be prompted to enter the date and time of the ORA-00600 you’re interested in. If you’re not sure, just press return. You'll then be prompted to enter the database name.

    AHF will then check to find all the ORA-00600s that occurred on that database around that time you selected, or if you left the prompts blank it will just find recent ones.

    Next, it will show you a list of everything it found and ask you to choose the specific ORA-00600 you’re interested in.

    For example:
    $ tfactl diagcollect -srdc ORA-00600
    Enter the time of the ORA-00600 [YYYY-MM-DD HH24:MI:SS,<RETURN>=ALL] : 
    Enter the Database Name [Required for this SRDC] : cdb19
    
    1. Feb/11/2024 10:15:56 PST: [cdb19] ORA-00600: internal error code, arguments: [ktsircinfo_num1], [7], [1024], [1921], [], [], [], [], [], [], [], []
    2. Feb/11/2024 06:14:48 PST: [cdb19] ORA-00600: internal error code, arguments: [ktsircinfo_num1], [7], [1024], [1921], [], [], [], [], [], [], [], []
    
    Please choose the event : 1-2 [1] 
    Selected value is : 1 ( Feb/11/2024 10:15:56 )
    
    Components included in this collection: OS DATABASE NOCHMOS ASM SOSREPORT
    Preparing to execute support diagnostic scripts.
    
    Collecting data for local node(s).
    
    TFA is using system timezone for collection, All times shown in PST.
    Scanning files from 2024-02-11 09:45:56 PST to 2024-02-11 10:45:56 PST
    
    Collection Id : 20240212103041mymachine
    
    Detailed Logging at : /run/oracle.ahf/data/repository/srdc_ora600_collection_Mon_Feb_12_10_30_44_PST_2024_node_local/diagcollect_20240212103041_mymachine.log
    
    Waiting up to 120 seconds for collection to start
    2024/02/12 10:30:49 PST : NOTE : Any file or directory name containing the string .com will be renamed to replace .com with dotcom
    2024/02/12 10:30:49 PST : Collection Name : tfa_srdc_ora600_Mon_Feb_12_10_30_43_PST_2024.zip
    2024/02/12 10:30:50 PST : Scanning of files for Collection in progress...
    2024/02/12 10:30:50 PST : Collecting Additional Diagnostic Information...
    2024/02/12 10:31:10 PST : Getting list of files satisfying time range [02/11/2024 09:45:56, 02/11/2024 10:45:56]
    2024/02/12 10:31:22 PST : Collecting ADR incident files...
    2024/02/12 10:31:31 PST : Executing TFA rdahcve with timeout of 600 seconds...
    2024/02/12 10:31:32 PST : Executing IPS Incident Package Collection(s)...
    2024/02/12 10:31:34 PST : Generating IPS Pack for 2 incidents on database cdb19
    2024/02/12 10:31:48 PST : Executing SQL Script db_feature_usage.sql on cdb19 with timeout of 600 seconds...
    2024/02/12 10:31:48 PST : Executing Collection for ASM with timeout of 1800 seconds...
    2024/02/12 10:32:13 PST : Executing Collection for AFD with timeout of 1860 seconds...
    2024/02/12 10:32:16 PST : Executing Collection for OS with timeout of 1920 seconds...
    2024/02/12 10:32:22 PST : Executing Collection for SOSREPORT with timeout of 1980 seconds...
    2024/02/12 10:33:21 PST : Completed Collection of Additional Diagnostic Information...
    2024/02/12 10:33:24 PST : Completed Local Collection
    2024/02/12 10:33:24 PST : Not Redacting this Collection on Exadata with no redaction option passed ..
    2024/02/12 10:33:24 PST : Not Redacting this Collection ...
    2024/02/12 10:33:24 PST : Collection completed on host: mymachine 
    2024/02/12 10:33:24 PST : Completed collection of zip files.
    
    .---------------------------------------.
    |           Collection Summary          |
    +-------------+-----------+------+------+
    | Host        | Status    | Size | Time |
    +-------------+-----------+------+------+
    | mymachine   | Completed | 53MB | 155s |
    '-------------+-----------+------+------'
    
    Logs are being collected to: /run/oracle.ahf/data/repository/srdc_ora600_collection_Mon_Feb_12_10_30_44_PST_2024_node_local
    /run/oracle.ahf/data/repository/srdc_ora600_collection_Mon_Feb_12_10_30_44_PST_2024_node_local/mymachine.tfa_srdc_ora600_Mon_Feb_12_10_30_43_PST_2024.zip

    Once it’s finished AHF will package everything for you in a zip file for each machine, as you progress you'll only need the one from the node where the problem occurred.

    Now, we can move onto step number two. Use the My Oracle Support ORA-00600 troubleshooting tool to find recommendations.

Use ORA-00600 Troubleshooting Tool to find recommendations

  1. Log into My Oracle Support and search for ORA-00600, or alternatively go to My Oracle Support ORA-00600 troubleshooting tool to access it directly.
  2. When you get to the troubleshooting tool click the Next button at the top right.

    Figure 7-5 My Oracle Support ORA-00600 Troubleshooting Tool


    This image illustrates My Oracle Support ORA-00600 troubleshooting tool

  3. Select the first radio button to choose to upload a TFA package.
  4. Then click the Choose file button, select the zip file AHF captured for you in step 1.
  5. Then press the Upload button.

    Figure 7-6 Choose Upload


    This image illustrates choose upload option

  6. Once this is uploaded click the Next button at the top right again.

    Figure 7-7 Choose Upload


    This image illustrates choose upload option

The troubleshooting tool will then analyze the contents of the diagnostic collection and compare the log entries against its list of known problems. It will then recommend a My Oracle Support (MOS) Knowledge document for you that it thinks is the best fit. This knowledge document will either advise you what to do or show you several bugs where that ORA-00600 has been reported. You can use this to look up which Database Release Update (RUs) fixed the bug. If you go through the MOS troubleshooting tool and can’t find a solution, or you just need some more help, then you can easily log an SR with Oracle Support.

Log a new SR using the diagnostic collection

  1. Press the Create SR button at the bottom.

    Figure 7-8 Create SR


    This image illustrates Create SR option

  2. You’ll then be prompted to clarify your:
    • Product
    • Product Version
    • Support Identifier
    • Operating System
    • SR severity
  3. Then press the Create SR button.
    And, you’ll get a new SR number.

    Figure 7-9 New SR


    This image illustrates new SR

    The AHF diagnostic collection you uploaded originally will be routed onto your SR and Oracle Support will take over.