Xref: alice comp.databases.oracle.server:48324 comp.databases.oracle.tools:24375
Path: alice!news-feed.fnsi.net!news.maxwell.syr.edu!newsfeed.cwix.com!130.185.14.36!torn!news1.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail
Message-ID: <37307D40.73CD6FB0@sympatico.ca>
From: Marc Mazerolle <informaze@sympatico.ca>
Organization: InforMaze Inc.
X-Mailer: Mozilla 4.04 [en] (WinNT; I)
MIME-Version: 1.0
Newsgroups: comp.databases.oracle.server,comp.databases.oracle.tools
Subject: Re: Sql*loader record-size problem
References: <7gps7i$qrs$1@as102.tel.hr>
Content-Type: multipart/alternative; boundary="------------46229BF3D74D68484533E861"
Lines: 111
Date: Wed, 05 May 1999 17:14:01 GMT
X-Trace: news20.bellglobal.com 925924441 207.236.163.193 (Wed, 05 May 1999 13:14:01 EDT)
NNTP-Posting-Date: Wed, 05 May 1999 13:14:01 EDT
--------------46229BF3D74D68484533E861
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<HTML>
Alen,

<P>This is my control file :
<BR><TT>load data characterset us7ascii</TT>
<BR><TT>infile "whatever.dat" "fix 26"</TT>
<BR><TT>append</TT>
<BR><TT>into table dulf_data</TT>
<BR><TT>(</TT>
<BR><TT>car_number smallint&nbsp; ,</TT>
<BR><TT>location_id char(7),</TT>
<BR><TT>event_level_rev position(10) byteint "ROUND(:EVENT_LEVEL_REV/16)",</TT>
<BR><TT>event_level_code position(10) byteint "MOD(:EVENT_LEVEL_REV,16)",</TT>
<BR><TT>diagnostic_code smallint,</TT>
<BR><TT>first_set integer "to_date('1970-01-01','YYYY-MM-DD')+(:FIRST_SET/60/60/24)",</TT>
<BR><TT>last_set&nbsp; integer "to_date('1970-01-01','YYYY-MM-DD')+(:LAST_SET/60/60/24)",</TT>
<BR><TT>last_reset integer</TT>
<BR><TT>&nbsp;"decode(:LAST_RESET,0,null,to_date('1970-01-01','YYYY-MM-DD')+(:LAST_RESET/60/60/24))",</TT>
<BR><TT>counter smallint</TT>
<BR><TT>)</TT>

<P>Note the "fix 26" in my infile parameter.... my file is 26 bytes long
with no NL. I have not found any documentation on this feature but it works
perfectly.

<P>Regards,

<P>Marc Mazerolle
<BR>InforMaze Inc.

<P>Alen Selimbegovic wrote:
<BLOCKQUOTE TYPE=CITE>I'm loading data from file which have fixed-length
<BR>records, but no record delimiters (newline&nbsp; characters).
<BR>Does anyone knows is there solution within SQL*loader?
<BR>I've searched whole documentation, but nothing helps.
<BR>There isn't parameter in which we could specify number of bytes
<BR>in a single record (we could write small program for inserting NL
<BR>chars, but it is strange for such import utility not to have this simple
<BR>feature).

<P>We are using AIX 4.3 based Oracle 7.3.4. server, and Win95 Pc
<BR>client side.

<P>Alen Selimbegovic
<BR>PBZ American Express
<BR>alen.selimbegovic@amex.tel.hr</BLOCKQUOTE>
&nbsp;</HTML>

--------------46229BF3D74D68484533E861--

