Datapump 导入无法打开日志文件

Datapump import is unable to open the log file

我正在尝试导入 Oracle BISAMPLE.dmp 模式,但出现此错误(无法打开日志文件)

参数 to the directory parameter 是 Oracle 目录对象的名称,而不是对操作系统目录的直接引用。

如果您还没有指向该操作系统目录的 Oracle 目录对象,它必须位于数据库服务器上而不是客户端计算机上,您(作为 DBA)将必须 create it,并且向需要使用它的任何其他 Oracle 用户授予权限。

例如:

create directory MY_DATAPUMP_DIR as 'C:\installs\datapumpdir`;

然后

impdp directory=MY_DATAPUMP_DIR dumpfile=...

或者,您可以移动 .dmp 文件 to the default directory,然后省略 directory 参数或为其指定默认值 DATA_PUMP_DIR

另外,注意大警告from the documentation

Do not invoke Import as SYSDBA, except at the request of Oracle technical support. SYSDBA is used internally and has specialized functions; its behavior is not the same as for general users.