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

Home -> Community -> Usenet -> c.d.o.server -> Re: Partitionned tables

Re: Partitionned tables

From: <laurent.citton_at_socgen.com>
Date: Wed, 28 Feb 2001 12:57:10 GMT
Message-ID: <3a9cf5a1.619148278@192.168.48.70>

What about string based ranges ? If the partition key is numeric, I understand the VALUE LESS THAN keywords, but if I have, let's say 12 alphanumeric keys and what to store associated data into 12 related partitions, how can I do it (especially since the limit value for the partition is NOT included in the partition) ?

On Tue, 27 Feb 2001 21:48:34 +1100, "Howard J. Rogers" <howardjr_at_www.com> wrote:

>Range partioning is still perfectly legitimate in 8i.
>
>Take a table with twelve months'-worth of data, and turn it into 12
>partitions based on the date (ie, month) field.... not a problem.
>
>Regards
>HJR
>
>
><laurent.citton_at_socgen.com> wrote in message
>news:3a9b7a0b.521975410_at_192.168.48.70...
>>
>> Hi all,
>>
>> I was previously using partition views on Oracle 7.3 and I am
>> currently migrating to Oracle 8i.
>>
>> Oracle doc says that partition views should not be used anymore, but
>> partitionned tables should be used instead.
>>
>> However, my partitions were based on a single column, each distinct
>> value of the column giving a partition. I have a limited number of
>> values for this column and therefore a limited number of partitions.
>> Inserting a row into this table is not possible if the partition has
>> not been definied first.
>>
>> The problem is that partitionned tables are based on range of values,
>> not on single values.
>>
>> In O7 it looked like
>>
>> create table t1 (id number, type varchar2(10));
>> alter table t1 add constraint c1 check (type='VALUE1');
>> create table t2 (id number, type varchar2(10));
>> alter table t2 add constraint c2 check (type='VALUE2');
>>
>> create view v as
>> select id, type from t1
>> union all
>> select id, type from t2;
>>
>> How can I create a partition table whose ranges are limited to a
>> single value ? I do not want to use hash partitions, because I need to
>> have a direct access to partitions data.
>>
>> Thanks in advance for your answers.
>>
>> Laurent
>>
>>
>
>
Received on Wed Feb 28 2001 - 06:57:10 CST

Original text of this message

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