One of our scheduled 'REORG DEFRAG' job is getting failed everyday with the error 12205 showed below highlighted in Red.
00:0007:00000:00099:2016/09/13 00:05:14.26 server Beginning REORG REBUILD of index 'DBH_SNAP_INDEXES~1' on table 'DBH_SNAP_INDEXES'.
00:0006:00000:00099:2016/09/13 00:05:16.69 server REORG REBUILD of index 'DBH_SNAP_INDEXES~1' on table 'DBH_SNAP_INDEXES' completed.
00:0006:00000:00099:2016/09/13 00:05:16.70 server Beginning REORG DEFRAG of 'DBH_SNAP_INDEXES' partition 'DBH_SNAP_INDEXES_60524218'.
00:0007:00000:00099:2016/09/13 00:38:48.63 server Error: 12205, Severity: 17, State: 2
00:0007:00000:00099:2016/09/13 00:38:48.63 server Could not acquire a lock within the specified wait period. SERVER level wait period=2000 seconds, spid=99, lock type=shared table, dbid=5, objid=60524218, pageno=0, rowno=0. Aborting the transaction.
We have checked the lock wait period at server level ( using sp_configure) as well as session level(from dbacockpit-databasename-Diagnostics) and found the period is of 2000 mS and now to fix this in response to the Sybase documentation we want to increase the value of the parameter 'lock wait period' at session level(using set lock wait <time in mS(say 5000)>. At this situation few questions are running in my mind and are specified below.
1.Can we inquire the configured value of lock wait period of a session level from isql before using - set lock wait 5000 ?
2.As the error the clearly telling the 'SERVER level wait period' should we touch the same by increasing it to 5000 from 2000 using - sp_configure by leaving away the session level (as it will be lesser than the new value at server level and the server level will take the precedence) ?
3.Is there any relation between this error 12205 and the subsequent Signal 11 errors occurred after this job failure?
Attached the error log details for your reference. Please help me with a solution to fix this at the earliest.
Adaptive Server Enterprise/16.0 SP02 PL01/EBF 25184 SMP/P/x86_64/Enterprise Linux/ase160sp02pl00/2424/64-bit/FBO/Thu Sep 17 22:46:42 2015