Translate

Note 584548 - Unusually high number of redo logs

Summary
Symptom
The system generates an unusually high number of redo logs, which cannot be explained by the R/3 load. If you do not recognize this situation in time, the archive directory may fill up and the system may shut down because the archiver is stuck.
Other terms
Redo log, frequency
Reason and Prerequisites
Redo log information is always written if data is changed in the database. Depending on the application, the redo log frequency may vary. For example, more redo log data is accumulated during peak times in dialog mode or during a batch job involving many changes than during times of low R/3 activity.

If the redo log frequency increases significantly from one minute to the next and remains at a high level for a long period without an application-related explanation, the following causes are possible:
    1. The tablespaces are in backup mode
    2. Oracle 9.2.0.3 or lower: Bug with parallel rollback
    3. Oracle 8.1.7 (8.1.7.3 or lower): Bug with index-cluster-DML
    4. There is an application-related malfunction
    5. There are inconsistencies in the Oracle dictionary
    6. Materialized views are refreshed
    7. An error occurs when you delete DDLOG
    8. You create, rebuild or coalesce indexes
    9. Table conversions (for example, as part of transports)
    10. There is a tablespace overflow or a MAXEXTENTS error
    11. ASSM, Oracle 9.2.0.6 / 9.2.0.7: Oracle bug
    12. Advanced Compression (Oracle 11g or higher)
    13. Supplemental Logging
Solution
    1. During an online backup, you must convert tablespaces to backup mode before you save them to disk. If you then make changes in one of these tablespaces, the system not only writes the change to the redo log, but also the entire related 8K block. As a result, the volume of redo log data increases significantly. If an online backup terminates prematurely and the tablespaces are no longer taken from the backup mode, more redologs are constantly written. You should therefore check, according to Note 4162, whether there are still any tablespaces in backup mode and, if necessary, set them to "End backup".
              If the increased redo log generation only occurs during an online backup, you should check whether you can only set the tablespaces you have just saved to backup mode rather than all tablespaces from start to finish. This means that the complete blocks must only ever be recorded for individual data files in the redo logs. If, when you use BACKINT, you want to set to backup mode only those tablespaces of the data file to be saved at that moment, you can convert the BR*TOOLS parameter BACKUP_DEV_TYPE from UTIL_FILE to UTIL_FILE_ONLINE.
    2. If the fast_start_parallel_rollback parameter is set to "true", this may lead to an increased redo log frequency due to an Oracle bug. See Note 581359 for information.
    3. In very rare cases, the bug from Note 515762 may occur, resulting in an increased occurrence of redo logs.
    4. In many cases, an exceptionally high occurrence of redo logs may be caused by an R/3 application that is running incorrectly. Therefore, you should check the following points:
      a) Are (long) INSERT-, UPDATE- or DELETE operations repeatedly displayed on the same tables in transaction SM66?
      b) Does the syslog (SM21) display rollbacks at intervals of one minute? If so, check what the associated work process is doing.
      c) Are there frequently executed INSERT, UPDATE or DELETE operations in the SQL cache (ST04 -> Detailed Analysis Menu -> SQL request) that change a large number of entries?
      d) Do the times of the log switches mostly follow a particular rule (for example, always at intervals of five minutes or a multiple of five minutes)?
              If you can answer "Yes" to any of these questions, you should check the triggering program (for example, using Transaction SM66) more closely. If you suspect that a malfunction has occurred (such as an endless loop, with alternating large-scale INSERTs and DELETEs on a table and so on), check whether the initializing program is being used correctly or whether you can implement another solution (for example, less regular scheduling, changed configuration).
              You can use the following SQL statement to determine the 20 INSERT/UPDATE/DELETE statements that were used to process the largest number of data records up to now, and thereby largely contributed to the redo log load:

SELECT * FROM
(SELECT SUBSTR(SQL_TEXT, 1, 64), ROWS_PROCESSED
FROM V$SQL
WHERE ( UPPER(SQL_TEXT) LIKE 'INSERT %' OR
UPPER(SQL_TEXT) LIKE 'UPDATE %' OR
UPPER(SQL_TEXT) LIKE 'DELETE %' ) AND
ROWS_PROCESSED > 0
ORDER BY ROWS_PROCESSED DESC)
WHERE ROWNUM <= 20;
              In addition, you can determine the segments that involve most changes as follows:

