Answer Posted / guru
__________________________________________________________
DECLARE
fileHandler UTL_FILE.FILE_TYPE;
BEGIN
fileHandler := UTL_FILE.FOPEN('/tmp', 'myfile', 'R');
UTL_FILE.PUTF(fileHandler, 'Look ma, I''m writing to a
file!!!\n');
UTL_FILE.FCLOSE(fileHandler);
EXCEPTION
WHEN utl_file.invalid_path THEN
raise_application_error(-20000, 'ERROR: Invalid path
for file or path not in INIT.ORA.');
END;
/
________________________________________________________
Thanks
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the mutating table and constraining table?
What is a sql profiler?
What is program debugging?
What is blind sql injection?
What is sql integrity?
How do I tune a sql query?
What are the advantages of normalization?
What is rank dense_rank and partition in sql?
Describe types of sql statements?
explain advantages of innodb over myisam. : Sql dba
How to run sql*plus commands in sql developer?
Can we call stored procedure in function?
What is sql and how does it work?
What is the location of pre_defined_functions.
What is rank () in sql?