I am trying to upload a csv
file into Oracle server through sqlldr
for my batch file automation. It takes too much time to upload the file into Oracle server with sqlldr
. Through batch it uploads 2100 rows in a minute. When I try to import data directly from the csv
file from Oracle SQL Developer it takes 100k rows in a minute.
This is my .ctl
file:
OPTIONS(SKIP=1)
LOAD DATA
INFILE "D:\\TestBackup\Event.csv"
INSERT into table EVENT
APPEND
fields terminated by ',' OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(BRANCH_ID,TOTAL_SALES,TOTAL_LOST_SALES,TOTAL_INVENTORY,INSERTDATE sysdate
)
This is my .bat
file:
sqlldr abc123@test/demo1 DATA='D:\Event.csv"
CONTROL=D:\Insert.ctl LOG=Insert.log BAD=Insert.bad
How to improve the performance?