Transaction and lock information | tip If a lock is held but no contention occurs, the specific lock details cannot be viewed. In the Transaction and lock information subtab, you can perform the following operations: - Create an analysis task: In the Transaction and lock information subtab, you can either click Create analysis to manually create an analysis task, where the generated Task source is Trigger-based analysis; or select an interval of 3 seconds, 5 seconds, 10 seconds, or 15 seconds from the dropdown list to automatically create analysis tasks, where the generated Task source is Auto-refresh analysis.
- View analysis results: In the Transaction and lock information subtab, you can filter and view analysis tasks based on your desired time range for task creation. By default, analysis tasks from the last 3 hours are displayed, and you can view tasks created within the past 30 days at most.
- No transactions or locks detected: If your analysis task does not find any active transactions or locks in the database, the Detected transactions and locks column will display No, and you can only see Analysis task creation time, Task source, and Analysis data.
- Transactions and locks detected: If your analysis task identifies active transactions or locks in the database, the Detected transactions and locks column will display Yes. Click the ➕ icon in front of the analysis task creation time column to view all session information included in the transaction, such as Session ID, Transaction ID, Transaction state, Transaction execution time(s), Transaction start time, Executing SQL, ID of the blocking transaction, and NodeId.
- When transactions and locks are present, you can click the target Session ID in the Transactions and Locks section to navigate to the Session Management tab, where you can optionally terminate the corresponding session as needed. For detailed steps, refer to Terminate session.
- When transactions and locks exist, you can Copy the SQL statement executed by the corresponding session in the Executing SQL column.
|
| In the Lock wait information subtab, the following operations are available: - Create an analysis task: In the Lock wait information subtab, you can either click Create aAnalysis to manually create an analysis task (with Task source labeled as Trigger-based analysis), or select an interval of 3 seconds, 5 seconds, 10 seconds, or 15 seconds from the dropdown to automatically create analysis tasks (with Task source labeled as Auto-refresh analysis).
- View analysis results: In the Lock wait information subtab, you can filter and view analysis tasks based on the desired time range. The default display shows analysis tasks from the last 3 hours, with a maximum historical range of 30 days.
- No lock wait information found: If your analysis task does not detect any lock waits in the database, the Detected locks column will display No. You will only see Analysis task creation time, Task source, and Analysis data.
- Lock wait information exists: If your analysis task detects lock waits in the database, the Lock wait detected column will display Yes. Click the ➕ icon next to the task creation time column to view detailed lock wait information for that task, including:
- Transaction ID, Transaction state, Lock wait SQL, Transaction start time, Transaction wait since.
- Blocking wait time(s), Blocking transaction ID, Blocking transaction status, Blocker SQL, Blocking transaction start time, NodeId.
You can also View details to compare session and blocking transaction session information. |