Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Access to a continuous file from within a Trigger

Re: Access to a continuous file from within a Trigger

From: DA Morgan <damorgan_at_exxesolutions.com>
Date: Wed, 26 Mar 2003 16:40:42 -0800
Message-ID: <3E82488A.FCDFBAA5@exxesolutions.com>


Rainer Nonk wrote:

> Hi ng,
>
> is it possible to write from within a Trigger to continuous logfile ?
>
> What i don't want to do is this, every time the trigger is called :
>
> fopen('directory', 'file', 'w');
> put_line(file, 'some log info');
> fclose(file);
>
> ... but how can i avoid this open / close operations ?
>
> I just want to open it once - and make some put_line() inside my
> trigger.
>
> best regards,
> rainer

Don't know if this works but, in theory, I think it should.

Put your UTL_FILE open into a package. Have a proc to open the file, have a proc to close it, and a third to append. Once opened I would expect it would stay on until closed and the trigger to use the third proc to perform the appends.

If you try it let me know. Thanks.

Daniel Morgan Received on Wed Mar 26 2003 - 18:40:42 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US