Re: Best way to check oracle database server / services is alive using Java
- From: "joeNOSPAM@xxxxxxx" <joe.weinstein@xxxxxxxxx>
- Date: 4 Apr 2007 10:54:38 -0700
On Apr 4, 10:50 am, "joeNOS...@xxxxxxx" <joe.weinst...@xxxxxxxxx>
wrote:
On Apr 3, 9:56 pm, harishas...@xxxxxxxxx wrote:
Hi,
I am looking for the best way to check whether several oracle (or any
database) databases is running or not.
At the moment I just attempt to connect to the server IP using Socket
and conclude the database is not running if connection timed out.
Which is a silly way of doing it.
Appreciate any help.
Best regards.
It's not silly, it's elementary. That's as good as you can do
generically,
in that it's quick, and if you can't get a socket to the DBMS
listener,
your JDBC driver won't either (as long as the driver is also using
TCPIP)
to connect) but not completely reliable, because the DBMS listener may
be
up, but the DBMS may still not be in an operating condition.
Joe Weinstein at BEA Systems
And another problem (with no solution) is that a DBMS
might have a limit on the number of concurrent
connections, so a new socket request may be rejected,
but all currently existing connections may be operating
as expected.... Just to say the real answer to the general
question may not be trivial to get. In fact, if the
conditions are dynamic, whatever test you make may
pass, but the DBMS or environment may change in between
your running your test and your acting on the results.
Good luck,
Joe
.
- Follow-Ups:
- References:
- Best way to check oracle database server / services is alive using Java
- From: harishashim
- Re: Best way to check oracle database server / services is alive using Java
- From: joeNOSPAM@xxxxxxx
- Best way to check oracle database server / services is alive using Java
- Prev by Date: Re: Best way to check oracle database server / services is alive using Java
- Next by Date: procedure using SQL in apache derby possible?
- Previous by thread: Re: Best way to check oracle database server / services is alive using Java
- Next by thread: Re: Best way to check oracle database server / services is alive using Java
- Index(es):
Relevant Pages
|