
ショコラ
Oracle impdpコマンドでテーブルスペースを変更してインポートするには?
impdp {ユーザー名}/{パスワード}@{接続文字} table_exists_action=replace remap_tablespace={元のテーブルスペース}:{変更後のテーブルスペース}でキメマス。

もっさん先輩
手順
- dpdump ディレクトリにダンプファイルをコピーします。
SELECT directory_path FROM dba_directories WHERE directory_name='DATA_PUMP_DIR';
- impdpコマンドを実行します。
impdp {ユーザー名}/{パスワード}@{接続文字} table_exists_action=replace remap_tablespace={元のテーブルスペース}:{変更後のテーブルスペース}
「table_exists_action=replace」は存在しているテーブルを DROP してからインポートするという意味です。