重命名Oracle表时出现ORA-26563错误

2014-11-24 18:54:43 · 作者: · 浏览: 0

sql>> create materialized view log on test_1;


实体化视图日志已创建。


sql>> alter table test_1 rename to test_2;
alter table test_1 rename to test_2
*
ERROR 位于第 1 行:
ORA-26563: 不允许重命名此表


sql>> drop materialized view log on test_1;


实体化视图日志已删除。


sql>> alter table test_1 rename to test_2;


表已更改。


RENAME前要检查表后是否挂了物化视图。