Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Another partitioning question

Re: Another partitioning question

From: Robert Eskridge <bryny_at_dfweahs.net>
Date: Fri, 15 Mar 2002 09:43:44 -0800
Message-ID: <F001.0042ACE4.20020315094344@fatcity.com>


I've never done partitioning but I've got an idea. What about adding a column to hold a value of what partition you want to be in (P1-P6), then populate that with a pre-insert trigger with whatever logic you want...?

It's probably a naive idea, but I'm sure I'll learn from the list... :-)

-rje

S> I think what my boss is asking me to do is not possible, but since I don't
S> have much experience with partitioning I thought I'd ask here (I did read
S> some of manuals but didn't find an answer that suited my conditions). My
S> boss wants a table partitioned by 2 columns - seq_no and type. If the type =
S> 'X' then it's just a range partition, but then he wants another partition
S> that contains all data that type!='X' but is inclusive of the entire range.
S> Is this possible?
S> Something like (I know this syntax isn't correct )
S> create table test_part(
S> id number(11) unique,
S> owner_id number(11) not null,
S> type varchar2(30) not null,
S> name varchar2(40))
S> partition by range(owner_id,type)
S> (partition p1 values less than (20000000) and type ='X' tablespace test,
S> partition p2 values less than (50000000) and owner_table ='X' tablespace
S> test,
S> partition p3 values less than (100000000) and owner_table ='X' tablespace
S> test,
S> partition p4 values less than (500000000) and owner_table ='X' tablespace
S> test,
S> partition p5 values less than (1000000000) and owner_table ='X' tablespace
S> test)
S> partition p6 values less that (1000000000) and owner_table !='X' tablespace
S> test;



-rje

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Robert Eskridge
  INET: bryny_at_dfweahs.net

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Mar 15 2002 - 11:43:44 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US