6

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)?

Community
  • 1
  • 1
Gunnar
  • 2,585
  • 4
  • 21
  • 22

1 Answers1

26

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
Lukas Eder
  • 211,314
  • 129
  • 689
  • 1,509
Sergey Kalinichenko
  • 714,442
  • 84
  • 1,110
  • 1,523