Re: dbms_scheduler.create_file_watcher

From: Mladen Gogala <>
Date: Thu, 18 Oct 2012 02:59:02 +0000 (UTC)
Message-ID: <>

On Wed, 17 Oct 2012 20:07:50 +0100, Adrian wrote:

> 11.2 Linux
> I'm looking at using this to identify when I've got new files to load.
> At first glance it looks ideal, but on digging into the docs, it seems
> that I need to set up a credential, which is where I hit problems.
> The plan is that the files will be put in a directory owned by a user
> that we would be accessing using sudo rather than by logging in, so we
> won't know what the password is. No password, no credential, no
> credential, no file watcher appears to be the situation, or is there a
> (legitimate) way around it that I've missed ?.
> Adrian

Don't use RDBMS for the things better solved by the operating system. Check out inotifywait and inotifywatch utilities. If you want to script it, there is a Perl module called Linux::Inotify. Inotify is a kernel module, available since the kernel 2.6.13, which means that RH 5.0 and compatible or newer versions have it. RH 5.0 has kernel 2.6.18. Very good article about Inotify is here:

Mladen Gogala
Received on Thu Oct 18 2012 - 04:59:02 CEST

Original text of this message