SELECT * FROM
( SELECT
    SUBSTR(OBJECT_NAME, 1, 30) SEGMENT,
    SUBSTR(STATISTIC_NAME, 1, 20) STATISTIC_NAME,
    VALUE
  FROM V$SEGMENT_STATISTICS
  WHERE STATISTIC_NAME IN ('db block changes', 'physical writes')
  ORDER BY VALUE DESC )
WHERE ROWNUM <=20;
              If you notice that an AutoABAP started under the SAPSYS user (report RSCORE00) tries unsuccessfully to write entries into the SNAP table every five minutes, you can solve the problem by deleting the triggering coreinfo files in the work directory.
              If you use DELETE instead of DROP PARTITION (SAP Note 1816370), this may cause a high redo log rate in the BW environment.
              If you cannot find a solution and the problem concerns a function of the SAP standard system, open a message with SAP.
    5. A high occurrence of redo logs may also be caused by an inconsistency in the Oracle dictionary. This happens particularly if large-scale redo logs are still written even after you stop the R/3 System and restart Oracle.
              In addition, you find more active transactions under V$ROLLSTAT (XACTS column) than in V$TRANSACTION.
              If this scenario applies to you, open a message with SAP to eliminate the inconsistency.
    6. Under certain circumstances, a significant amount of redo log information is written when you refresh materialized views. See also Note 741478.
    7. Check whether messages of the following type

    BZY  Unexpected return value 99  when calling up DbSlM
              are logged in the syslog. If so, check the developer trace of the relevant work process (transaction ST11) for the triggering error. Rollback segment errors such as ORA-01562 often occur when you access the DDLOG table. In this case, the problem can be solved as follows:
  • Stop all R/3 instances.
  • Since DDLOG contains data for the buffer synchronization, do not hesitate to empty the table if R/3 is stopped:

    sqlplus <sapuser>/<password>
    TRUNCATE TABLE DDLOG;
  • Now restart the R/3 instances.
    8. When you create indexes using create, rebuild or coalesce, all index data is logged in the redo logs. Therefore, check whether such activities (for example, as part of regular index defragmentation) are responsible for the high quantity of redo logs. If this is the case, you can consider using NOLOGGING. As a result, redo log information no longer accrues. However, in the case of a recovery that goes beyond the period of setup, the index is damaged and must be set up again after this. If FORCE LOGGING was activated at database level, NOLOGGING has no effect.
    9. If changes are made to table definitions as part of transports (for example, if additional columns are added), this is often associated with a significant increase in the number of Redo logs. The RDDEXECL job runs in this case. Therefore, check whether transports and long-running RDDEXECL executions occurred during the period in question.
    10. If you cannot successfully complete a change activity that was executed cyclically due to an error on Oracle, such as a tablespace overflow or reaching the MAXEXTENTS limit, and if the changes therefore keep being rolled back, this can lead to a significant increase in the redo log volumes. Therefore, check the syslog and the Oracle-Alert log to see if these error messages are accumulating and remove the problem that triggers them. See also Notes 3155 and 533455.
    11. Use ASSM and Oracle 9.2.0.6 or 9.2.0.7, see Note 912918.
    12. Using the OLTP table compression as part of the advanced compression option (Oracle 11g or higher) causes a considerable increase of the redo log volume. If required, change-intensive tables should not be compressed to reduce the burden on the Oracle log writer (LGWR).
    13. The activation of supplemental logging at table level or database level also causes the redo log volume to increase and therefore, should only be used where it is technically required.
Header Data
Release Status:Released for Customer
Released on:13.08.2013  17:36:39
Master Language:German
Priority:Recommendations/additional info
Category:Help for error analysis
Primary Component:BC-DB-ORA Oracle
Affected Releases
Release-Independent
Related Notes

 
912918 - Massive UNDO/REDO generation when you use ASSM
 
741478 - FAQ: Materialized views
 
581359 - Very high redo log amount with parallel txn rollback
 
533455 - Terminations due to higher number of extents
 
515762 - Index cluster DML hangs, rollb. seg. increases very quickly
 
79341 - Checkpoint not complete
 
4162 - Missing "end backup"
 
3155 - Termination due to tablespace overflow
 
391 - Archiver stuck

No comments:

Labels

