重新命名Oracle表時出現ORA-26563錯誤

來源:互聯網
上載者:User

如果在重新命名Oracle表的時候出現ORA-26563: 不允許重新命名此表錯誤,試著將表上的物化視圖日誌drop就可以了。

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前要檢查表後是否掛了物化視圖。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.