How To Fix DB6PM766 - DBCFG - NUM_FREQVALUES: Execute RUNSTATS command after changing the value


SAP Error Message - Details

  • Message type: E = Error

  • Message class: DB6PM - DB2 UDB for UNIX, Windows: Performance Monitoring

  • Message number: 766

  • Message text: DBCFG - NUM_FREQVALUES: Execute RUNSTATS command after changing the value

  • 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 DB6PM766 - DBCFG - NUM_FREQVALUES: Execute RUNSTATS command after changing the value ?

    The SAP error message DB6PM766 DBCFG - NUM_FREQVALUES: Execute RUNSTATS command after changing the value typically indicates that there has been a change in the database configuration related to the frequency values for statistics collection, and the system is prompting you to update the statistics to reflect this change.

    Cause:

    1. Configuration Change: The error arises when the configuration parameter NUM_FREQVALUES has been modified. This parameter controls the number of frequency values that the database collects for statistics.
    2. Outdated Statistics: The database statistics are outdated or do not match the current configuration settings, which can lead to suboptimal query performance.

    Solution:

    To resolve this error, you need to execute the RUNSTATS command on the database. This command collects and updates the statistics for the database objects, ensuring that the optimizer has the most current information to make decisions about query execution plans.

    Steps to Execute RUNSTATS:

    1. Access the Database: Log in to your database management system (DBMS) where your SAP database is hosted.
    2. Run the Command: Execute the RUNSTATS command. The exact syntax may vary depending on the database system you are using (e.g., DB2, Oracle, etc.). For example, in DB2, you might use:
      RUNSTATS ON TABLE your_table_name;

      You may also want to run it on all tables or specific schemas as needed.

    3. Verify Execution: After running the command, check for any errors and ensure that the statistics have been updated successfully.

    Related Information:

    • Database Documentation: Refer to the documentation specific to your database system for detailed instructions on the RUNSTATS command and its options.
    • SAP Notes: Check SAP Notes for any specific recommendations or patches related to this error message.
    • Performance Monitoring: After updating the statistics, monitor the performance of your queries to ensure that they are executing optimally.
    • Regular Maintenance: Consider scheduling regular maintenance tasks to update statistics, especially after significant changes to the database schema or data volume.

    By following these steps, you should be able to resolve the error and ensure that your database statistics are up to date.

    • 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