Home » SQL & PL/SQL » SQL & PL/SQL » Error about Oracle External Table (Oracle Database 11g Release 11.2.0.1.0 - Production)
Error about Oracle External Table [message #626608] Wed, 29 October 2014 22:46 Go to next message
mokarem
Messages: 109
Registered: November 2013
Location: Dhaka
Senior Member

Hi

First I have created a Directory DIR in D drive ('D:\') and I have placed the emp.txt file in this Directory.

Then I have created directory object:
create directory DIR as 'D:\'


Then I have external table as below:
create table emp_ext3
(empno number(4)
,ename varchar2(50)
,job number(10)
)
organization external
(
type oracle_loader
default directory DIR
 access parameters
    (records delimited by newline
     fields terminated by ','
     )
     location ('emp.txt')
     )


Now If I exectue below statement
select * from emp_ext3


It is showing below error:

ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file emp.txt in DIR not found



Please help me to resolve this issue.

Regards
Mokarem
Re: Error about Oracle External Table [message #626609 is a reply to message #626608] Wed, 29 October 2014 23:42 Go to previous messageGo to next message
Barbara Boehmer
Messages: 9090
Registered: November 2002
Location: California, USA
Senior Member
If you created a directory named DIR on your D drive, then you should create your Oracle directory object as:

create or replace directory DIR as 'D:\DIR';
Re: Error about Oracle External Table [message #626610 is a reply to message #626609] Thu, 30 October 2014 00:00 Go to previous message
mokarem
Messages: 109
Registered: November 2013
Location: Dhaka
Senior Member

Thanks

It resolved the issue.
Previous Topic: ORA-06502: PL/SQL: numeric or value error: Bulk Bind: Truncated Bind
Next Topic: XMLTYPE procedure
Goto Forum:
  


Current Time: Fri Apr 26 23:30:45 CDT 2024