Do you have any question about this error?
Message type: E = Error
Message class: HH - (Long) text for check tool 'infcfgcheck'
Message number: 076
Message text: The last update statistics session took place a long time ago
The last update statistics session occurred quite a long time ago.
Determine when the last session run by analyzing the SAPDBA log table
DBSTATTINF (maximum value in field LUPDSTAT).
You have either forgotten to schedule regular update statistics
sessions (Planning Calendar in Transaction DB13 or 'cronjob'), or the
scheduled interval is too large.
Only regularly executed update statistics sessions (for all tables)
can ensure that the Informix cost-based optimizer makes the correct
decisions (index instead of 'Seq. Scan',
which index, and so on).
Call Transaction DB13 (Planning Calendar) and schedule regular complete
update statistics sessions. We recommend a weekly update statistics
(for all tables) with a threshold of '10' (default value). The sessions
should run when system activity is as low as possible (for example,
during the night on the weekend).
A threshold greater than 0% insures that all tables are not processed
(-> long update statistics runtime). Instead, the system only processes
those tables whose number of records has grown or shrunk by the
specified percentage since the last update statistics session.
Error message extract from SAP system. Copyright SAP SE.
HH076
- The last update statistics session took place a long time ago ?The SAP error message HH076 indicates that the last update statistics session for a particular database table or index has not been executed for a long time. This can lead to performance issues because the database optimizer relies on up-to-date statistics to make informed decisions about how to execute queries efficiently.
Cause:
- Outdated Statistics: The primary cause of this error is that the statistics for the specified table or index have not been updated for an extended period. This can happen due to infrequent maintenance tasks or if the automatic statistics update feature is disabled.
- Database Configuration: In some cases, the database configuration may not be set to automatically gather statistics, leading to outdated information.
- Low Activity: If a table is not frequently accessed or modified, the statistics may not be updated regularly.
Solution:
Manually Update Statistics: You can manually trigger an update of the statistics for the affected table or index. This can typically be done using transaction codes like
DB02
orST03N
in SAP, or by executing a specific SQL command depending on your database (e.g.,ANALYZE TABLE
for Oracle).
- For example, in SAP, you can use the following steps:
- Go to transaction
DB02
.- Navigate to the "Database Performance" section.
- Select the "Statistics" tab.
- Choose the relevant table and execute the statistics update.
Schedule Regular Updates: Implement a regular maintenance schedule to update statistics automatically. This can be done through background jobs in SAP or by configuring the database to gather statistics at regular intervals.
Check Database Settings: Ensure that your database settings allow for automatic statistics updates. This may involve checking the database documentation for specific configurations related to statistics gathering.
Monitor Performance: After updating the statistics, monitor the performance of the affected queries and transactions to ensure that the changes have had a positive impact.
Related Information:
DB02
, ST03N
, and ST04
for monitoring database performance and statistics.By addressing the HH076 error promptly and ensuring that statistics are kept up to date, you can help maintain optimal database performance and avoid potential issues in the future.
Get instant SAP help. Start your 7-day free trial now.
HH075
This 'unique' index is 'disabled'
What causes this issue? The specified 'unique' index is still defined, but currently 'disabled'. This is a dangerous condition be...
HH074
This 'not null' constraint is 'disabled'
What causes this issue? The specified 'Not Null' constraint is still defined, but it is currently 'disabled'. This may lead to mi...
HH077
Edit the Informix ONCONFIG file
What causes this issue? The ONCONFIG parameter 'LRUS' in your system is set lower than the minimum setting we recommend. For more informati...
HH078
Edit the Informix ONCONFIG file
What causes this issue? The ONCONFIG parameter 'DS_TOTAL_MEMORY' in your system is set larger than the default value. This is unnecessary o...
Click on this link to search all SAP messages.