Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Partition by list...subpartition by list 1

Status
Not open for further replies.

djbjr

Programmer
Dec 7, 2001
106
US
Can I do this?

create table test_table (current_flag varchar2(1), status_group varchar2(20))
PARTITION BY LIST (CURRENT_FLAG)
SUBPARTITION BY LIST (STATUS_GROUP)
subpartition template
( subpartition ACTIVE values ('ACTIVE'),
subpartition DCEASED values ('DECEASED'),
subpartition LTD values('LTD')
subpartition RETIRED values('RETIRED')
subpartition SEPARATION values('SEPARATION')
subpartition TERMINATED values( DEFAULT))
(
PARTITION ACTIVE VALUES ('Y'),
PARTITION NOT_ACTIVE VALUES (DEFAULT))


I keep getting the error

ERROR at line 3:
ORA-00922: missing or invalid option


Can I not partition a table this way?

HELP ME DAAAAAVE!
 
.....and its not because I forgot the columns on the subpartition. I just notice and fixed that and it still doesnt work.
 
The Oracle 9i manual implies subpartitioning is only valid for range partitioning:

Composite Partitioning

Composite partitioning partitions data using the range method, and within each partition, subpartitions it using the hash or list method. Composite range-hash partitioning provides the improved manageability of range partitioning and the data placement, striping, and parallelism advantages of hash partitioning. Composite range-list partitioning provides the manageability of range partitioning and the explicit control of list partitioning for the subpartitions.

Composite partitioning supports historical operations, such as adding new range partitions, but also provides higher degrees of parallelism for DML operations and finer granularity of data placement through subpartitioning.
 
Thanks I found that same info yesterday afternoon.

ho hum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top