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: Toughie: Java Stored Procedure & SyslogAppender

Re: Toughie: Java Stored Procedure & SyslogAppender

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Thu, 10 Mar 2005 19:35:49 +0100
Message-ID: <bp41319qcttijktapnesgu2nqp0eotg21s@4ax.com>


On 10 Mar 2005 10:17:28 -0800, fahdshariff_at_yahoo.com wrote:

>Hello,
>
>I want Oracle to be able to send messages to syslog. So I thought of
>writing a Java program that uses the SyslogAppender class of Log4j to
>do this. This program works fine and messages are indeed written to
>syslog (and eventually picked up by Tivoli, our monitoring system).
>
>However, when I try to load the class and all associated jars into
>Oracle and then try running it, it doesnt work. No messages are output.
>
>Could it be that its just not possible to write to syslog from Oracle?
>
>I've even tried simple messages: log.fatal(mymessage); and it still
>doesnt work. I know that I have loaded everything needed; it compiles
>and no errors are output.
>
>Any ideas?

Why use Java? You don't need it as there is a C library routine to append to syslog, and you can call C programs from Oracle using the external procedure facility. Why use a resource hog, where you don't use any Java facilities at all?

--
Sybrand Bakker, Senior Oracle DBA
Received on Thu Mar 10 2005 - 12:35:49 CST

Original text of this message

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