dbTalk Databases Forums  

Windows Service Problems

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Windows Service Problems in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jason Grundy
 
Posts: n/a

Default Windows Service Problems - 10-24-2007 , 08:47 PM






I am trying to run a SQL Anywhere 10 as a Windows Service. This was
working for a while and now (after numerous service adds and deletes)
it is not. I am using exactly the same syntax.

I register the service using:

dbsvc -as -y -w my_service "{path to dbsrv10.exe}" "{path to db
file}"

I try to start the service using:

dbsvc -u my_service

The error messages that I receive are particularly unhelpful:

SQL Anywhere Service Utility Version 10.0.1.3488
Service my_service start pending.
Error starting service my_service.

The Event Log entries do not provide any further info.

If I execute this fragment of the service registration the server
starts up as expected:

"{path to dbsrv10.exe}" "{path to db file}"

Can someone please help?


Reply With Quote
  #2  
Old   
Volker Barth
 
Posts: n/a

Default Re: Windows Service Problems - 10-25-2007 , 02:46 AM






Just two suggestions:

1. As you are going to establish a Network server service, I suspect that
you should add the type parameter (i.e. -t Network)
2. I would add logging for both dbsvc and dbsrv10 as in the following (taken
from the help):
dbsvc -o c:\DbsvcOut.txt -t Network -y -as -w my_service "{path to
dbsrv10.exe}" -n mysrv -o c:\DbsrvOut.txt "{path to db file}"

Hope that will show more helpful output...

Volker


"Jason Grundy" <grundy.jason (AT) gmail (DOT) com> schrieb im Newsbeitrag
news:1193276830.729326.237570 (AT) e9g2000prf (DOT) googlegroups.com...
Quote:
I am trying to run a SQL Anywhere 10 as a Windows Service. This was
working for a while and now (after numerous service adds and deletes)
it is not. I am using exactly the same syntax.

I register the service using:

dbsvc -as -y -w my_service "{path to dbsrv10.exe}" "{path to db
file}"

I try to start the service using:

dbsvc -u my_service

The error messages that I receive are particularly unhelpful:

SQL Anywhere Service Utility Version 10.0.1.3488
Service my_service start pending.
Error starting service my_service.

The Event Log entries do not provide any further info.

If I execute this fragment of the service registration the server
starts up as expected:

"{path to dbsrv10.exe}" "{path to db file}"

Can someone please help?




Reply With Quote
  #3  
Old   
Chris Keating (Sybase iAnywhere)
 
Posts: n/a

Default Re: Windows Service Problems - 10-25-2007 , 07:57 AM



Application log does not record anything meaningful?

If it does not, change your server to "interact with desktop" mode for
diagnostics.

Jason Grundy wrote:
Quote:
I am trying to run a SQL Anywhere 10 as a Windows Service. This was
working for a while and now (after numerous service adds and deletes)
it is not. I am using exactly the same syntax.

I register the service using:

dbsvc -as -y -w my_service "{path to dbsrv10.exe}" "{path to db
file}"

I try to start the service using:

dbsvc -u my_service

The error messages that I receive are particularly unhelpful:

SQL Anywhere Service Utility Version 10.0.1.3488
Service my_service start pending.
Error starting service my_service.

The Event Log entries do not provide any further info.

If I execute this fragment of the service registration the server
starts up as expected:

"{path to dbsrv10.exe}" "{path to db file}"

Can someone please help?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.