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
Is sql a scripting language?
Can a composite key be null?
How do I order by ascending in sql?
What is sql lookup?
What are the sql commands?
Can we rollback after truncate?
What is sql query limit?
How do I run a pl sql procedure in sql developer?
When can we use the where clause and the having clause?
Why do we use sql constraints?
How do you define a foreign key?
Show the cursor attributes of pl/sql.
What is union, minus and interact commands?
How much does sqlite cost?
What is the file extension for sql database?