Roland,
It looks like Oracle can't understand '98'!', as a valid seperated field. Tyr
inserting the missing comma after the 98.
ROR m���m
>>> [EMAIL PROTECTED] 11/13/01 10:20AM >>>
Why does this sqlloader ctl file giveme this errormessage?
the control file looks like:
load data
infile 'c:\kam\kampanj.txt'
TRUNCATE
into table kampanjtyp_kopia
FIELDS TERMINATED BY ';'
(KAMPANJTYP_ID "DECODE(:KAMPANJTYP_ID,'?','98'!','97', :KAMPANJTYP_ID)",
KAMPANJTYP_NAMN)
SQL*Loader-944: error preparing insert statement for table KAMPANJTYP_KOPIA.
ORA-01756: quoted string not properly terminated
Thanks in advance
Roland S
"Mercadante, Thomas F" <[EMAIL PROTECTED]>@fatcity.com den 2001-11-13 05:10 PST
S�nd svar till [EMAIL PROTECTED]
S�nt av: [EMAIL PROTECTED]
Till: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
Kopia:
Hi Roland,
Try using the DECODE statement rather than TRANSLATE:
BUT_OMS "DECODE(:BUT_OMS, '!','99','?','No Info',:BUT_OMS)",
The above says:
If the value of BUT_OMS='!', change it to '99',
elsif the value of BUT_OMS='?', change it to 'No Info',
else
insert the value provided.
Hope this helps
Tom Mercadante
Oracle Certified Professional
-----Original Message-----
Sent: Tuesday, November 13, 2001 3:00 AM
To: Multiple recipients of list ORACLE-L
Hallo all you DBA's
How do I write in sqlloader if i want to replace, translate the caracter ?
with 'No info' and the character ! with the value '99'.
I have this statement already.
BUT_OMS "TRANSLATE(:BUT_OMS, '!','99')",
Thanks in advance
Roland S
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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: Mercadante, Thomas F
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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:
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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: Ron Rogers
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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).