Search notes:

Troubleshooting Oracle file watcher problem

The entry point for the work of a file watcher is dbms_ischedfw.file_watch_job.
So, in order to troubleshoot problems with a file watcher setup, one might to simply call this procedure.
In order to enable debugging messages into the trace file, the event 27401 can be set:
$ sqlplus / as sysdba
SQL> oradebug setmypid
SQL> oradebug tracefile_name
/path/to/tracfile.trc
SQL> alter system set events '27401 trace name context forever, level 262144';
SQL> exec dbms_ischedfw.file_watch_job
SQL> alter system set events '27401 trace name context off';
After executing this procedure, /path/to/tracfile.trc can be examined for the logging messages which hopefully assist in finding the cause of the problem.

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:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759612582, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/objects/file/watchers/troubleshooting/index(49): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78