Impdp import Materialized View (MV) error: ORA-31685: Object Type materialized_view

Source: Internet
Author: User

This article is the original article, reprint please indicate the source: http://blog.csdn.net/msdnchina/article/details/38782657

Impdp import Materialized View (MV) error: ORA-31685: Object Type materialized_view

DB version 10.2.0.4
The impdp command is
Impdp sys/As dumpfile = Scott. dmp logfile = scott_imp_no_remap.log

Import error:
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", '2017-07-24 17:21:42 ', 0, 52219, '1970-01-01 12:00:00 ', '', 0, 1950, 0, null, (1," object_id "," object_id ", 8912636, 0), 2097249, 8, ('2017-01-01 12:00:00 ', 4, 0, 0, 1950, 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

Solution:

1. First create Scott User: create user Scott identified by aaaaaa;
2. Grant Scott the user the permission to create a music video: grant create materialized_view to Scott;
3. Run impdp again: impdp sys/As dumpfile = Scott. dmp logfile = scott_imp_no_remap.log

Impdp import Materialized View (MV) error: ORA-31685: Object Type materialized_view

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.