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
Why is partition used in sql?
how can we know the number of days between two given dates using mysql? : Sql dba
Is sql low level language?
What is trigger price?
Why we use triggers in mysql?
Why are sql stored procedures used?
What is interval partition?
What are the different parts of a package?
how to shut down the server with 'mysqladmin'? : Sql dba
What is procedure explain with example?
Why use stored procedures?
What is the use of primary key?
Explain the difference between sql and mysql.
What is sql*plus?
What is on delete restrict?