Home » Infrastructure » Unix » utl_file error
utl_file error [message #98377] Mon, 30 August 2004 05:01 Go to next message
rajesh
Messages: 173
Registered: November 1998
Senior Member
Hi,

Whats the problem with this program

I am grtting the rror

ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "SYS.UTL_FILE", line 101
ORA-06512: at "SYS.UTL_FILE", line 157
ORA-06512: at line 8

sqlplus $DB_USER/$DB_PASSWORD <<EOF
DECLARE
file_type UTL_FILE.FILE_TYPE ;
dirpath varchar2(50) := '/home/user/';
buffer varchar2(1024) ;
filename varchar2(20) := 'datafile' ;

BEGIN
file_type := UTL_FILE.FOPEN(dirpath, filename,'w');
UTL_FILE.PUT_LINE(file_type,'rajesh');
UTL_FILE.FCLOSE(file_type) ;
END;
/
EOF
Re: utl_file error [message #98378 is a reply to message #98377] Mon, 30 August 2004 09:28 Go to previous message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
select name, value from v$parameter where name = 'utl_file_dir';

http://www.orafaq.com/faqplsql.htm#UTLFILE
Previous Topic: sql scripts on unix
Next Topic: Oracle for Solaris X86
Goto Forum:
  


Current Time: Fri Nov 29 09:23:08 CST 2024