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
I need a function for a train ticket reservation please answer it thanks in advance
what are properties of a transaction? : Sql dba
How long does it take to learn pl sql?
Differentiate between syntax and runtime errors.
What is the use of <> sql?
Define tables and fields in a database
How show all rows in sql?
Which one is faster ienumerable or iqueryable?
What is consistency?
When is the explicit cursor used ?
If the application is running very slow? At what points you need to go about the database in order to improve the performance?
Can we have two clustered index on a table?
Can we create view in stored procedure?
How do I order columns in sql?
Is delete faster than truncate?