sap hana hana database aws s4 hana hana db s4hana conversion steps sap hana azure bw4hana hana migration s4hana migration sap cloud migration steps sap hana migration steps sap hana migration to azure s4hana sap fiori fiori performance fiori erp s4 hana fiori sap fiori app sap fiori client sap fiori launchpad sap s4 hana fiori cisco ecc AI SAP AI abap dumps hana sap S/4HANA S/4HANA Conversion best sap ui5 & fiori training configuration database fiori tutorial on webide free sap ui5 & fiori training s/4 hana sap dumps sap fiori tutorial sap ui5 sap ui5 & fiori sap ui5 & fiori tutorial sara ui5cn 2367245 - Troubleshooting performance issues with SAP BPA Amazon free tier for SAP AWS setup Experience CALL_FUNCTION_NOT_FOUND CCMS Configuration and Use Create New Data Class in SAP (Oracle) Critical top SAP Abap dumps DHCP Clients Not Receiving IP Addresses Download Stack.xml HAN-DB HAN-DB-ENG High CPU Usage Due to Excessive Process Switching How To How to Start and Stop SAP Hana Tenant Database How to change SAP Hana Sql Output results are limited to 5000 Records How to perform SAP Dual Stack Split - Netweaver Inactive Objects in SAP Intercompany transactions in SAP AP / AR : Cross Company Code Transaction Interface Flapping Due to Duplex Mismatch KBA LOAD_PROGRAM_LOST MSSQL shrinking transaction log file Migrating to SAP hana database NAT Overload Causing Internet Access Failure Note 500235 - Network Diagnosis with NIPING OSPF Adjacency Not Forming PRINCE2 Foundation Sample Questions Preparing for S/4HANA Conversion and the MUST know items Push to Download Basket S/4HANA Migration Cockpit S/4JANA SAP BI Support Data Load Errors and Solutions SAP BI/BW Landscape SAP BPA SAP Basis SAP Basis Automation SAP Business Objects SAP CPS SAP Certification SAP FI Certification SAP FI Certification Sample Questions SAP HANA Admin - Cockpit SAP HANA DB Engines SAP HANA Database SAP HANA terminate session connection disconnect cancel kill hang stuck SAP Hana DB restore SAP Hana Numeric Error Codes SAP Landscape SAP Language installation SAP MM and Purchase Order Tables SAP Maintenance Planner SAP Note 500235 SAP R/3 Glossary SAP Readiness Check SAP S/4HANA 1709 Installation Files SAP S/4HANA 2023 SAP S/4HANA 2023 Installation SAP S/4HANA 2023 running SAP S/4HANA Installation SAP Scheduling SAP Solman 7.2 CHARM: SAP Support Package Stack Strategy SAP Support package SAP Upgrade SAP support stack upgrade SP stacks STORAGE_PARAMETERS_WRONG_SET SUSE/SLES/Kernel versions Setup of S/4hana 2023 TSV_TNEW_PAGE_ALLOC_FAILED TSV_TNEW_PAGE_ALLOC_FAILED error Transaction ID Unable to download an SAP Note Unix/Linux Command That Are Helpful For SAP Basis Upgrading SAP Kernel Without Downtime Upgrading windows server 2008 to windows server 2019 What is OSS Notes? SAP SNOTE Tutorial accounting agile ale idoc ale/edi archive FI documents audit auditing auditor aws aws cloud basic type bluefield approach ccms ccmsidb charm copilot datavard dbacockpit download sap note download snote edi idoc electronic data interchange enable sap archiving objects erpprep ffid firefighter fraud functional hana admin how to apply sap security note https://www.erpprep.com/ idoc install install sap fiori installation interfaces intermediate document internal control license key linux version materials management messsage niping test order type port prince2 agile prince2 agile practitioner purchasing quick info s4 hana sap abap dumps sap abbreviations sap activate certification sap activate project manager sap authorization sap aws sap brownfield sap ccms sap ccms configuration sap erp sap error sap grc sap greenfield sap internet demo system sap license sap maintenance certificate sap material management sap meaning sap mm sap mm consultant sap monthly security note sap netweaver sap network diagnostic sap niping sap note sap oss sap patch day sap performance sap performance issue sap purchase order sap s/4hana sap sales and distribution sap sap otc sap sd sap sd certification training sap sd course sap sd jobs sap sd module sap sd online training sap sd training sap sd tutorial sap sd tutorial for beginners sap security sap security note sap snote sap snote tutorial sap solution manager sap sql segregation of duties separation of duties sles slicense smc snote snote in sap system sod conflict solution manager solution maneger stop start hana database suse linux techie trex two step upgrade required waterfall