External table error [message #648492] |
Wed, 24 February 2016 02:19 |
|
techgirl123
Messages: 2 Registered: November 2013 Location: Delhi
|
Junior Member |
|
|
I have created an external table :
CREATE TABLE XX_Lookup_EXT
(
LOOKUP_TYPE varchar2(200),
LOOKUP_CODE varchar2(200),
MEANING varchar2(200),
ENABLED_FLAG varchar2(10)
)
ORGANIZATION EXTERNAL
( TYPE ORACLE_LOADER
DEFAULT DIRECTORY INTF_DIR1
ACCESS PARAMETERS
( RECORDS DELIMITED BY NEWLINE SKIP 1
NODISCARDFILE
FIELDS TERMINATED BY '|'
OPTIONALLY ENCLOSED BY '"'
MISSING FIELD VALUES ARE NULL
REJECT ROWS WITH ALL NULL FIELDS
)
LOCATION (INTF_DIR1:'LOOKUP_CODE.csv')
)
REJECT LIMIT UNLIMITED
NOPARALLEL
nomonitoring;
When I am querying this table it is giving me the following error :
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
error opening file /orabin/tst/test/XX_LOOKUP_EXT_30723.log
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.
[Edit MC: add code tags]
[Updated on: Wed, 24 February 2016 02:23] Report message to a moderator
|
|
|
Re: External table error [message #648493 is a reply to message #648492] |
Wed, 24 February 2016 02:23 |
|
Michel Cadot
Messages: 68645 Registered: March 2007 Location: Nanterre, France, http://...
|
Senior Member Account Moderator |
|
|
Please read OraFAQ Forum Guide and How to use [code] tags and make your code easier to read.
Also always post your Oracle version, with 4 decimals.
Use SQL*Plus and copy and paste your session, the WHOLE session.:
SQL> CREATE TABLE XX_Lookup_EXT
2 (
3 LOOKUP_TYPE varchar2(200),
4 LOOKUP_CODE varchar2(200),
5 MEANING varchar2(200),
6 ENABLED_FLAG varchar2(10)
7 )
8 ORGANIZATION EXTERNAL
9 ( TYPE ORACLE_LOADER
10 DEFAULT DIRECTORY INTF_DIR1
11 ACCESS PARAMETERS
12 ( RECORDS DELIMITED BY NEWLINE SKIP 1
13 NODISCARDFILE
14 FIELDS TERMINATED BY '|'
15 OPTIONALLY ENCLOSED BY '"'
16 MISSING FIELD VALUES ARE NULL
17 REJECT ROWS WITH ALL NULL FIELDS
18 )
19 LOCATION (INTF_DIR1:'LOOKUP_CODE.csv')
20 )
21 REJECT LIMIT UNLIMITED
22 NOPARALLEL
23 nomonitoring;
Table created.
Also feedback to people who spend time to help you, review your previous topic.
[Updated on: Wed, 24 February 2016 02:23] Report message to a moderator
|
|
|
Re: External table error [message #648535 is a reply to message #648492] |
Wed, 24 February 2016 12:43 |
|
Barbara Boehmer
Messages: 9090 Registered: November 2002 Location: California, USA
|
Senior Member |
|
|
Since you have not specified a log file or no logging, it tries to create a default log file, which should be in your default directory. It is unable to open that log file, which could be due to the Oracle user having insufficient privileges to the Oracle directory object INTF_DIR1 or the operating system user that Oracle runs under having insufficient privileges to the directory /orabin/tst/test/.
|
|
|