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
how can we know the count/number of elements of an array? : Sql dba
Mention what does plv msg allows you to do?
Mention what problem one might face while writing log information to a data-base table in pl/sql?
What is having clause in sql?
What are the properties of a transaction?
Why is sql*loader direct path so fast?
How can a function retun more than one value in oracle with proper example?
what is the difference between a having clause and a where clause? : Sql dba
Where is sql database stored?
How to connect a sql*plus session to an oracle server?
Is oracle sql free?
What are the advantages of pl sql over sql?
Is primary key clustered or nonclustered?
How do I view tables in sql developer?
Can we update views in sql?