1812719 - Avoid NOLOGGING during the index creation

Symptom
During a recovery or a system refresh one of the following messages occurs:
  1. DBV shows the following error:

    BR0398W DBVERIFY has detected corrupt blocks
    DBV-00201: Block, DBA 1154567432, marked corrupt for invalid redo
    application
  2. V$DATABASE_BLOCK_CORRUPTION contains such a row:
       9       5     129573          4       3253280299   NOLOGGING
    INDPART     SAPTAP     /BIC/FZD_BACK2~080   /BIC/FZD_BACK20

Environment
  • SAP Release independent
  • Oracle Release independent
  • Operating System independent

Reproducing the Issue
Performing a recovery after some indexes were created with NOLOGGING option.

Cause
If you create an index with the 'nologging' option, Oracle does not write the changes made to the index blocks during creation of the index to the online redologs. As a consequence the information is not written to the archivelogs either. As such, occurences of the before mentioned messages are expected! This is not a real corruption.

Resolution
IMPORTANT NOTE
The aim of this KBA is not to solve NOLOGGING 'Soft Corruption' problems, but how to turn it off. Indexes in BW or BI SAP Systems are usually created with NOLOGGING option.
Also note, turning off this option is not the standard recommendation from SAP as it can cause performance issues and a huge number of redolog data. Use this KBA only if you are aware of the consequences!
The NOLOGGING option for index creation can be turned off with transaction SPRO as follows:
  1. Call transaction SPRO
     
  2. Click on button 'SAP Reference IMG'

    SAP_Reference_IMG.PNG
     
  3. Navigate to the menu 'Settings for Database Interfaces (Oracle)' and click on the 'Clock Icon'

    Menu_entry.PNG
     
  4. Click on checkbox 'Logging while Index' and save the changes

    Logging.PNG

Keywords
  • Logging while Index
  • SPRO
  • IMG


Header Data

Released On 25.01.2013 14:12:08
Release Status Released to Customer
Component BW-SYS-DB-ORA BW ORACLE
Other Components
BC-DB-ORA Oracle
Priority Normal
Category How To

Product
This document is not restricted to a product or product version
References
This document refers to:
CSS SAP Notes
442763   Avoid NOLOGGING during the index structure (Oracle)
23345   Consistency check of ORACLE database

No comments: