As Salamo alaikum wa rahmatullah
I have created one control file by the name stk.ctl which has following parameter
---------------------------
LOAD DATA
INFILE "D:/upload/stk.csv"
BADFILE "D:/upload/stk.bad"
DISCARDFILE "D:/upload/stk.dsc"
Insert into table tbl_mst_stock
Fields terminated by ","
(stock_id,stk_code,stk_desc,created_dt date 'mm/dd/yyyy',updated_dt date 'mm/dd/yyyy')
After that open the command prompt and put the following command
c:/>sqlldr userid=scott@orcl/tiger control=stk.ctl log=stk.log <etner>
--
MA Asalaam
Passion for Oracle
I have created one control file by the name stk.ctl which has following parameter
---------------------------
LOAD DATA
INFILE "D:/upload/stk.csv"
BADFILE "D:/upload/stk.bad"
DISCARDFILE "D:/upload/stk.dsc"
Insert into table tbl_mst_stock
Fields terminated by ","
(stock_id,stk_code,stk_desc,created_dt date 'mm/dd/yyyy',updated_dt date 'mm/dd/yyyy')
After that open the command prompt and put the following command
c:/>sqlldr userid=scott@orcl/tiger control=stk.ctl log=stk.log <etner>
--
MA Asalaam
Passion for Oracle
No comments:
Post a Comment