Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to search data dictionary for interval partitions?

Guess2Jul 12 2013 — edited Jul 12 2013

Oracle 11.2.0.3

When I query DBA_PART_TABLES.PARTITIONING_TYPE it says 'range'. I want to be able to differential an interval from other range based partitions in the data dictionary?


used this example. shows 'range'

http://www.rittmanmead.com/2008/09/investigating-oracle-11g-interval-partitioning/

Oracle Docs list 'SYSTEM' as a partitioning_type which I thought would be intervals.

ALL_PART_TABLES

[code]

  1   CREATE TABLE interval_sales

  2          ( prod_id        NUMBER(6)

  3          , cust_id        NUMBER

  4          , time_id        DATE

  5          , channel_id     CHAR(1)

  6          , promo_id       NUMBER(6)

  7          , quantity_sold  NUMBER(3)

  8          , amount_sold    NUMBER(10,2)

  9          )

10       PARTITION BY RANGE (time_id)

11       INTERVAL(NUMTOYMINTERVAL(1, 'MONTH'))

12         ( PARTITION p0 VALUES LESS THAN (TO_DATE('1-1-2005', 'DD-MM-YYYY')),

13           PARTITION p1 VALUES LESS THAN (TO_DATE('1-1-2006', 'DD-MM-YYYY')),

14           PARTITION p2 VALUES LESS THAN (TO_DATE('1-7-2006', 'DD-MM-YYYY')),

15*          PARTITION p3 VALUES LESS THAN (TO_DATE('1-1-2007', 'DD-MM-YYYY')) )

SQL>/

Table created.

Elapsed: 00:00:00.01

SQL> select partitioning_type from user_part_tables where table_name = 'INTERVAL_SALES';

PARTITION

---------

RANGE

[/code]

This post has been answered by Greg Spall on Jul 12 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2013
Added on Jul 12 2013
3 comments
725 views