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 natural join and inner join same?
How do I quit sql?
how to get a list of columns in an existing table? : Sql dba
Why cross join is used?
What are primary key and foreign key and how they work?
What is sql deadlock?
What is pls_integer in pl sql?
What is mutating table error?
What is sql trigger example?
What is a pragma statement?
Do foreign keys improve performance?
What is function and procedure in pl sql?
What is a clob in sql?
Show code of a cursor for loop.
What is sql prepared statement?