PDA

View Full Version : Database startup verification for Windows Services?


Joop
10-13-2005, 02:17 PM
Is there a possibility to have a Windows service startup depend on the
successful startup of and Oracle database? Using the dependency
mechanism of Windows services appears like the way to go, but making a
service depend on the listener service and the database instance
service does not do the trick, since apparently the listener service
signals that is 'started' long before it is actually up and running.

We can of course create our own service that does a busy poll on the
database, but are hoping that this wheel is already invented...

DA Morgan
10-13-2005, 03:41 PM
Joop wrote: Is there a possibility to have a Windows service startup depend on the successful startup of and Oracle database? Using the dependency mechanism of Windows services appears like the way to go, but making a service depend on the listener service and the database instance service does not do the trick, since apparently the listener service signals that is 'started' long before it is actually up and running. We can of course create our own service that does a busy poll on the database, but are hoping that this wheel is already invented...

Change the services to MANUAL and start them with a batch file.

For example:
c:\dos> net start oracleserviceorcl
--
Daniel A. Morgan
http://www.psoug.org
damorgan@x.washington.edu
(replace x with u to respond)

Turkbear
10-14-2005, 05:32 AM
DA Morgan <damorgan@psoug.org> wrote:
Joop wrote: Is there a possibility to have a Windows service startup depend on the successful startup of and Oracle database? Using the dependency mechanism of Windows services appears like the way to go, but making a service depend on the listener service and the database instance service does not do the trick, since apparently the listener service signals that is 'started' long before it is actually up and running. We can of course create our own service that does a busy poll on the database, but are hoping that this wheel is already invented...Change the services to MANUAL and start them with a batch file.For example:c:\dos> net start oracleserviceorcl

But bear in mind that the oracle service starting does not mean the database is ready for use..It still needs to startup,
mount and open..That can take a few minutes, depending on your configuration..

Joop
10-14-2005, 01:33 PM
Thanks for the suggestion. Bu the start of the Oracle services is not
the problem, it is knowing when the database is really up and running
starting other application services..

Joop
10-14-2005, 01:54 PM
We came up with a busy polling tool, but that is not foolproof either.
Apparently the poller was able to make a connection and the application
was started. But it could NOT make connections for a while, it got the
message

ORA-12519, TNS:no appropriate service handler found

It is puzzling why the database service is fluttering...

DA Morgan
10-15-2005, 08:47 AM
Joop wrote: We came up with a busy polling tool, but that is not foolproof either. Apparently the poller was able to make a connection and the application was started. But it could NOT make connections for a while, it got the message ORA-12519, TNS:no appropriate service handler found It is puzzling why the database service is fluttering...

I suspect your problem is not what you think it is. Trace the
connection:

# Debugging Parameters
#trace_level_client= 16
#trace_file_client=client
#trace_directory_client=c:\temp
#trace_unique_client=true

And compare with when Oracle reports it is open from the alert log.
--
Daniel A. Morgan
http://www.psoug.org
damorgan@x.washington.edu
(replace x with u to respond)

Access
10-15-2005, 09:55 AM
"Joop" <jkaashoek@yahoo.com> wrote in message
news:1129241820.566911.7480@g47g2000cwa.googlegroups.com... Is there a possibility to have a Windows service startup depend on the successful startup of and Oracle database? Using the dependency mechanism of Windows services appears like the way to go, but making a service depend on the listener service and the database instance service does not do the trick, since apparently the listener service signals that is 'started' long before it is actually up and running. We can of course create our own service that does a busy poll on the database, but are hoping that this wheel is already invented...

Maybe this KB article helps :
http://support.microsoft.com/default.aspx?scid=kb;en-us;193888


Matthias


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service