Oracle

未找到導入轉儲文件架構

  • November 28, 2017

我想導入轉儲文件,但出現此錯誤

Import: Release 11.2.0.4.0 - Production on Mar. Nov. 28 10:12:56 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

Connect : Oracle Database 11g Release 11.2.0.4.0 - 64bit Production
ORA-39002: invalid operation
ORA-39165: Schema TEST_2 was not found.

我的命令行:

impdp TEST/TEST@RECT0E DIRECTORY=DUMP_DIR DUMPFILE=Fichier.20171123_151835.dpdmp LOGFILE=TEST_2_27112017.log FULL=N EXCLUDE=STATISTICS REMAP_TABLESPACE=TEST_DATA:TEST_DATA_TEST REMAP_TABLESPACE=TEST_INDEX:TEST_INDEX_TEST REMAP_SCHEMA=TESTPR:TEST_2 SCHEMAS=TEST_2

我確認我的架構存在:

SELECT username FROM all_users ORDER BY username;

結果:

USERNAME
------------------------------
TEST
TEST_2
TEST_3

因此,您正在導入TESTPR SCHEMASCHEMAS ,請將參數的值更改TESTPR為如下所示。您已經給出TEST_2SCHEMAS轉儲文件中未包含的內容,因此您遇到了錯誤ORA-39165

...REMAP_SCHEMA=TESTPR:TEST_2 SCHEMAS=TESTPR

引用自:https://dba.stackexchange.com/questions/191870