I wrote a stored procedure to RENAME USER system generated name for interval partition tables and LOCAL indexes.
One pertinent information on >>Interval Partitioning
- Can only partition on one key column and must be NUMBER or DATE type
>>NUMTOYMINTERVAL must resolve to the following values: ’YEAR’,'MONTH’
>>NUMTODSINTERVAL must resolve to the following values: ’DAY’,'HOUR’,'MINUTE’,'SECOND’
Download stored procedure and test case >>interval_part.sql
UPDATED: Add parameter p_table to package.
Update ONE table: exec mdinh_pkg.ren_interval_part(‘day’);
Update ALL tables: exec mdinh_pkg.ren_interval_part;
Advertisement


Hello,
It could be better if this procedure accepts some arguments (for example the table name…).
Regards
Gokhan
Comment by Gokhan Atil — July 6, 2011 @ 6:18 am |
Thanks and done.
Comment by mdinh — July 6, 2011 @ 5:41 pm |
This is a very useful procedure, thanks for sharing.
Comment by Mor — July 13, 2011 @ 12:39 pm |