SAMPLE SCRIPT TO AVOID LONG WAIT AGAINST TABLES FOR LOCKED ROWS (Doc ID 270040.1)

Last updated on JULY 05, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.8 and later
Information in this document applies to any platform.
***Checked for relevance on 27-Dec-2013***


Goal

If User1 (Session 1) executes any update/delete against a table (without issuing a commit or rollback) and a user within another session attempts to update/delete the same table, there will be row level lock on the affected rows.

Any DML needing those rows will hang till the blocking session issues a ROLLBACK or COMMIT command.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms