Hi,
I'm trying to load a file with the following control file, but get a syntax error as follows. No one here, including the DBA can work out why. He's off today, so I'm posting here to see if anyone can help meantime.
Control File:
Load data
truncate
into table t_mailing_preference
fields terminated by "," optionally enclosed by '"'
WHEN ACTION="I" or ACTION="R" or ACTION="X"
(
ACTION "UPPER
ACTION)",
REQUEST_DATE "TO_DATE
REQUEST_DATE,'DDMMYYYY')",
INTEREST_AREAS "CONCAT(UPPER
INTEREST_AREAS),UPPER(04))",
NEW_INTEREST_AREAS FILLER,
PREFIX "UPPER
PREFIX)",
INITIALS "UPPER
INITIALS)",
SURNAME "UPPER
SURNAME)",
SUFFIX "UPPER
SUFFIX)",
ADDRESS_LINE_1 "UPPER
ADDRESS_LINE_1)",
ADDRESS_LINE_2 "UPPER
ADDRESS_LINE_2)",
ADDRESS_LINE_3 "UPPER
ADDRESS_LINE_3)",
TOWN "UPPER
TOWN)",
COUNTY "UPPER
COUNTY)",
POSTCODE "UPPER
POSTCODE)",
DPS FILLER
)
Error:
SQL*Loader: Release 8.1.7.2.1 - Production on Tue Nov 13 17:28:56 2001
(c) Copyright 2000 Oracle Corporation. All rights reserved.
SQL*Loader-350: Syntax error at line 10.
Expecting "(", found "or".
into table t_mailing_preference WHEN ACTION="I" or ACTION="R" or ACT
^
Regards,
Graham
I'm trying to load a file with the following control file, but get a syntax error as follows. No one here, including the DBA can work out why. He's off today, so I'm posting here to see if anyone can help meantime.
Control File:
Load data
truncate
into table t_mailing_preference
fields terminated by "," optionally enclosed by '"'
WHEN ACTION="I" or ACTION="R" or ACTION="X"
(
ACTION "UPPER
REQUEST_DATE "TO_DATE
INTEREST_AREAS "CONCAT(UPPER
NEW_INTEREST_AREAS FILLER,
PREFIX "UPPER
INITIALS "UPPER
SURNAME "UPPER
SUFFIX "UPPER
ADDRESS_LINE_1 "UPPER
ADDRESS_LINE_2 "UPPER
ADDRESS_LINE_3 "UPPER
TOWN "UPPER
COUNTY "UPPER
POSTCODE "UPPER
DPS FILLER
)
Error:
SQL*Loader: Release 8.1.7.2.1 - Production on Tue Nov 13 17:28:56 2001
(c) Copyright 2000 Oracle Corporation. All rights reserved.
SQL*Loader-350: Syntax error at line 10.
Expecting "(", found "or".
into table t_mailing_preference WHEN ACTION="I" or ACTION="R" or ACT
^
Regards,
Graham