DBMSSTATS
DBMS_STATS is an Oracle Database package that manages optimizer statistics. It provides facilities to collect and maintain statistics that describe data distribution, table sizes, and other properties used by the cost-based optimizer to estimate query costs and choose execution plans. The statistics are stored in the data dictionary and can be refreshed as data changes.
The package can gather statistics for the entire database, a specific schema, or individual tables and indexes.
Statistics gathering can be performed manually by invoking procedures such as GATHER_DATABASE_STATS or GATHER_SCHEMA_STATS, or automatically
The gathered statistics are exposed by data dictionary views such as DBA_TABLES, DBA_TAB_COLUMNS, DBA_INDEXES, and DBA_IND_COLUMNS,
Best practices include scheduling statistics gathering during maintenance windows for large data changes, using incremental statistics