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
Where not exists in sql?
What is write ahead logging in sql server?
What are all ddl commands?
Can you do multiple joins in sql?
Which is better stored procedure or query?
How do I pipe the output of one isql to another?
Is it important to partition hard disk?
Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.
what are the security recommendations while using mysql? : Sql dba
Why is the cursor important?
Why we use stored procedure instead of query?
What are the most important ddl statements in sql?
Which command is used to delete a trigger?
Are subqueries faster than joins?
How many tables can a sql database have?