Database DataWarehousing (MOSC)

MOSC Banner

Insert are very slow into a new partition

edited Dec 6, 2013 2:07AM in Database DataWarehousing (MOSC) 2 commentsAnswered
  Hi all,in our OLTP system, we have a table with more than 1 billion of rows partitioned into months for the last 10 years.

The table has a RANGE PARTITIONING on column TIMESTAMP, a LOCAL unique index on columns (TAG_ID, TIMESTAMP) and a Foreign Key for TAG_ID column.

CREATE TABLE MY_TABLE( TAG_ID  NUMBER(9)  NOT NULL, TIMESTAMP DATE NOT NULL, VALUE NUMBER, VALIDITY_FLAG  NUMBER(3), VARIANZA NUMBER(12,5) )
PARTITION BY RANGE (TIMESTAMP) (  
  PARTITION GEN_2001 VALUES LESS THAN (TO_DATE(' 2001-02-01 07:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')), 
  ...., 
  PARTITION GEN_2014 VALUES LESS THAN (TO_DATE(' 2014-02-01 07:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center