Skip to Main Content

Oracle Database Discussions

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!

create partition monthly

RobeenMay 3 2017 — edited May 29 2017

Red Hat Linux,

Oracle Database 12c

Hi,

I have to add a new partition every first day each month. The algorithm is as follows

if(day(from sysdate)=1)

int j=1

while(j<13 && j=month(from sysdate))

alter table MOBILE_DATA add partition mobile_data_<year from sysdate>_(j) values less than <?>;

How do I extract the day and month from sysdate?

What should I input as values?

Regards,

Joe

This post has been answered by Mustafa KALAYCI on May 3 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 26 2017
Added on May 3 2017
34 comments
17,822 views