How To Fix S1820 - No valid checks for DB Optimizer Statistics


SAP Error Message - Details

  • Message type: E = Error

  • Message class: S1 - Statistik / SAP-Monitor

  • Message number: 820

  • Message text: No valid checks for DB Optimizer Statistics

  • 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 S1820 - No valid checks for DB Optimizer Statistics ?

    The SAP error message S1820 ("No valid checks for DB Optimizer Statistics") typically indicates that the database optimizer statistics are either missing or not valid for the database tables that the SAP system is trying to access. This can lead to performance issues, as the database optimizer relies on these statistics to create efficient execution plans for SQL queries.

    Cause:

    1. Missing Statistics: The database statistics for certain tables may not have been generated or updated.
    2. Outdated Statistics: The statistics may be outdated and not reflective of the current data distribution in the tables.
    3. Database Configuration: There may be issues with the database configuration or settings that prevent the statistics from being generated or updated correctly.
    4. Database Version: Certain database versions may have specific bugs or issues related to statistics generation.

    Solution:

    To resolve the S1820 error, you can follow these steps:

    1. Update Statistics:

      • Use the database-specific commands to update the statistics for the affected tables. For example, in Oracle, you can use the DBMS_STATS.GATHER_TABLE_STATS procedure, and in SQL Server, you can use the UPDATE STATISTICS command.
      • In SAP, you can also use transaction DB02 to analyze and manage database statistics.
    2. Check for Missing Statistics:

      • Use the database tools or SAP transaction codes to check which tables are missing statistics and need to be updated.
    3. Schedule Regular Updates:

      • Set up a regular job to update statistics automatically, especially after large data changes (inserts, updates, deletes).
    4. Review Database Configuration:

      • Ensure that the database is configured correctly to allow for automatic statistics updates. Check the relevant parameters in your database settings.
    5. Consult Documentation:

      • Refer to the documentation for your specific database system for best practices on managing statistics.
    6. Monitor Performance:

      • After updating the statistics, monitor the performance of the database and the SAP application to ensure that the issue is resolved.

    Related Information:

    • SAP Notes: Check SAP Notes related to performance issues and database statistics for your specific database type (e.g., Oracle, SQL Server, HANA).
    • Database Documentation: Review the documentation for your database system for commands and best practices related to statistics management.
    • SAP Community: Engage with the SAP Community forums for insights and experiences from other users who may have encountered similar issues.

    By following these steps, you should be able to resolve the S1820 error and improve the performance of your SAP system.

    • 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
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author