adspace
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
Is inner join faster than left join?
What is the current version of postgresql?
What is the current version of sql?
how many tables will create when we create table, what are they? : Sql dba
Can we use distinct and group by together?
Can delete statement be rollbacked?
how to use regular expression in pattern match conditions? : Sql dba
Can we rollback truncate?
what are aggregate and scalar functions? : Sql dba
Do we need to rebuild index after truncate?
How do I remove duplicates in two columns?
how to escape special characters in sql statements? : Sql dba
what are the advantages of sql ? : Sql dba
what is collation? : Sql dba
define sql insert statement ? : Sql dba