Rename View in Oracle

Gunnar picture Gunnar · Jun 25, 2012 · Viewed 29.8k times · Source

Possible Duplicate:
Rename Oracle Table or View

I know you can use

ALTER TABLE oldName RENAME TO newName;

to rename a table, but "ALTER" doesn't work with renaming views.

What's the syntax for renaming Views in Oracle (i'm using 11g if that makes any difference)?

Answer

Sergey Kalinichenko picture Sergey Kalinichenko · Jun 25, 2012

You can use RENAME on views, like this:

Use the RENAME statement to rename a table, view, sequence, or private synonym.

RENAME old_view_name to new_view_name