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 to avoid using cursors? What to use instead of cursor and in what cases to do so?
How can you load microsoft excel data into oracle? : aql loader
What is basic structure of pl sql?
What is assignment operator in pl sql?
How many times can we commit in a loop?
How many triggers can be applied to a table?
What is pl sql variable?
Is oracel sql developer written in java?
What are the possible values that can be stored in a boolean data field?
What are the sql aggregate functions?
what is sql in mysql? : Sql dba
Can we create foreign key without primary key?
what is single byte over head in oracle..?
What does count (*) do in sql?
What is a table?