My Oracle Support Banner

Preserving Statistics using DBMS_STATS.LOCK_TABLE_STATS (Doc ID 283890.1)

Last updated on AUGUST 04, 2019

Applies to:

Oracle Database - Standard Edition - Version and later
Oracle Database - Enterprise Edition - Version and later
Oracle Database - Personal Edition - Version and later
Information in this document applies to any platform.


This document outlines how to use DBMS_STATS.LOCK_TABLE_STATS to preserve statistics.

The purpose of DBMS_STATS.LOCK_TABLE_STATS is to lock table statistics:

NOTE: Locking without statistics being gathered implies the use of dynamic sampling (if enabled). Locking statistics implies that these representative values provide a good plan for all.


This document is intended for DBAs.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.