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 are views in sql?
How to use transactions efficiently : transact sql
What plvcmt and plvrb does in pl/sql?
Differentiate between sga and pga.
Do we need to create index on primary key?
Can we write dml inside a function in sql server?
what is the difference between nested subquery and correlated subquery?
How do I get sql certification?
What is a pl/sql block?
What is t sql used for?
Can a table contain multiple primary key’s?
What are the different tcl commands in sql?
What are the operators used in select statements?
What is pl sql collection?
Explain character-manipulation functions?