Search notes:

Oracle: UTL_FILE.FOPEN

declare
   fh  utl_file.file_type;
begin

   fh := utl_file.fopen(
            location     => 'THE_DIRECTORY',
            filename     => 'the-file.txt',
            open_mode    => 'r'
	 );

   if utl_file.is_open(fh) then
      dbms_output.put_line('file is open');
   else
      dbms_output.put_line('file is closed');
   end if;

   utl_file.fclose(fh);

   if utl_file.is_open(fh) then
      dbms_output.put_line('file is open');
   else
      dbms_output.put_line('file is closed');
   end if;

end;
/

See also

utl_file

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:51 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(51): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(66): id_of(Object(PDO), 'uri', '/notes/developm...') #2 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759612544, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #3 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/installed/packages/utl/file/api/is_open(60): insert_webrequest() #4 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 51