Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: Sql * Loader

Re: Sql * Loader

From: <dmolinier_at_gmail.com>
Date: 17 Apr 2006 11:32:13 -0700
Message-ID: <1145298733.902130.141170@v46g2000cwv.googlegroups.com>


In fact, no... but you can do it nevertheless.

Assuming your Oracle version is > 8i, there is a new keyword "FILLER" than you can use to reach your need : use '*' (single star) as a separator, and modify your control file so that 5 fields will be loader from your data file.

[...]

   name CHAR TERMINATED BY "*" ...,
   dummy1 FILLER CHAR EXTERNAL TERMINATED BY "*" ...,    town CHAR TERMINATED BY "*" ...,
   dummy2 FILLER CHAR EXTERNAL TERMINATED BY "*" ...,    country CHAR TERMINATED BY "*" ...,
[...]

Obviously, the "dummy" fields are not needed in the destination table.

Hope this helps...

-- 
David
Received on Mon Apr 17 2006 - 13:32:13 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US