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
Why primary key is required?
what is the difference between primary key and unique key? : Sql dba
What is a pdo connection?
What are the disadvantages of not performing database normalization?
Explain the purpose of %type and %rowtype data types?
What is the purpose of design view?
What is sp_helptext?
Is left join same as join?
What are local and global variables and their differences?
How to connect a sql*plus session to an oracle server?
What are the various levels of constraints?
What is field delimiter?
Can you join a table to itself?
How many types of index are there?
What is the advantage of nosql?