时间:2021-07-01 10:21:17 帮助过:2人阅读
OPTIONS(skip_index_maintenance=TRUE,direct=true,BINDSIZE=20971520,READSIZE=20971520,ERRORS=-1,ROWS=500000) --unrecoverable load data --CHARACTERSET AL32UTF8 LOAD DATA INFILE ‘c:\xxxxxe.txt‘ ---------数据文件,即txt文件 Append INTO TABLE Demo7.TMS_BRANCHCODE2 -----表名,全路径 FIELDS TERMINATED BY X‘09‘ -----数据用制表符分割 TRAILING NULLCOLS ( ID, ------表中字段 Branch_Plant, SO_Number, Trip_Number, Shippment_Date --"to_date(:Shippment_Date,‘‘‘yyyy-mm-dd hh24:mi:ss‘‘‘)" Sold_to, Sold_to_Name, Ship_to, Ship_to_Name, BarCode_Info, Barcode_Seg_1, Barcode_Seg_2, Barcode_Seg_3, Barcode_Seg_4, Barcode_Seg_5, Last_Updated_Time --"to_date(:Shippment_Date,‘‘‘yyyy-mm-dd hh24:mi:ss‘‘‘)" )
2.运行.ctl文件导入数据,打开CMD运行如下文件
C:/>sqlldr userid=system/manager@ serviceName control=c:\xxx.ctl
SQL Server 2012大数据导入Oracle的解决方案
标签: