Home » SQL & PL/SQL » SQL & PL/SQL » ORA-29913 ORA-29400 KUP-00554 (Oracle 12c)
ORA-29913 ORA-29400 KUP-00554 [message #677229] |
Tue, 03 September 2019 00:20  |
kavitha.raj23
Messages: 2 Registered: June 2007 Location: Chennai
|
Junior Member |
|
|
Please help below.. Table is created, but when we use select * from table, comes with below error.
CREATE TABLE Ops_users_ext (
line number,
Name1 VARCHAR2(10)
)
ORGANIZATION EXTERNAL
(
TYPE ORACLE_LOADER
DEFAULT DIRECTORY ACV_DATA_PATH
ACCESS PARAMETERS
(
FIELDS TERMINATED BY ','
RECORDS DELIMITED BY NEWLINE
reject limit UNLIMITED
MISSING FIELD VALUES ARE NULL
discardfile ACV_LOG_PATH:'read_trace_dis.txt'
badfile ACV_LOG_PATH:'read_trace_bad.txt'
logfile ACV_LOG_PATH:'read_trace_log.txt'
(
line ,
Name1
)
)
LOCATION ('Bdat.csv')
)
select * from Ops_users_ext
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 "records": expecting one of: "all, column, date_format, enclosed, (, ltrim, lrtrim, ldrtrim, missing, notrim, nullif, optionally, rtrim, reject"
KUP-01007: at line 2 column 5
29913. 00000 - "error in executing %s callout"
*Cause: The execution of the specified callout caused an error.
*Action: Examine the error messages take appropriate action.
With Regards
Kavitha M
[Edit MC: add code tags]
[Updated on: Tue, 03 September 2019 01:01] by Moderator Report message to a moderator
|
|
|
|
Re: ORA-29913 ORA-29400 KUP-00554 [message #677233 is a reply to message #677229] |
Tue, 03 September 2019 08:03   |
 |
EdStevens
Messages: 1375 Registered: September 2013
|
Senior Member |
|
|
kavitha.raj23 wrote on Tue, 03 September 2019 00:20Please help below.. Table is created, but when we use select * from table, comes with below error.
CREATE TABLE Ops_users_ext (
line number,
Name1 VARCHAR2(10)
)
ORGANIZATION EXTERNAL
(
TYPE ORACLE_LOADER
DEFAULT DIRECTORY ACV_DATA_PATH
ACCESS PARAMETERS
(
FIELDS TERMINATED BY ','
RECORDS DELIMITED BY NEWLINE
reject limit UNLIMITED
MISSING FIELD VALUES ARE NULL
discardfile ACV_LOG_PATH:'read_trace_dis.txt'
badfile ACV_LOG_PATH:'read_trace_bad.txt'
logfile ACV_LOG_PATH:'read_trace_log.txt'
(
line ,
Name1
)
)
LOCATION ('Bdat.csv')
)
select * from Ops_users_ext
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 "records": expecting one of: "all, column, date_format, enclosed, (, ltrim, lrtrim, ldrtrim, missing, notrim, nullif, optionally, rtrim, reject"
KUP-01007: at line 2 column 5
29913. 00000 - "error in executing %s callout"
*Cause: The execution of the specified callout caused an error.
*Action: Examine the error messages take appropriate action.
With Regards
Kavitha M
[Edit MC: add code tags]
The last line of output said "*Action: Examine the error messages take appropriate action."
So, when we follow the clear action plan and examine the error messages, some may seem cryptic, but this one is pretty clear:
KUP-01005: syntax error: found "records": expecting one of:
So, if the syntax parser found the key word "records" when it was expecting something else, then obviously some clause prior to the occurrence of the word "records" was not complete. Review your syntax of everything preceding the only occurrence of the word "records". Be sure you do this review with the reference manual in front of you. Also be sure to check for mis-matched things that come in pairs, like quote signs or parentheses.
|
|
|
|
|
|
|
Goto Forum:
Current Time: Wed Mar 22 07:47:03 CDT 2023
|