Doubt of partitioning
Hi all10.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
-
Basically I have a live bookmark that I can't remove. Even more, he will not even open feed items, but open them all running tabs very well.Oddly enough, I can still move around and rename (although it does not change the two URLS).Any ideas?
-
How to connect my Satellite 5000-104 to a TV?
Hi, I hope someone can help. I have an old Toshiba S5000-104 which works perfectly. However, I wanted to plug into a TV screen and there is a handset very strange video-out/line connector (not a standard composite or s-video) and I do not know the ty
-
I'm doing my update on my Apple Watch
Im trying to update my Apple Watch, but it retains Statin my wifi is on, but I'm not connected to the internet. I rebooted my iPhone & Apple Watch & it still does not. What should I do?
-
I can't print my coupons to my email... ran a test and it say network name (SSID found) fail... but it says that the printer is ready and online?
-
Is there another way to ensure the elimination of this program other than through Control Panel?