0% found this document useful (0 votes)
31 views

How To Run SQL Loader 1. Make Sure Ader Control File.. 2. Contoh Control File

The document provides instructions on how to run SQL Loader to load data into Oracle tables from CSV and text files. It includes examples of control files that specify the data files, fields, data types and loading options for two tables. The instructions specify that SQL Loader is run by providing the username, password, schema and name of the control file.

Uploaded by

Abaan Pok Ya
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

How To Run SQL Loader 1. Make Sure Ader Control File.. 2. Contoh Control File

The document provides instructions on how to run SQL Loader to load data into Oracle tables from CSV and text files. It includes examples of control files that specify the data files, fields, data types and loading options for two tables. The instructions specify that SQL Loader is run by providing the username, password, schema and name of the control file.

Uploaded by

Abaan Pok Ya
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

How to run sql loader 1. make sure ader control file.. 2.

contoh control file


--csv LOAD DATA INFILE '20111007_tel_nr_missing_bci_28092011_updated_0610_v1.csv' BADFILE 'masterbci.bad' DISCARDFILE 'masterbci.dsc' APPEND INTO TABLE MASTER_BCI TRAILING NULLCOLS( BCI char terminated by ",", PROD_ID char terminated by ",", CHRG_INST_ID char terminated by ",", TAX_PLAN_ID char terminated by ",", BCI_START_DATE constant '07-OCT-2011', BCI_STATUS constant 'A', BCI_TYPE char terminated by ",", BCI_FRAC_IND char terminated by ",", BCI_DESC char terminated by ",", CHRG_TYPE char terminated by ",", SUB_SUM_CODE char terminated by ",", SUB_SUM_DESC char terminated by ",", SUM_CODE char terminated by ",", SUM_DESC char terminated by ",", SERV_TYPE char terminated by ",", SEF_CODE char terminated by ",", DAT_CODE char terminated by ",", SERV_CLASS char terminated by ",", REP_ARRNGT_ID constant 'R1') -- text file LOAD DATA INFILE '/nbsff03/nbs/C/01/dl/FNBTAXABLE.dat' BADFILE '/nbsff03/nbs/C/01/dl/FNBTAXABLE.bad' DISCARDFILE '/nbsff03/nbs/C/01/dl/FNBTAXABLE.dis' APPEND INTO TABLE taxable_amt( bill_date position(01:10) DATE "dd/mm/yyyy", acct_no position(11:24) CHAR, serv_no position(25:40) CHAR, sub_sum_code position(41:45) CHAR, taxable_amt position(46:56) decimal external, tax_amt position(57:67) decimal external)

3. run Sqlldr userid=username/password@schema control=ctl_file.ctl

You might also like