Hello,
In Oracle 9i on a test system I can use the below to rename a table if I am the Schema owner. I tried renaming a table as the user SYS but the message said I did not have privs. As SYS I used this 1st: ALTER SESSION SET CURRENT_SCHEMA = <schema>;
1. How can I rename a table as SYS (or at least a user with DBA role)?
2. I have a production table (say TABLE_A) where I want to:
A. Rename a production table to say TABLE_OLD.
B. Then rename another table (TABLE_B) to TABLE_A.
Can someone please list any special considerations in doing this in a production environment?
Thoughts:
Can a table be taken off-line first?
How can I check if anyone is using the table?
Thanks very much for your advice,
Michael42
In Oracle 9i on a test system I can use the below to rename a table if I am the Schema owner. I tried renaming a table as the user SYS but the message said I did not have privs. As SYS I used this 1st: ALTER SESSION SET CURRENT_SCHEMA = <schema>;
Code:
RENAME TABLE_A TO TABLE_B;
1. How can I rename a table as SYS (or at least a user with DBA role)?
2. I have a production table (say TABLE_A) where I want to:
A. Rename a production table to say TABLE_OLD.
B. Then rename another table (TABLE_B) to TABLE_A.
Can someone please list any special considerations in doing this in a production environment?
Thoughts:
Can a table be taken off-line first?
How can I check if anyone is using the table?
Thanks very much for your advice,
Michael42