External Table [message #127394] |
Mon, 11 July 2005 09:17 |
xyzaaa
Messages: 2 Registered: July 2005
|
Junior Member |
|
|
I'm having trouble reading my external table.
The database is ver 9.2.0.4 on OpenVMS. My file is on a WindowsXP server. I'm running it from my pc to a map drive K: on my pc. K: is a map drive that I can create and delete files on. I've tried this on my c:\ drive as well but I received the same error.
All of the code executes and the fields sizes are correct
Below is my code:
create or replace directory import_dir as 'k:\';
create table external_table
(
term varchar2(6),
id varchar2( 8 ) ,
dept varchar2(4),
code varchar2(4),
amt number(12,2)
)
ORGANIZATION EXTERNAL
( type oracle_loader
default directory import_dir
access parameters
(
records delimited by newline
nobadfile
nologfile
fields terminated by ','
optionally enclosed by '"'
missing field values are null
reject rows with all null fields
)
location ('TEST_DATA.TXT')
)
reject limit unlimited;
Below is a copy of my TEST_DATA.TXT:
200540,00316328,10,00,-147.25
200540,00316328,10,00,-57.00
200540,00316328,STAX,STAX,-13.79
200540,00317810,10,00,-5.59
200540,00317810,STAX,STAX,-.37
200540,00100817,10,00,-70.50
200540,00100817,10,00,-17.50
SQL> select * from external_table;
select * from external_table
*
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
I receive this error regardless of whatever I try.
Thank you,
|
|
|
|
|
Re: External Table [message #127475 is a reply to message #127410] |
Mon, 11 July 2005 17:28 |
xyzaaa
Messages: 2 Registered: July 2005
|
Junior Member |
|
|
I doubt the database server can see the data file. I execute SQLPLUS from my pc which has the K:\ mapped.
I thought that by using SQLPLUS on my pc which has the K:\ mapped would allow Oracle, from the APLHA box, see the external_table.
Is this wrong??
Thank You
|
|
|
|