简体   繁体   中英

Re-importing specific tables from Oracle dump file

I imported a full oracle dump file into my database schema using the following command in linux ssh.

    impdp system/password directory=bckup schemas=sch101 dumpfile=sc101.dmp    remap_schema=sch101:MY_SCHEMA TABLE_EXISTS_ACTION=APPEND;

This command imported must of the tables into me target schema but some of the tables were skipped due to some constraint error. I wanted to try to import these tables into my database after fixing the problem one by one. I used following command for doing so,

    impdp system/password DIRECTORY=bckup TABLES=TBL_NAME DUMPFILE=sch101.dmp remap_schema=sch101:MY_SCHEMA TABLE_EXISTS_ACTION=APPEND;

But this command returns me error:

    ORA-39002: invalid operation
    ORA-39166: Object SYSTEM.TBL_NAME was not found.

I checked the name of the tables I tried to import in the export log file of the dump file that I used and they exist in the dump file. What is that silly mistake that I am doing here?

Because you're importing as system from what is presumably a full (not schema) export, you need to specify the schema name in the tables parameter , despite the presence of the schema parameter:

... TABLES=sch101.TBL_NAME ...

The error message you're getting refers to SYSTEM.TBL_NAME , which clearly (or hopefully, anyway) isn't what you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM