I have partitioned my table from SEPT. 1998 - SEPT. 2002. I did not specify the maxvalue
when I created the partition.
Assuming I accidentally dropped my JAN2001(i.e. XFL_JAN2001) partition. Now I would like to split the partition for XFL_DEC2000 partition in order to add XFL_JAN2001 partition. XFL_DEC2000 contains data.
How do I perform this partition split. Below is what I have in mind. Can any one help?
alter table football
split partition XFL_DEC2000
into (
partition XFL_DEC2000 tablespace DEC2000_TABS,
partition XFL_JAN2001 tablespace JAN2001_TBS)
parallel (degree 4)
Originally posted by randy alter table football
split partition XFL_DEC2000
into (
partition XFL_DEC2000 tablespace DEC2000_TABS,
partition XFL_JAN2001 tablespace JAN2001_TBS)
parallel (degree 4)
Assuming you have partitioned on a date:
Code:
alter table football
split partition XFL_DEC2000
at (to_date('01/01/2001','mm/dd/yyyy')) into (
partition XFL_DEC2000 tablespace DEC2000_TBS,
partition XFL_JAN2001 tablespace JAN2001_TBS)
parallel (degree 4)
I'm also not sure about the parallel clause, you'd have to try it....
Right, right, right. I wasn't even looking at what you were trying to do. You must split the higher partition since the values are "LESS THAN".
Code:
alter table football
split partition XFL_FEB2001
at (to_date('01/01/2001','mm/dd/yyyy')) into (
partition XFL_JAN2001 tablespace JAN2001_TBS,
partition XFL_FEB2001 tablespace FEB2001_TBS)
SQL> alter football
2 split partition XFL_FEB2001
3 at (to_date('01/01/2001','mm/dd/yyyy')) into (
4 partition XFL_JAN2001 tablespace JAN2001_TBS,
5 partition XFL_FEB2001 tablespace FEB2001_TBS);
split partition XFL_FEB2001
*
ERROR at line 2:
ORA-14080: partition cannot be split along the specified high bound
OK, I'll need to see your partitioning and table structure.
desc football
set long 2000
col partition_name for a30
col high_value for a40
select partition_name, high_value
from dba_tab_partitions
where table_name = 'FOOTBALL'
order by partition_name
SQL> desc football
Name Null? Type
----------------------------------------- -------- ----------------------------
PLAYER_LAST_NAME NOT NULL VARCHAR2(40)
PLAYER_FIRST_NAME NOT NULL VARCHAR2(40)
AGENT_NAME VARCHAR2(50)
SIGN_DATE NOT NULL DATE
TEAM_NAME NOT NULL VARCHAR2(40)
Bookmarks