I believe your partition name must follow the add partition statement. Try this -
ALTER TABLE MY_TABLE ADD PARTITION DATA_98 BY RANGE (DATE_CREATED) VALUES LESS THAN (TO_DATE ('01/01/1999', 'DD/MM/YYYY'))
Main Topics
Browse All TopicsHi folks,
I have a table already created on which I want to add a partition by range on a date column. I checked for for the syntax on the Net and most of them:
1. Either explain the syntax for partitions specified while creating the table: (e.g., http://www.stanford.edu/de
2. Or specify it without the column-name while partitioning (e.g., http://www.databasedesign-
I know I might not have looked enough but am just looking for a sample Alter table command which adds a partition by range on a column which is not the primary key. Maybe something like the correct syntax for:
ALTER TABLE MY_TABLE ADD PARTITION BY RANGE (DATE_CREATED) DATA_98 VALUES LESS THAN (TO_DATE ('01/01/1999', 'DD/MM/YYYY'))
Thanks,
Mayank.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
>> http://download-west.oracl
That link is almost the same as the 1st one which I posted (they look like 2 different versions of the same tutorial) - doesn't explain how to add a partition on a specific column by altering the table. Though it explains how to create and alter (without specifying a column).
>> ALTER TABLE MY_TABLE ADD PARTITION DATA_98 BY RANGE (DATE_CREATED)
>> VALUES LESS THAN (TO_DATE ('01/01/1999', 'DD/MM/YYYY'))
I'd hope that will work :( but it gave an error "ORA-14020: this physical attribute may not be specified for a table partition"
Are you inserting a partition between partitions? or are you adding a partition after the last partition? If you are adding a partition between existing partitions, you have to use the SPLIT PARTITION clause.
I know we have partitions on our database...but when we wanted to add more partitions to the table...we found out the best and easiest way to do this is to export the data, recreate the table with more partitions and then import the data.
Business Accounts
Answer for Membership
by: kimarti3Posted on 2007-04-02 at 10:01:27ID: 18837822
Here is a good article that explains partitions and how to add them. http://download-west.oracl e.com/docs /cd/B10501 _01/server .920/ a9652 1/partiti. htm#6536