Answer Posted / guru
__________________________________________________________
DECLARE
fileHandler UTL_FILE.FILE_TYPE;
BEGIN
fileHandler := UTL_FILE.FOPEN('/tmp', 'myfile', 'R');
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;
/
________________________________________________________
Thanks
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba
explain the options of myisamchk to improve the performance of a table. : Sql dba
how to convert character strings to dates? : Sql dba
What is oracle sql developer?
How do you write a subquery?
Is inner join same as self join?
What are operators available in sql?
what are the t string functions available in tsql? : Transact sql
How would you reference column values before and after you have inserted and deleted triggers?
What is pragma in sql?
What is a dirty read sql?
Give the order of sql select?
How can you select unique records from a table?
Can we perform dml on view?
how to create a test table in your mysql server? : Sql dba