Oracle Rename Table - Example Syntax and Dependencies
Renaming a table in Oracle is simple. Following is the generic Oracle table rename syntax:
1 | ALTER TABLE current_table_name RENAME TO new_table_name; |
In practice, you might realize you left off a prefix that you are using as a naming standard. Changing the table name can be accomplished with the following example syntax:
1 | ALTER TABLE employee RENAME TO dw_employee; |
If the table is already in use, I recommend that you review custom code, Oracle packages, stored procedures, and any other references to the table. You can use tools like TOAD to view dependencies on the table prior to renaming it. Below is a screenshot within TOAD of the “Used By” tab that can be used when your table is selected in the schema browser:

Related Information:
- Oracle Rename Column - alter table, rename column Example SQL Syntax
Following is simple example syntax for renaming a column to an Oracle table using "alter table" SQL:
ALTER...
- alter table, add column - Oracle Example Syntax Following is simple example syntax for adding a column to an Oracle table using “alter table” SQL: 1 2 ALTER...
- TOAD for Oracle 9 or TOAD 10 - 64-bit Windows - ORA-12154: could not resolve the connect identifier specified or ORA-6413: connection not open I recently downloaded the new 10.x version of TOAD and could not connect to my databases. Still running TOAD 9.x,...
- Oracle SUBSTR with INTSR Function - SQL Syntax Examples Oracle SUBSTR and INSTR SQL functions are typically used together in practice for parsing a string. Following are...
- Oracle SUBSTR Function - SQL Syntax Examples The Oracle
SUBSTRSQL Function is very common, and many times misused. Below shows theSUBSTRfunction along with the... - Oracle TO_DATE Function - SQL Syntax Examples The Oracle
TO_DATESQL function is used to convert a TEXT or NTEXT representation of a date into an Oracle... - Oracle INSTR Function - SQL Syntax Examples The Oracle
INSTRSQL function is popular and performs materially the same operation asinstrfunctions in many other programming... - MySQL and SQL Server - Oracle CONNECT BY PRIOR for Recursive, Hierarchical Data Recursive queries are something I have used many, many times over the years to build dynamic, n-tiered hierarchies. Oracle’s CONNECT...
