[Dev] oracleのsqlldr なるべく簡単に

in #japanese10 days ago

sqlldrコマンドをなるべく簡単に記述する方法を調べてみた。
以下の内容を省略

  1. データファイル
  2. 制御ファイル
  3. テーブルのカラム名

テーブル名:xxx
データファイル名:xxx.dat

CSVファイル(カンマ区切り)
sqlldr hogeuser/passw0rd@//localhost/pdb01 table=xxx

CSVファイル(ダブルクォーテーション括り)
sqlldr hogeuser/passw0rd@//localhost/pdb01 table=xxx optionally_enclosed_by=\'\"\'

タブ区切り
sqlldr hogeuser/passw0rd@//localhost/pdb01 table=xxx terminated_by=X\'09\'

関連記事
[Dev] oracleのsqlldr