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
does sql support programming? : Sql dba
Explain the purpose of %type and %rowtype data types with the example?
How many sql are there?
What is view explain with example?
How do I access sql anywhere database?
Is left join faster than join?
What is a record in pl/sql?
What is mdb stand for?
How do I edit a stored procedure?
What is difference between left and right outer join?
What steps server process has to take to execute an update statement?
How many subqueries can be nested in a statement?
What is the difference between sql and t sql?
How can we avoid duplicating records in a query?
How to select all records from the table?