on 2017 Jan 17 4:35 AM
I am trying to run a build.xml with apache ant. All the targets are runing successfully until dbstop is hit. Whenever the target for dbstop is hit, it hangs. Task Manager shows both dbstop.exe and dbsrv16.exe processes running. However when I hit the same command for dbstop manually, it stops the server successfully.
The command for dbstop being used is: dbstop -y -c dsn=<dsn name="">
What can I check to see what is blocking dbstop in the build.xml?
Request clarification before answering.
If the user in your data source has no DBA privilege, it can not stop a dbsrv16 with default settings. Check the documentation of the -gk dbsrv16 command line option.
- with -gk none, it is impossible to stop the server with dbstop
- with -gk dba (default for dbsrv16), a user with DBA privilege is required
- with -gk all (default for dbeng16), every user with the permission to connect can stop the server
So if this is the cause of your issue, either provide a non-default or less restrictive value with -gk or use a database user with DBA privilege.
HTH
Volker Stöffler
DB-TecKnowledgy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Volker,
The user had dba privileges. When I was using the same dbstop command manually from command line, it was stopping the dbsrv16. If there was some issue with dba privileges, then shouldn't the server return some error messages?
However, I uninstalled SQL Anywhere 16 and deleted all the related registry entries. Then again reinstalled SQL Anywhere16 and tried to run the build file. This time it went through.
Thanks
User | Count |
---|---|
87 | |
9 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.