Oracle Combined Partitioning

Source: Internet
Author: User

Because the interval partition is for the range, the 11g-12.1 version, currently only interval-* a total of 3 kinds of interval compound partition

Range-list Method:

Partition by range (UpdateTime)
Interval (numtodsinterval (1, ' Day '))
Subpartition by list (Psncode)
Subpartition TEMPLATE (
Subpartition region_1 values (' 038716 '),
Subpartition region_2 values (' 270719 '))
(partition P1 values less than (to_date (' 2014-05-01 ', ' yyyy-mm-dd '))

Note: Each partition has 2 sub-partitions, and the partition's sub-partitions need to be manually added

Interval partition is currently tested, only the range partitioning method is supported

Range-hash Method: 10 sub-hash partitions per partition (you can specify each sub-partition to a separate tablespace)

Partition by range (UpdateTime)
Interval (numtodsinterval (1, ' Day '))
Subpartition by Hash (Psncode)

Subpartition template   (subpartition p1 tablespace ts1   , subpartition p2 tablespace ts2   , subpartition P3 tabl ESPACE Ts3   , subpartition P4 tablespace ts4   )

(partition P1 values less than (to_date (' 2014-05-01 ', ' yyyy-mm-dd '))

Note: This can be achieved by fully automatic partitioning, which is ideal for large tables with more than 10-digit growth characteristics

Hash partition is best 2 of the time, otherwise the data will be distributed unevenly

Range-range Method: The sub-partition needs to be added manually, this kind of partition needs to be generally relatively rare

PARTITION by RANGE (time_id)

INTERVAL (Numtodsinterval (1, ' Day '))

Subpartition by RANGE (Amount_sold)
Subpartition TEMPLATE
(subpartition p_low VALUES less THAN (1000)
, subpartition p_medium VALUES less THAN (4000)
, subpartition P_high VALUES less THAN (8000)
, subpartition p_ultimate VALUES less THAN (maxvalue)
)
(PARTITION before_2000 VALUES less THAN (to_date (' 01-jan-2000 ', ' dd-mon-yyyy '))

Oracle Combined partition

Related Article

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.