Hi,
I have a some tables set up like so
Now I need to add a new partition for 2010. I can't figure out the best way to do that. I thought I could just add a partition, but that doesn't seem to work. Is there a good way to add partitions to a table, or will I need to rename and recreate it?
-----------------------------------------
I cannot be bought. Find leasing information at
I have a some tables set up like so
Code:
CREATE TABLE ACTIVITY
(
.
.
.
CLOSED_DATE DATE,
.
.
.
)
TABLESPACE ACTIVITY_MAX_D
PCTUSED 80
PCTFREE 10
INITRANS 4
MAXTRANS 255
STORAGE (
PCTINCREASE 0
BUFFER_POOL KEEP
)
LOGGING
PARTITION BY RANGE (CLOSED_DATE)
(
PARTITION ACTIVITY_2008 VALUES LESS THAN (TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE ACTIVITY_2008_D
PCTUSED 80
PCTFREE 2
INITRANS 4
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL KEEP
),
PARTITION ACTIVITY_2009 VALUES LESS THAN (TO_DATE(' 2010-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
NOCOMPRESS
TABLESPACE ACTIVITY_2009_D
PCTUSED 80
PCTFREE 2
INITRANS 4
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL KEEP
),
PARTITION ACTIVITY_MAX VALUES LESS THAN (MAXVALUE)
LOGGING
NOCOMPRESS
TABLESPACE ACTIVITY_MAX_D
PCTUSED 80
PCTFREE 10
INITRANS 4
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL KEEP
)
)
NOCOMPRESS
CACHE
NOPARALLEL
MONITORING
ENABLE ROW MOVEMENT;
-----------------------------------------
I cannot be bought. Find leasing information at