sqlplus as sysdba
*
SQL> select table_name from dba_tables where wner='ROCKY';
TABLE_NAME
------------------------------
XXX
SQL> alter table rocky.xxx rename to xx;
表已更改。
SQL> select table_name from dba_tables where wner='ROCKY';
TABLE_NAME
------------------------------
XX
SQL> alter table rocky.xxx rename to rocky.x;
alter table rocky.xxx rename to rocky.x
*
第 1 行出现错误:
ORA-14047: ALTER TABLE|INDEX RENAME 不能与其它分区组合
SQL> conn rocky/rocky
已连接。
SQL> rename xx to x;
表已重命名。
SQL> select table_name from user_tables;
TABLE_NAME
------------------------------
X
SQL> alter table x rename to xxx;
表已更改。
SQL>
If we login as sysdba , then we don't need to add schema/owner name to the new talbe name string.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/11976525/viewspace-631664/
,如需转载,请注明出处,否则将追究法律责任。