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
what are date and time functions in mysql? : Sql dba
How can I get the number of records affected by a stored procedure?
What is a join query?
What is numeric function sql?
Does sql full backup truncate logs?
Is sql a dbms?
Why truncate is used in sql?
Explain scalar functions in sql?
how many sql ddl commands are supported by 'mysql'? : Sql dba
What is a data manipulation language?
Which certification is best for sql?
what are the 'mysql' command line options? : Sql dba
Can I create table without primary key?
Does google use sql?
Inline the values in PL/SQL, what does it mean.?