Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading 2 tables from a .ctl (control) file

Status
Not open for further replies.

EvansEd

Programmer
Sep 30, 2002
9
US
I wanted to load two different data files, one after the other into the same table. Can I do this? (see below)
If not, what would be the correct structure to load two files?

OPTIONS ( SILENT=(FEEDBACK) )
LOAD DATA
INFILE "$DATFILE"
BADFILE "$BADFILE"
INFILE "$DATFILE2"
BADFILE "$BADFILE2"
INTO TABLE iwork TRUNCATE
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
(ACCT char
,DBT_MEMO_NBR char
,DSTRBTR_NM char
)
 
What you're doing should work. It looks very similar to the example in the Oracle Utilities manual that shows how to specify multiple data files in a single load.
 
Except....

You are TRUNCATING INTO the table twice !!

[cry]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top