Topic: SQL*Plus and PL/SQL >> Need Help - Invalid Operation error with UTL_FILE
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Title: Need Help - Invalid Operation error with UTL_FILE |
| Priya |
Posted: Feb 18, 2008 07:29:27 AM |
Total Post: 19
Joined: Jul, 2007
|
Hi,
am getting Invalid operation error when i try to open a file using UTL_FILE.
Here is the code
Create or Replace procedure UTLTEST as
f1 utl_file.file_type;
begin
-- Open a file in write mode
f1 := utl_file.fopen('DOC_PATH','NEWFILE.TXT','W');
-- Write a line to a file
utl_file.put_line(f1,'1. This is a test of UTL_FILE packages');
utl_file.fclose(f1);
end;
Please help.
Thanks in advance.
Priya |
|
|
Murtuja |
| Posted: Feb 18, 2008 07:39:03 AM | |
|
Total Post: 857
Joined: Jan, 2006
|
Hi,
This link has example of utl_file usage
http://www.oracle-base.com/articles/9i/GeneratingCSVFiles.php
HTH
|
|
|
|
|
Priya |
| Posted: Feb 18, 2008 08:04:53 AM | |
|
Total Post: 19
Joined: Jul, 2007
|
Hi..
Thanks for the reply.
When i execute the code in the link, it is showing Invalid Operation error. Please help.
Reg, Priya
|
|
|
|
|
Murtuja |
| Posted: Feb 19, 2008 12:25:17 AM | |
|
Total Post: 857
Joined: Jan, 2006
|
Can you post your Oracle version and OS details ?
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 857 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Gopu Gopi | 327 |
| Gitesh Trivedi | 322 |
| Vinoth Kumar | 264 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|