Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Partition

22431Nov 13 2001
Hi all,

I am trying to create two partitions on one table. First
partition will hold the past three days data and 2nd partition
will hold rest of the data. Any thing wrong with this code?

CREATE TABLE TEST(TES NUMBER,
TTS DATE NOT NULL)
PARTITION BY RANGE (TTS) (
PARTITION TAB_PAST_3DAYS VALUES LESS THAN (TO_DATE(SYSDATE-
3,'DD-MON-YYYY')),
PARTITION TAB_REST VALUES LESS THAN (MAXVALUE) ));

I am getting error.

ERROR at line 4:
ORA-14019: partition bound element must be one of: string,
datetime or interval literal, number, or
MAXVALUE


Please help me.

Swetha.


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 12 2001
Added on Nov 13 2001
2 comments
284 views