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 full join?
what is the difference between delete and truncate statement in sql? : Sql dba
How can use stored procedures in sql?
Which is faster union or join?
Mention what does the hierarchical profiler does?
What is the maximum number of rows in sql table?
Is it possible to sort a column using a column alias?
What is sqlexception in java?
What is nosql db?
How to start oracle sql developer?
what is the difference between char and varchar data types? : Sql dba
Which is faster view or stored procedure?
What is the benefit of foreign key?
Write a sql select query that only returns each name only once from a table?
Does access use sql?