473,513 Members | 2,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

UTL_FILE.OPEN problems

I have created a directory for the path name I use for a UTL_FILE.OPEN
call, but when I run my call I get error ORA-29280 invalid directory
path. What am I failing to do? Thanks for your help,

Candy
Jul 19 '05 #1
2 25125
the exact directory path must be listed in the INIT.ORA file under UTL_FILE
parameter, ie:
utl_file_dir = c:\oracle\utl_file\oex
--
----------------------------------------
Mark C. Stock
www.enquery.com
(888) 512-2048
"Candy Robinson" <ca************@ieee.org> wrote in message
news:8f**************************@posting.google.c om...
I have created a directory for the path name I use for a UTL_FILE.OPEN
call, but when I run my call I get error ORA-29280 invalid directory
path. What am I failing to do? Thanks for your help,

Candy

Jul 19 '05 #2
smily_didi
1 New Member
It's correct if you want to use init.ora to enter UTL_FILE parameters. But's not all you have to do.

First of all you have to create a DIRECTORY:
create or replace DIRECTORY doc_path AS '<PATH to your docs>';
-- doc_path will be your pl/sql-name for your document path

Second Step select your document:
filehandle := UTL_FILE.FOPEN('doc_path','<document_name>','r');
-- dont't forget the ' in front of and ' after doc_path even if it looks like a variable!

After processing don't forget to close the file:
UTL_FILE.FCLOSE(filehandle);

This works!
Sep 8 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4557
by: Souhail | last post by:
Hi all, I have a problem to put lines with about 3000 characters in my output file using UTL_FILE.put package. I'm using Oracle 7 !! So I can not specify the line size in UTL_FILE.FOPEN...
2
3501
by: Mahesh Hardikar | last post by:
Hi , Oracle EE 8.1.7.0.0 on MS WIndows Advanced Server 2000 SP3 We have a proc which is using utl_file . procedure test_dump_csv as l_rows number; begin
0
2129
by: Peter Weidner | last post by:
Hello friends I have a problem with UTL_File under Oracle 9.2i there - operating system Windows 2000 Professional. Following: I have a procedure in a Package, that reads from an Utl_File and...
1
3827
by: Shilpesh | last post by:
I have an issue in usage of utl_file package. I have setup utl_file_dir parameters correctly on the database side. Basically my goal is to convert csv files into table-structure. I do not know...
2
10626
by: Prasanna | last post by:
Hi All Nice to be in this Forum. I have questions to ask on UTL_FILE :roll: Let me explain the concept 1.When the net is down the user will take the records into on floppy(CLIENT 2.When the net...
1
16952
by: djramesh04 | last post by:
ORA-29280: invalid directory path ORA-06512: at "SYS.UTL_FILE", line 33 ORA-06512: at "SYS.UTL_FILE", line 436 ORA-06512: at "CPLNMGR.PARSE_STRING", line 13 ORA-06512: at line 1 CREATE OR...
16
2236
by: orajit | last post by:
I have created one file c;/temp/test.txt 000|23102007 001|21102007|23102007|GB11223344 001|20102007|22102007|GB11223345 001|19102007|22102007|GB11223346 999|3 The highlighted text are...
1
419
by: Candy Robinson | last post by:
I have created a directory for the path name I use for a UTL_FILE.OPEN call, but when I run my call I get error ORA-29280 invalid directory path. What am I failing to do? Thanks for your help, ...
0
3117
by: abulafia | last post by:
Originally posted by Julia Sats
0
7379
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7521
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5682
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.