Rename a partition of table in Oracle

Alter a partition name of table in Oracle

Check the partition name for the table.

col PARTITION_NAME for a32
select table_name,partition_name from dba_tab_partitions where table_name='TRAN' order by partition_name;

Rename the partition with alter command.

ALTER TABLE tran RENAME PARTITION tranQ1 TO trannewQ1;

Verify the partition name with select query.

col PARTITION_NAME for a32
select table_name,partition_name from dba_tab_partitions where table_name='TRAN' order by partition_name;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.