My Oracle Support Banner

Preserving Statistics using DBMS_STATS.LOCK_TABLE_STATS (Doc ID 283890.1)

Last updated on AUGUST 04, 2018

Applies to:

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

Purpose

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.

Scope

This document is intended for DBAs.

Details

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.