HOME > > What to do with a query, if a query is generating more redo/archive log?

What to do with a query, if a query is generating more redo/archive log?

Anup - Thursday, April 20, 2023

If a query is generating excessive redo/archive logs in Oracle, it is important to identify the root cause and address it.

Here are some steps you can take:

  1. Review the query execution plan to identify any full table scans or other expensive operations that may be causing excessive log generation.

  2. Check if the query is updating or inserting a large number of rows, as this can result in significant log generation.

  3. Review the database configuration settings, such as the log buffer size and log file size, and adjust them if necessary.

  4. Consider partitioning tables or indexes if the query is accessing large tables or indexes.

  5. Tune the database parameters to optimize performance and reduce log generation. This may include adjusting the buffer cache size, increasing the number of redo log groups, or adjusting the log writer parameters.

  6. Consider using the NOLOGGING option for the query if data loss is acceptable and log generation needs to be minimized.

  7. Finally, if none of the above steps resolve the issue, consider contacting Oracle support for further assistance.

Contact me

Get in Touch

Need to get touch with me? Please fill out the form with your enquiry.

Name
Anup Srivastav
Address
Lucknow - Utter Pradesh
Email
myindiandba@gmail.com
Message me