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!

Can partition DDL scripts be generated dynamically?

user11367442May 11 2011 — edited May 11 2011
We have a requirement to dynamically generate DDL scripts to create new partitions on a table in our data warehouse. In our example, we want to partition our data by COUNTRY_ID. We have a transaction table in which we create partitions based on each COUNTRY_ID.

When a new value for COUNTRY_ID gets created, is there a way we can dynamically create the DDL script so the new partition is automatically created? COUNTRY_ID is not a smart id and we cannot predict the new values.

We are using Oracle 10g database. Thanks in advance. Not a DBA but just looking for guidance on how to approach.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 8 2011
Added on May 11 2011
3 comments
175 views