oracle大資料匯入sqlldr與匯出sqluldr2
阿新 • • 發佈:2018-11-09
1.匯出sqluldr2
oracle資料匯出工具sqluldr2——專業大資料匯出工具,能夠將資料已txt,csv,dbf等格式快速匯出,效率比普通匯出快70%。
根據查詢語句匯出 field=0x3a表示以分號進行欄位隔開
sqluldr2.exe username/pwd query="select * from table" field=0x3a file="xxx.txt"
如果查詢sql比較長,則可以把sql語句放入到檔案中
sqluldr2.exe username/pwd sql="ini/query.sql" field=0x3a file="xxx.txt"
ASCII線上轉換: https://www.mokuge.com/tool/asciito16/
工具下載地址:https://download.csdn.net/download/qq_36092584/10761148
2.匯入sqlldr
oracle資料匯入工具sqlldr,SQL LOADER大型資料載入工具
1)控制檔案xxx.ctl
load data infile 'C:\Users\10129\Desktop\user.dbf' APPEND into table user FIELDS TERMINATED BY X'3a7c' TRAILING NULLCOLS ( id,name ) user.dbf: 1:|Tom 注意:X'3a7c'表示Ox3a(冒號)和0x7c(豎槓)
2)呼叫
sqlldr userid=使用者名稱/密碼 control=xxx.ctl log=log.out