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 an operating system?
describe mysql connection using mysql binary. : Sql dba
What is a temporal table?
What is the sql query to display the current date?
Can we join two tables without common column?
What is %type in sql?
Which is better cte or subquery?
What are the sql aggregate functions?
What does trigger mean in psychology?
Is there a way to automate sql execution from the command-line, batch job or shell script?
What is the difference between inner join and left join?
what is the syntax for using sql_variant_property? : Transact sql
What are the two virtual tables available at the time of database trigger execution?
What is a primary key? Explain
What is benefit of creating memory optimized table?