Oracle Statistical information Collection

Source: Internet
Author: User

Dbms_stats. Gather_table_stats (
Ownname VARCHAR2,
TabName VARCHAR2,
PartName VARCHAR2 DEFAULT NULL,
Estimate_percent number
Block_sample BOOLEAN DEFAULT FALSE,
Method_opt VARCHAR2
Degree number
Granularity VARCHAR2
Cascade BOOLEAN
Stattab VARCHAR2 DEFAULT NULL,
Statid VARCHAR2 DEFAULT NULL,
Statown VARCHAR2 DEFAULT NULL,
No_invalidate BOOLEAN DEFAULT,
StatType VARCHAR2 DEFAULT ' DATA ',
Force BOOLEAN DEFAULT FALSE);

1.estimate_percent: Sampling percent, valid range is [0.000001,100]
2.block_sample: Using random block sampling instead of random row sampling
3.cascade: Whether to collect statistics for this table index
4.degree: Number of CPUs processed in parallel
5.granularity: Statistical data collection, ' All '-collects all (sub-partitions, partitions and global) statistics

Ownname VARCHAR2
Estimate_percent number
Block_sample BOOLEAN DEFAULT FALSE,
Method_opt VARCHAR2
Degree number
Granularity VARCHAR2
Cascade BOOLEAN
Stattab VARCHAR2 DEFAULT NULL,
Statid VARCHAR2 DEFAULT NULL,
Options VARCHAR2 DEFAULT ' GATHER ',
Objlist out Objecttab,
Statown VARCHAR2 DEFAULT NULL,
No_invalidate BOOLEAN
Force BOOLEAN DEFAULT FALSE,
Obj_filter_list objecttab DEFAULT NULL);

待续:后续会做对应参数的解释,以及使用场景http://docs.oracle.com/cd/E11882_01/appdev.112/e40758/d_stats.htm#ARPLS68582

Oracle Statistical information Collection

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.