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 port 1433 encrypted?
What are the advantages of pl sql?
what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba
Define union, minus, union all, intersect ?
Can you join a table to itself?
what is the difference between blob and text? : Sql dba
What are the most important characteristics of pl/sql?
How do I know if I have sql express or standard?
How can you maintain the integrity of your database on instances where deleting an element in a table result in the deletion of the element(s) within another table?
Can a primary key be a foreign key?
What is sql*plus?
Explain what is rdbms?
What jobs use sql?
Why do we need unique key in a table?
how to increment dates by 1 in mysql? : Sql dba