Foxhound is the better* Database Monitor for SQL Anywhere.
*better: More thorough, more relevant, more effective.
...more Alerts, more All Clears, more details, more control in your hands.
|
[Home] | [Table of Contents] | [Previous Section] | [Next Section] |
Breck Carter
Last modified: February 12, 1998
mail to: bcarter@bcarter.com
From time to time one connection can be blocked from continuing because a piece of data is locked by another connection. This problem goes away as soon as the lock is released but if that doesn't happen right away performance drops to zero for the affected connection. In effect the blocked application becomes completely catatonic.
Figure 27A shows an example of a simple connection monitor written in PowerBuilder. This program checks all the current connections to see if there are any problems caused by locking. In this example it has found that user BSHIN has a connection that is blocked from proceeding by user BCARTER.
Figure 27A - Find Blocked Connections Via PowerBuilder
This program calls a series of SQL Anywhere system functions to find blocked connection pairs and their corresponding user ids as follows:
The code for the PowerBuilder function is shown in Figure 27B.
Figure 27B - PowerBuilder Function f_check_for_block()
|
[Home] | [Table of Contents] | [Previous Section] | [Next Section] |