Doubt of partitioning

Hi all

10.2.0.4 on solaris

We have a buge table which we intend to convert to table partitioned using DBMS_REDEFINITION as per the
Metalink note. Unfortunately, we have a little confusion in the use of the partitioning key (column). Application guy
need the key of partitioning on a date column (which is not a primary key and null values too).

I was referring to http://download.oracle.com/docs/cd/B28359_01/server.111/b32024/partition.htm and found that
It is not possible. A partitioning key does not have null values.

No idea how to proceed in this scenario?


Kai
SQL> select * from sd partition(sd3);

       PID SD              CID         TP
---------- -------- ---------- ----------
*NULL*     *NULL*   *NULL*     *NULL*

SQL> update sd set sd=to_date('01/01/1970','DD/MM/YYYY');
update sd set sd=to_date('01/01/1970','DD/MM/YYYY')
       *
ERROR at line 1:
ORA-14402: updating partition key column would cause a partition change

SQL> alter table sd enable row movement;

Table altered.

SQL> update sd set sd=to_date('01/01/1970','DD/MM/YYYY');

1 row updated.

SQL>  select * from sd partition(sd1);

       PID SD              CID         TP
---------- -------- ---------- ----------
*NULL*     01-01    *NULL*     *NULL*

Edited by: P. Forstmann August 2, 2011 21:33

Tags: Database

Similar Questions

Maybe you are looking for