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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

list - list partiton in 10g is it allowed?

Status
Not open for further replies.

goodmans

MIS
Apr 23, 2008
63
GB
Is list-list partitioning is alowed in 10g?

I am trying to create the below table its giving an error like missing or invalid option. Am I missing anything?

create table test_part (
bk_col varchar2(8),
sid varchar2(4),
current_record_flag varchar2(1)
)
partition by range (SID)
subpartition by list (current_record_flag)
subpartition template (
subpartition cr_part_y values ('Y'),
subpartition cr_part_n values ('N')
)

(
partition a_PART values ('ABC')
partition B_PART values ('BCA')
)

Regards
G

 
Allowed partitioning methods are:

Oracle manual said:
Range partitioning

Hash partitioning

List partitioning

Composite range-hash partitioning

Composite range-list partitioning

Since composite list-list is not mentioned, I suspect it's not supported.
 
Is there any way to do this in 10g?
create range partitiion but condition is
value betwee 1 and 1

Regards
G
 
Depending on the length of your key values, you may be able to append something to the end of each one so that they go into the correct partitions e.g.

Code:
create table test_part (
bk_col varchar2(8),
sid varchar2(4),
current_record_flag varchar2(1)
)
partition by range (SID) 
          subpartition by list (current_record_flag)
              subpartition template (
                    subpartition cr_part_y values ('Y'),
                    subpartition cr_part_n values ('N')
                    ) 
(
  partition a_PART values less than ('ABCZ'),
  partition B_PART values less than ('BCAZ'),
  partition c_part values less than (maxvalue)
)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top