Script / command to drop all connections / locks in Sybase SQL Anywhere 9?
Posted
by
nxzr
on Server Fault
See other posts from Server Fault
or by nxzr
Published on 2011-08-06T16:51:14Z
Indexed on
2014/06/08
3:28 UTC
Read the original article
Hit count: 408
sybase
|sqlanywhere
I've recently become responsible for administering an application which is essentially a front end to a Sybase SQL Anywhere 9 database, including the database itself. I'd like to use unload table
to efficiently export the data for backup and, in the case of a few tables, ETL to get it into a reporting database / small scale data warehouse.
The problem is that the client application crashes and leaves dead connections and shared locks on a pretty regular basis, which seems to prevent unload table
from getting the (brief) exclusive locks it needs. Currently I use Sybase Central to verify that these connections are in fact zombies and drop them myself at the end of the day / week.
Is there a command or script to drop all connections? Being able to drop everything at once after verifying that they're unneeded would be quite helpful but I haven't found a way to do it.
© Server Fault or respective owner