When Number of Pending Statistics Increases, It Takes Time to Collect Statistical Information
(Doc ID 2642768.1)
Last updated on DECEMBER 04, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 19.2.0.0.0 and laterOracle Database Cloud Exadata Service - Version N/A and later
Oracle Cloud Infrastructure - Exadata Cloud Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Gen 2 Exadata Cloud at Customer - Version N/A and later
Information in this document applies to any platform.
Symptoms
- Collecting statistics without publishing pending statistics, the following SQL takes long time:
delete /* QOSH:PURGE_OLD_STS *//*+ dynamic_sampling(4) */ from sys.wri$_optstat_histgrm_history where :1 = savtime and obj# = :2 and intcol# = nvl(:3, intcol#)
Changes
Increased pending statistics.
If you need to look at pending stats you can query DBA_COL_PENDING_STATS or ALL_COL_PENDING_STATS, note both of these have the same columns.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |