I am splitting the region_east partition into region_east_1 & region_east_2 as below. My question is, which values('CT', 'VA', 'MD') goes to region_east_1 and which values goes to region_east_2 partition. How oracle maps these values('CT', 'VA', 'MD') to two partitions(region_east_1 & region_east_2). Can any one please clarify?
Are you sure this is a valid syntax? That for sure will work for hash partitioning but here I think you should specify at which value the partition should be split.
Regards
04-02-2007, 07:51 AM
PAVB
Listed values go to first partition then CT, VA and MD go to region_east_1
All non listed values existing in original partition go to region_east_2
By the way, your case study rings a bell... I'm almost sure I've seen than example in some place.
04-02-2007, 11:20 AM
ndisang
I was also looking a ask a question about partition split. I have this example that i saw somewhere out there...
ALTER TABLE my_table SPLIT PARTITION my_table_part AT (3)
INTO (PARTITION my_table_part_1,
PARTITION my_table_part_2);
then follows this select/verification
COLUMN high_value FORMAT A20
SELECT table_name,
partition_name,
high_value,
num_rows
FROM user_tab_partitions
ORDER BY table_name, partition_name;
My questions is...where does the (3) as in At (3) above come from?
I would have thought it comes from the HIGH_VALUE column of the table to be split?
but my does not return anything..
SQL> select high_value from user_tab_partitions where table_name ='AAS_AON_FCT_2004_Q4';
no rows selected
Thanks
04-02-2007, 12:26 PM
PAVB
ndisang -- Your example looks like related to range-partitioning where you are creating partitions depending on some value range of the key.
The number (3) in the example is the higher-value you admit in that specific partition
04-02-2007, 09:18 PM
pranavgovind
PAVB, thank you for the answer.
04-03-2007, 11:47 AM
ndisang
You are right PAVB...my table is range partition on date field.
Thanks...
04-21-2007, 12:23 PM
pranavgovind
I have one quick question about split partition.
My table is list partitioned table. I have default partition name called REST. Now i wanted to add new partitions, but due to the default partition, i am not able to add it. But default partition REST does not have any values. I mean, default partition is empty now. At this circumstances, i want to add a partition. As per my knowlege, the only option is, drop the default partition and add new partitions. Is there any other options to add new partition at this situation? If so, can any one provide a syntax to add new partition?
Thanks
04-21-2007, 01:45 PM
PAVB
You can't add partitions in the middle of your partition set... you have to split partitions.
04-21-2007, 02:47 PM
pranavgovind
Dear PAVB, I understand that i can not add a partition now. Can you please tell me the syntax for spliting the default partition. Again, default partition is empty. Now how can i split it? If possible, i need commands for this?