Answer Posted / avi007
--Read file
DECLARE
fileHandler UTL_FILE.FILE_TYPE;
BEGIN
fileHandler := UTL_FILE.FOPEN('/tmp', 'myfile', 'R');
UTL_FILE.GETF(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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between sql, mysql and sql server?
How to write a query to show the details of a student from students table whose
How we can update the view?
What is sql in oracle?
What is column?
Can sql developer connect to db2?
what is a trigger? : Sql dba
How can I get the number of records affected by a stored procedure?
What is exception? What are the types of exceptions?
What is mutating trigger?
Is null operator in sql?
what is the command used to fetch first 5 characters of the string? : Sql dba
What is the difference between jpql and sql?
What is sql data?
Which is faster joins or subqueries?