😢
【Windows/DataPump】共有フォルダにexportできないのか...?
【結論】DataPumpはCIFSをサポートしていないため、別サーバの共有フォルダに向けてのexpdpは出来ない
OracleのDataPumpは、CIFS(Windowsシステムで一般的に使用されるファイル共有プロトコル)をサポートしていません。
そのため、以下のような状況ではexpdpできません。
- impdp実行側のサーバに、共有フォルダを作成する。
- expdp実行側において、ディレクトリオブジェクトのパスをimpdp実行側の共有フォルダにする。
(例:CREATE DIRECTORY <ディレクトリ名> AS '\\共有フォルダのパス';
を実行)
expdpできそうな状況ですが、実行してみるとエラーになります。
参考:自分が失敗したときの出力
C:\Windows\system32>expdp user/******** TABLES=test_table DIRECTORY=DUMP_DIR DUMPFILE=test_exp.dmp LOGFILE=test_exp.log
Export: Release 12.1.0.2.0 - Production on Thu Feb 29 06:45:15 2024
Copyright (c) 1982, 2015, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Standard Edition Release 12.1.0.2.0 - 64bit Production
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation
出来そうで出来ないもどかしさ...
Discussion