adspace
Answer Posted / avi007
DECLARE
fileHandler UTL_FILE.FILE_TYPE;
BEGIN
fileHandler := UTL_FILE.FOPEN('/tmp', 'myfile', 'W');
UTL_FILE.PUTF(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 ? | 2 Yes | 0 No |
Post New Answer View All Answers
how many tables will create when we create table, what are they? : Sql dba
Can delete statement be rollbacked?
Is inner join faster than left join?
Is primary key always clustered index?
Can we rollback truncate?
how to escape special characters in sql statements? : Sql dba
What is your daily office routine?
What is the current version of postgresql?
Is primary key clustered index?
what are the advantages of sql ? : Sql dba
what is bcp? When does it used? : Sql dba
what is collation? : Sql dba
what are all the common sql function? : Sql dba
define sql insert statement ? : Sql dba
Does group by remove duplicates?