 |
|
Oracle Tips by Burleson |
Oracle 10g Changes to dbms_stats package
With Oracle Database 10g, there are some new
arguments available for the dbms_stats package subprograms. Those
parameters are as follows:
granularity
This parameter is used in subprograms such as
gather_table_stats and gather_schema_stats. This parameter indicates the granularity
of the statistics that you want to collect, particularly for
partitioned tables. As an example, you can gather the global
statistics on a partitioned table, or you can gather global and
partition-level statistics. It has two options. They are: AUTO and
GLOBAL AND PARTITION.
When the AUTO option is specified, the
procedure determines the granularity based on the partitioning type.
Oracle collects global, partition-level, and sub-partition level
statistics if sub-partition method is LIST. For other partitioned
tables, only the global and partition level statistics are
generated.
When the GLOBAL AND PARTITION option is
specified, Oracle gathers the global and partition level statistics.
No sub-partition level statistics are gathered even it is composite
partitioned object.
Get the complete Oracle10g story:
To get the code instantly, click here:
Need an Oracle Mentor?
BEI is now offering personal mentors for Oracle DBAs where you can have an
Oracle expert right at your fingertips, anytime day or night. We work with
hundreds of Oracle databases every year, so we know exactly how to quickly
assist you with any Oracle question.
Why risk an unplanned outage? You can now get telephone access to Don
Burleson or any of his Oracle Certified DBAs with more than 20 years of
full-time IT experience. Click here for details:
http://www.dba-oracle.com/service_oracle_backup.htm

|