Error: 12205, Severity: 17, State:2
Root cause: A process with spid 16 is trying to update a table in sybmgmtdb and however it is not acquiring the lock till the 'lock wait period' of 18000 seconds and
hence we have received this error.
Resolution:
We have checked for blockings and found an spid 23 (select query) is running and blocking the spid 16.
Changed the lock wait period to 20000 seconds from 18000 seconds but still we got error.
Next we thought of checking and changing the locking scheme to row levle locking but the objects over which the 2 spids are working are with rowlevel locking only.
Then we opted to restart the job scheduler to which the both processes are related to.
Tried killing/force killing the spid 23, aborting the open running transactions in sybmgmtdb but still we got the error.
Finally we have restarted the server and now we are out of it.
Details:
ASE-16_0 sp02 on SUSE LINUX
Database effected : sybmgmtdb