這個工具可以大量匯入資料,具體使用方法如下:
用法: SQLLDR keyword=value [,keyword=value,...]
有效關鍵字:
userid -- Oracle 使用者名稱/口令
control -- 控制檔案名稱
log -- 記錄檔名
bad -- 錯誤檔案名稱
data -- 資料檔案名
discard -- 廢棄檔案名稱
discardmax -- 允許廢棄的檔案的數目 (全部預設)
skip -- 要跳過的邏輯記錄的數目 (預設 0)
load -- 要載入的邏輯記錄的數目 (全部預設)
errors -- 允許的錯誤的數目 (預設 50)
rows -- 常規路徑綁定數組中或直接路徑儲存資料間的行數
(預設: 常規路徑 64, 所有直接路徑)
bindsize -- 常規路徑綁定數組的大小 (以位元組計) (預設 256000)
silent -- 運行過程中隱藏訊息 (標題,反饋,錯誤,廢棄,分區)
direct -- 使用直接路徑 (預設 FALSE)
parfile -- 參數檔案: 包含參數說明的檔案的名稱
parallel -- 執行並行載入 (預設 FALSE)
file -- 要從以下對象中分配區的檔案
skip_unusable_indexes -- 不允許/允許使用無用的索引或索引分割區 (預設 FALSE)
skip_index_maintenance -- 沒有維護索引, 將受到影響的索引標記為無用 (預設 FALSE)
commit_discontinued -- 提交載入中斷時已載入的行 (預設 FALSE)
readsize -- 讀取緩衝區的大小 (預設 1048576)
external_table -- 使用外部表格進行載入; NOT_USED, GENERATE_ONLY, EXECUTE (預設 NOT_USED)
columnarrayrows -- 直接路徑列數組的行數 (預設 5000)
streamsize -- 直接路徑流緩衝區的大小 (以位元組計) (預設 256000)
multithreading -- 在直接路徑中使用多線程
resumable -- 啟用或禁用當前的可恢複會話 (預設 FALSE)
resumable_name -- 有助於標識可恢複語句的文本字串
resumable_timeout -- RESUMABLE 的等待時間 (以秒計) (預設 7200)
date_cache -- 日期轉換快取的大小 (以條目計) (預設 1000)
PLEASE NOTE: 命令列參數可以由位置或關鍵字指定
。前者的例子是 'sqlload
scott/tiger foo'; 後一種情況的一個樣本是 'sqlldr control=foo
userid=scott/tiger'.位置指定參數的時間必須早於
但不可遲於由關鍵字指定的參數。例如,
允許 'sqlldr scott/tiger control=foo logfile=log', 但是
不允許 'sqlldr scott/tiger control=foo log', 即使
參數 'log' 的位置正確。