Oracle sql*loader has many many features...at two of them are applicable in 
your specific case.

You could use CONCATENATE or CONTINUEIF clauses of control file. These 
clauses help you wherever you have multiple physical records form one 
logical record.

Cheers
Viral Desai.



>From: DENNIS WILLIAMS <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
>Subject: RE: How to load text file into database table
>Date: Fri, 20 Sep 2002 08:53:34 -0800
>
>David - If the file is in just the format you show, my first impulse would
>be to use the perl script language to get it into a form that sqlldr could
>easily read. Perl is available on all platforms, including Windows. If you
>get ambitious, Perl can even directly insert the values into Oracle. Jared
>Still, the manager of this list has just published a book on that aspect.
>
>http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?userid=0E2CIPD0W
>9&isbn=0596002106
>
> 
>Dennis Williams
>DBA
>Lifetouch, Inc.
>[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
>-----Original Message-----
>Sent: Friday, September 20, 2002 10:54 AM
>To: Multiple recipients of list ORACLE-L
>
>
>I have a text file and need to load it into database table using sqlldr
>utility.  Is there a way to load a text file? I know how to load csv file
>but not text file.
>
>*** Below is text file format.
>
>Date: Wed Aug 29 10:43:53 CDT 2001
>Name: Paris By Night
>Email: [EMAIL PROTECTED]
>Phone: 202-333-4444
>Location: Washington, DC
>Equipment needing to access: EMS, , , , ,
>Reason: Not working
>
>I want to above data into useraccount table which has following columns.
>
>date
>username
>email
>phone
>location
>equipment
>reason
>
>Thanks in advance,
>David
>
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: Nguyen, David M
>   INET: [EMAIL PROTECTED]
>
>Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
>San Diego, California        -- Mailing list and web hosting services
>---------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
>the message BODY, include a line containing: UNSUB ORACLE-L
>(or the name of mailing list you want to be removed from).  You may
>also send the HELP command for other information (like subscribing).
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: DENNIS WILLIAMS
>   INET: [EMAIL PROTECTED]
>
>Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
>San Diego, California        -- Mailing list and web hosting services
>---------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
>the message BODY, include a line containing: UNSUB ORACLE-L
>(or the name of mailing list you want to be removed from).  You may
>also send the HELP command for other information (like subscribing).




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Viral Desai
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to