0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Oracle データポンプの使い方の一例

Posted at

前提

Windows 10

ディレクトリ作成する

  • OracleDBが入っているサーバ上のディレクトリのみ設定可能
    (ネットワークドライブなどは指定不可)
  • sysでログインする必要あり
CREATE OR REPLACE DIRECTORY EXPDB_DIR AS 'C:\DATADUMP';
CREATE OR REPLACE DIRECTORY IMPDB_DIR AS 'C:\DATADUMP';

ディレクトリを使用したいユーザーに権限を付与

GRANT READ,WRITE ON DIRECTORY EXPDB_DIR TO SYSTEM;

エクスポートする

EXPDP SYSTEM/PASS DERECTORY=EXPDB_DIR SCHEMAS=TEST DUMPFILE=TEST.DMP LOGFILE=TEST.LOG

インポートする

同じスキーマ名でインポートするときは、
スキーマ(ユーザー)を先に作成しておく必要なし

IMPDP SYSTEM/PASS DERECTORY=IMPDB_DIR SCHEMAS=TEST DUMPFILE=TEST.DMP LOGFILE=TEST.LOG
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?