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
how can we take a backup of a mysql table and how can we restore it. ? : Sql dba
What is the difference between instead of trigger and after trigger?
which tcp/ip port does sql server run on? : Sql dba
How to take user input in pl sql?
Can we use pl sql in sql server?
What is scalar function?
Explain the difference between rename and alias?
What is the sql query to display the current date?
Is delete faster than truncate?
What is coalesce sql?
how to start mysql server? : Sql dba
What is the use of stored procedures?
How to raise user-defined exception with custom sqlerrm ?
What are different types of statements supported by sql?
What are stored procedures used for?