DataPump Oracle ORAエラー

IMPDP実行時にORA-39001,ORA-39000,ORA-39088が発生する原因と対処|Oracle, Datapump

事象

ASHダンプファイルをインポートしようとした際に、以下エラーが発生。

ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-39088: file name cannot contain a path specification

実行例

SQL> host impdp test/test fromuser=SYS touser=test file=C:\Users\Administrator\Desktop\ash_test.dmp

Import: Release 12.2.0.1.0 - Production on Thu May 21 14:20:49 2022

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

Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-39088: file name cannot contain a path specification

原因と解決策

DB側でデータポンプ用のディレクトリが作成されていないために発生している。
対処として以下のようにディレクトリを作成すれば解消される。

create or replace directory <ディレクトリ名> as '<OSのパス>';

実行例
SQL> create or replace directory dump_dir as 'C:\Users\Administrator\Desktop';

Directory created.

この記事が役に立ったという方は
ボタンをポチッとしてくれたら喜びます

-DataPump, Oracle, ORAエラー
-,