*****************How to Load Data Through Sql Loader***************
step1: we have to create files for ctrl, bad, discard, log, data files for required
location.
control file:
Data file:
Bad file and discard files are empy
Log file automatically created by oracle just we have to give the path with
valid name.
login sql:
conn: system/sysdba
syntax: create directory <<directoryname>> as <<>>directory path
sql>>create directory cust_name as
'C:\Users\Nagendra\Desktop\customer'
sql>>grant read, write on directory cust_name to scott;
conn: scott/tiger
create table: ( table should be empty)
open command prompt:
C:\>sqlldr userid=scott/tiger
control=C:\Users\Nagendra\Desktop\customer\customer_ctl.ctl
data=C:\Users\Nagendra\Desktop\customer\customer_det1.dat
bad=C:\Users\Nagendra\Desktop\customer\cutomer_bad.bad
discard=C:\Users\Nagendra\Desktop\customer\cutomer_dis.dis
log=C:\Users\Nagendra\Desktop\customer\cutomerlog.log;