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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: SQLLdr help needed

RE: SQLLdr help needed

From: Inka Bezdziecka <IBezdziecka_at_cupe.ca>
Date: Wed, 02 Oct 2002 11:38:21 -0800
Message-ID: <F001.004DE871.20021002113821@fatcity.com>


I am not sure if it helps, but I would use:

- FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"'
- COMMENTS position(n:n+2000) where n=the offset of the first character of the field COMMENTS including delimiters
- ROW_POCESSED SEQUENCE(MAX,1) 

inka
-----Original Message-----
Sent: Wednesday, October 02, 2002 12:19 PM To: Multiple recipients of list ORACLE-L

Hi All,

Oracle 8.1.6 WinNT
I have been trying to use sqlldr and I am getting following error

Record 1: Rejected - Error on table "INTERVIEW", column COMMENTS. end of logical record found when reading length of varying length field

Here is sample record and control file.

Any ideas why I get this error. MetaLink says TRAILING NULLCOLS should correct. The field it is complaining is second to last field in input file.

37901|01/01/1970 04:59:10||LDMARCHI||||||||||| LOAD DATA
INFILE 'd:\oracle\admin\tmwktst3\scripts\BDUMPI2.txt' BADFILE 'd:\oracle\admin\tmwktst3\scripts\INTERVIEW.bad' insert
INTO TABLE INTERVIEW
FIELDS TERMINATED BY '|'
TRAILING NULLCOLS
(PROFILE_NO,
INTERVIEW_DATE DATE 'MM/DD/YYYY HH24:MI:SS', FU_DATE DATE 'MM/DD/YYYY',
OPERATOR CHAR,
SOURCE CHAR,
APPEARANCE CHAR,
FAMILY CHAR,
LANGUAGE_SKILLS CHAR,
CAREER_PLANS CHAR,
MALPRACTICE_HIS CHAR,
ECONOMICS1 CHAR,
ECONOMICS2 CHAR,
MET_WITH CHAR,
COMMENTS varchar(4000) "SUBSTR(:COMMENTS,1,2000)", ROW_PROCESSED)
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author:
  INET: Rick_Cale_at_teamhealth.com

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: ListGuru_at_fatcity.com (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: Inka Bezdziecka
  INET: IBezdziecka_at_cupe.ca
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: ListGuru_at_fatcity.com (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). Received on Wed Oct 02 2002 - 14:38:21 CDT

Original text of this message

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