Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to properly manage listener on a DBMS_PIPE
Rainer Leidner wrote:
>
> I use DBMS_PIPE to send messages to an external listener/daemon.
> I experience occasional problems to start the listener or to keep it
> running.
>
> What is a good method to make sure that the listener is always up and
> running?
>
> This is in Oracle 7.3.4 on Solaris 2.5.1.
>
> Tnx
>
> Rainer
A quick hack in the unix world
script: listener.sh
#!/bin/sh
sqlplus blah/blah <<EOF >/tmp/error_output
declare
.. vars ..
begin
x := dbms_pipe....
end;
EOF
#
mail support_staff_at_blah.blah.com < /tmp/error_output
exec listener.sh
Cheers
--