Requires Free Membership to View
How you load the data depends on whether the data is comma delimited, tab delimited, uses special characters, needs additional processing and so on. Once you know these answers, you need to create a control file which describes how to handle all of your options. An example control file to load some data might look like the following:
LOAD DATA INFILE 'ITS_data.txt' BADFILE 'ITS_data.bad' DISCARDFILE 'ITS_data.dsc' APPEND INTO TABLE pims_temp FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' (wbs_parent,wbs,ffs_account,ffs_account_desc,ffs_subtask_desc, rescode,resource_name,resdept,type, hrs_dlrs_ind,month1,month2,month3,month4,month5,month6,month7,month8,month9, month10,month11,month12)
In this case, the input file is called 'ITS_data.csv'. It will load this data into a table called 'pims_temp'. The input file is a comma delimited file, optionally enclosed with the double quotes.
Without knowing more about your specific requirements, I can't help
much more than that. You'll really want to read the chapter on
SQL*Loader in the Oracle Utilities Guide.
This was first published in March 2004

Join the conversationComment
Share
Comments
Results
Contribute to the conversation