impdp 匯入物化視圖(mv)時報錯 :ORA-31685: Object type MATERIALIZED_VIEW,impdpora-31685

來源:互聯網
上載者:User

impdp 匯入物化視圖(mv)時報錯 :ORA-31685: Object type MATERIALIZED_VIEW,impdpora-31685

本文為原創文章,轉載請註明出處: http://blog.csdn.net/msdnchina/article/details/38782657

impdp 匯入物化視圖(mv)時報錯 :ORA-31685: Object type MATERIALIZED_VIEW

db 版本為10.2.0.4
impdp 命令為
impdp sys/as dumpfile=scott.dmp logfile=scott_imp_no_remap.log

匯入的報錯為:
Processing object type SCHEMA_EXPORT/MATERIALIZED_VIEWORA-31685: Object type MATERIALIZED_VIEW:"SCOTT"."LEITEST0719" failed due to insufficient privileges. Failing sql is:CREATE MATERIALIZED VIEW "SCOTT"."LEITEST0719" USING ("LEITEST0719", (8, 'FS', 1, 0, 0, "SCOTT", "LEITEST0719", '2013-07-24 17:21:42', 0, 52219, '1950-01-01 12:00:00', '', 0, 8912636, 0, NULL, (1, "OBJECT_ID", "OBJECT_ID", 0, 321, 0)), 2097249, 8, ('1950-01-01 12:00:00', 4, 0, 0, 8912636, 0, 0, 1, NULL, NULL), '@BBB') REFRESH FAST WITH PRIMARY KEY AS SELECT "LEITEST0719"."OWNER" "OWNER","Processing object type SCHEMA_EXPORT/TABLE/MATERIALIZED_VIEW_LOG

處理方法為:

1.首先建立scott使用者:create user scott identified by aaaaaa;
2.賦予scott使用者建立mv的許可權:grant create MATERIALIZED_VIEW to scott;
3.重新執行impdp即可:impdp sys/as dumpfile=scott.dmp logfile=scott_imp_no_remap.log




相關文章

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.