Viewing Deadlock Statistics

Write locks maintain the reliability of information by preventing concurrent access to rows or tables by more than one transaction. Transaction blocking and snapshot versioning manage statements until a lock becomes available. However, deadlock can occur when a set of transactions arrive at a state where none of them can proceed. SAP Control Center allows you to view deadlock details, and to specify how these details are displayed.

Prerequisites
Database Version View Deadlock Privileges
SAP Sybase IQ 15.3 and 15.4 You must have DBA authority.
SAP Sybase IQ 16.0 You must have the MANAGE ANY USER system privilege.
If you do not have the required pre-requisites, the deadlock details will be read-only.
Task
  1. In the Perspective Resources view, select the resource, and select Resource > Monitor Node.
  2. In the left pane of the IQ Node Level Monitor view, select Deadlocks.
  3. From the list, select the deadlock you want details about.
    Area Description
    Waiter The resource (server) that the proxy table will be created on.
    Waiter Connection ID The defined remote server containing the remote object to be represented by the proxy table.
    Owner Connection ID The defined local user that will own the proxy table.
  4. View the deadlock details.
    Area Description
    Snapshot ID Identifies the snapshot version managing the transaction.
    Snapshot Time Indicates when the snapshot was created.
    Object ID Identifies the table, materialized view or other object causing the deadlock.
    Record ID Identifies the record causing the deadlock, if one exists.
    Table Name Indicates the name of the deadlocked table in owner.table format
    Is Victim A boolean indicator showing whether this connection was the victim of the deadlock
    Primary Key Indicates the primary key for the deadlocked table.
    Rollback Operation Count The number of times the rollback command has been executed to resolve the deadlock.
    SQL Statement Displays the SQL statement which caused the deadlock.
  5. (Optional) If you have the appropriate authority, select Clear Deadlock Information to remove all items from the list.
  6. (Optional) If you have the appropriate authority, select Deadlock Settings to modify how deadlock details are collected and displayed.
    1. Specify whether to create a list of deadlocks with the Collect information check-box.
    2. Specify whether to include the causal SQL statements in the list of deadlocks with the SQL statement check-box.
Related tasks
Viewing Overview Statistics
Viewing All Statistics
Viewing Engine Statistics
Viewing Connection Statistics
Viewing Transaction Statistics
Viewing Dbspaces Statistics
Viewing Store I/O Statistics
Viewing Cache Statistics
Viewing Table Version Statistics
Viewing Operations and Requests Statistics
Viewing Network Statistics
Viewing Table Page Usage Statistics
Viewing Table Lock Statistics
Viewing RLV Memory Usage Statistics
Viewing RLV Merge History Statistics
Viewing Monitor Settings Details