Error while creating EXT Tables [message #558669] |
Mon, 25 June 2012 12:49 |
|
sulabhagra
Messages: 57 Registered: April 2012
|
Member |
|
|
Hello,
I am trying to create an EXT table but is constantly having the following problem, not sure why. I have done a few checks and used the scripts used as a standard but still is experiencing an error.
Can you please help?
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found "minussign": expecting one of: "double-quoted-string, identifier, single-quoted-string"
KUP-01007: at line 9 column 1
The Table creation script is
CREATE TABLE TABLE1_EXT
(
BUSINESS_DATE VARCHAR2(50 BYTE),
CIN_CODE VARCHAR2(50 BYTE),
CIS_CODE VARCHAR2(50 BYTE)
)
ORGANIZATION EXTERNAL
( TYPE ORACLE_LOADER
DEFAULT DIRECTORY CORPREPRECON_DIR
ACCESS PARAMETERS
( RECORDS DELIMITED BY NEWLINE
BADFILE CORPREPRECON_DIR:'test.bad'
LOGFILE CORPREPRECON_DIR:'test.log'
SKIP 1
FIELDS
TERMINATED BY '|'
MISSING FIELD VALUES ARE NULL
(
-- BUSINESS_DATE position (1:8),
-- CIN_CODE POSITION (10:19),
-- CIS_CODE POSITION (21:27)
BusinessDate varchar2(50)
,CIN varchar2(50)
,CISCode varchar2(50)
)
)
LOCATION (CORPREPRECON_DIR:'test.txt')
)
REJECT LIMIT UNLIMITED
NOPARALLEL
NOMONITORING;
And the data used as a sample is
BusinessDate|CIN|CISCode
19062012|1000026697|CTTGLIE
19062012|1000079416|Z29MBGB
Thanks in advance.
S
|
|
|
|
|
Re: Error while creating EXT Tables [message #558672 is a reply to message #558671] |
Mon, 25 June 2012 12:59 |
|
sulabhagra
Messages: 57 Registered: April 2012
|
Member |
|
|
Ok, I removed the commented code, and am not getting this error
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found "identifier": expecting one of: "binary_double,
binary_float, comma, char, date, defaultif, decimal, double, float, integer, (,
nullif, oracle_date, oracle_number, position, raw, recnum, ), unsigned, varrawc,
varchar, varraw, varcharc, zoned"
KUP-01008: the bad identifier was: varchar2
KUP-01007: at line 9 column 32
[Updated on: Mon, 25 June 2012 13:12] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: Error while creating EXT Tables [message #558685 is a reply to message #558683] |
Mon, 25 June 2012 14:13 |
|
sulabhagra
Messages: 57 Registered: April 2012
|
Member |
|
|
Thanks a lot Barbara, I was not aware of it. I was always under the impression that the cols mentioned as fields of the source file. Will keep a note of it.
I just noticed that the Oracle version I am using is 10.2.0.3.0
Thanks a lot.
S
|
|
|