Answer Posted / avi007
DECLARE
fileHandler UTL_FILE.FILE_TYPE;
BEGIN
fileHandler := UTL_FILE.FOPEN('/tmp', 'myfile', 'W');
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;
/
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is serial sql?
what are ddl statements in mysql? : Sql dba
What is rtm stands for?
Can one improve the performance of sql*loader? : aql loader
What is the order of sql select?
What is normalization sql?
Which version of sql do I have?
Can a procedure in a package be overloaded?
How do I make sql search faster?
What is data type in database?
what is the difference difference between procedure and packages
What is synonyms?
Which kind of parameters cannot have a default value in pl sql?
what are set operators in sql? : Sql dba
Is sql a programming?