Skip to Main Content
Oracle in a Nutshell
book

Oracle in a Nutshell

by Rick Greenwald, David C. Kreines
December 2002
Intermediate to advanced content levelIntermediate to advanced
928 pages
85h 29m
English
O'Reilly Media, Inc.
Content preview from Oracle in a Nutshell

Name

ASSOCIATE STATISTICS

Synopsis

ASSOCIATE STATISTICS WITH
{COLUMNS [schema.] table_name.column[, [schema.] table_name.column...]
| FUNCTIONS [schema.]function[,[schema.]function...] 
| PACKAGES [schema.]package[,[schema.]package...] 
| INDEXES [schema.]index[,[schema.]index...] 
} 
{USING [schema.]statistics_type 
| DEFAULT COST (cpu_cost,io_cost,network_cost)
| DEFAULT SELECTIVITY default_selectivity 
| TYPES [schema.]type[,[schema.]type...]
}

Defines how statistics are to be computed for the specified database objects. To remove or disassociate statistics from an object, use the DISASSOCIATE STATISTICS statement. New with Oracle8i.

Keywords

COLUMNS

Specifies that a list of columns will be provided.

FUNCTIONS

Specifies that one or more functions will be associated.

PACKAGES

Specifies that one or more packages will be associated.

INDEXES

Specifies that one or more indexes will be associated.

USING statistics_type

Specifies the statistics type being associated.

DEFAULT COST

Specifies that default costs will be provided for CPU, I/O, and the network. This keyword is not valid if the COLUMNS keyword is used.

cpu_cost

Integer representing the CPU cost of a single execution or access.

io_cost

Integer representing the I/O cost of a single execution or access.

network_cost

Integer representing the network cost of a single execution or access.

DEFAULT SELECTIVITY default_selectivity

Specifies an integer between 1 and 100, representing the default selectivity as a percentage. This keyword is not valid if ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle Internals

Oracle Internals

Donald K. Burleson
Oracle PL/SQL

Oracle PL/SQL

Lewis Cunningham
Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition

Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition

Rick Greenwald, Robert Stackowiak, Jonathan Stern

Publisher Resources

ISBN: 0596003366Errata Page