One way is to have the trigger write a file with the UTL_FILE package.
Another approach assumes the table is loaded by a process which writes a file when it completes successfully. For example, I have a unix shell script that runs from a cron. It launches sqlplus with a SQL load script. The load script ends with a 'spool' command, which names a specific output file.
That may be enough, but not if the spool file is created on the unix/db server when CE is running on a Windows server. So, the shell script does a conditional ftp:
Code:
if test -f LW_LOADED.lst #the spool file
then
ftp -n $APS_IP_ADDRESS <<-EndScript
user larftp xxx190
put LCW_LOADED.lst
bye
EndScript
rm LCW_LOADED.lst
fi
With the configuration of the windows server, the event file is D:\Inetpub\ftproot\LCW_LOADED.lst. When this file appears, the CE Event server kicks off the dependent reports. The event file does need to be removed* sometime before the new event file is created. I use a scheduled batch file on the windows server to accomplish this.
Be aware that the event server looks for the named file and triggers the event ONCE. After the event has been triggered, the event server will look for the file to NOT EXIST before it starts to look for it to exist.
*The file could also be renamed rather than being deleted.