Home » RDBMS Server » Server Utilities » Facing error while try to load data conditionally
Facing error while try to load data conditionally [message #154256] Fri, 06 January 2006 07:10 Go to next message
Nainar
Messages: 35
Registered: January 2005
Member
Hi
I'm facing one error while doing condional load.

The control file is mentioned below and I'm getting this error

"
SQL*Loader-350: Syntax error at line 7.

Expecting "(", found "OR".

'' OR ACCNO <> ''

^
"

Control file:

LOAD DATA
INFILE *

INTO TABLE "TEST"
APPEND
WHEN ACC_PD_CTGY_CD <> '' OR
ACC_CO_NO <> '' OR
ACCNO <> '' OR
ACC_APPSYS_ID <> '' OR
ACC_SUB_NO <> ''
TRAILING NULLCOLS

(PTY_ID POSITION(1:11) INTEGER EXTERNAL,
CMPGN_ID POSITION(12:31) "UPPER(TRIM(:CMPGN_ID))",
CELL_ID POSITION(32:41) ,
BASELINE_DT POSITION(195:204) DATE "YYYY-MM-DD",
ACC_CO_NO POSITION(242:244),
ACC_PD_CTGY_CD POSITION(265:267),
ACCNO POSITION(268:288),
ACC_APPSYS_ID POSITION(289:291),
ACC_SUB_NO POSITION(292:312),
AUD_CREATED_DT SYSDATE
)



Kindly give any suggestion to avoid this error.

Thanks in advance.

-N
Re: Facing error while try to load data conditionally [message #154279 is a reply to message #154256] Fri, 06 January 2006 10:14 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
what is your oracle version?
Did you search the board?
http://www.orafaq.com/forum/m/120432/42800/?srch=sql%2Aloader+delimited#msg_120432
http://www.orafaq.com/forum/m/133148/42800/?srch=sql%2Aloader++trim#msg_133148
Re: Facing error while try to load data conditionally [message #154734 is a reply to message #154279] Tue, 10 January 2006 06:22 Go to previous message
Nainar
Messages: 35
Registered: January 2005
Member
Yeah. I search the board nothing related with. I'm using Oracle 9i. Is this anything equivalent to OR condition?

Thanks
Nainar
Previous Topic: exp imp
Next Topic: tool copy database
Goto Forum:
  


Current Time: Tue Jul 02 04:39:12 CDT 2024