How To Fix S1822 - DB optimizer statistics of & tables (normal priority) are obsolete


SAP Error Message - Details

  • Message type: E = Error

  • Message class: S1 - Statistik / SAP-Monitor

  • Message number: 822

  • Message text: DB optimizer statistics of & tables (normal priority) are obsolete

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message S1822 - DB optimizer statistics of & tables (normal priority) are obsolete ?

    The SAP error message S1822 indicates that the database optimizer statistics for certain tables are considered obsolete. This can lead to suboptimal query performance because the database optimizer relies on these statistics to determine the most efficient way to execute queries.

    Cause:

    The cause of this error message is typically related to the following factors:

    1. Data Changes: Significant changes in the data within the tables (inserts, updates, deletes) can render the existing statistics outdated.
    2. Time: Statistics may become obsolete over time as the underlying data changes.
    3. Database Configuration: Certain database configurations or settings may affect how and when statistics are updated.

    Solution:

    To resolve the S1822 error, you need to update the optimizer statistics for the affected tables. Here are the steps to do this:

    1. Use Transaction Code ST02:

      • Go to transaction code ST02 (Tune Summary) in SAP.
      • Check for the specific tables listed in the error message.
    2. Update Statistics:

      • You can update the statistics using the following methods:
        • Using SAP Transaction DBACOCKPIT:
          • Go to transaction DBACOCKPIT.
          • Navigate to the "Database Administration" section.
          • Find the option to update statistics for the specific tables.
        • Using SQL Commands:
          • If you have access to the database, you can run SQL commands to update the statistics. The command varies depending on the database system (e.g., ANALYZE TABLE for Oracle, UPDATE STATISTICS for SQL Server).
        • Using SAP Report:
          • You can also use the SAP report RSSTAT10 to update statistics for the specified tables.
    3. Schedule Regular Updates:

      • To prevent this issue from recurring, consider scheduling regular updates of statistics as part of your database maintenance plan.

    Related Information:

    • Monitoring: Regularly monitor the performance of your database and the status of optimizer statistics.
    • Database-Specific Tools: Depending on your database (e.g., Oracle, SQL Server, HANA), there may be specific tools or commands available for managing statistics.
    • SAP Notes: Check SAP Notes for any specific recommendations or patches related to your version of SAP and the database you are using.

    By following these steps, you should be able to resolve the S1822 error and improve the performance of your database queries.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant