My Oracle Support Banner

SQL Server skip Locking hint (UPDLOCK, READPAST) not being applied by when using "Distributed Polling" with OSB (Doc ID 2345943.1)

Last updated on OCTOBER 01, 2021

Applies to:

Oracle Service Bus - Version and later
Information in this document applies to any platform.


Skip locking is not working against SQL server when using OSB

A DB Adapter, created with Distributed polling, is retrieving the same row twice from SQL Server


The problem can be verified as follows:

1. Enable all required "skip lock" settings as per the following document:

Doc ID 2114957.1 - After applying patch 14257655 (UPDLOCK, NOWAIT), hint is still not being used in the runtime


2. Enable the following OSB debug flags:


Consult the following document for guidance with configuring debug flags in OSB :-

Doc ID 1534545.1 - Enabling Debug in OSB 11g


3. Review the OSB logfile. If the DB Adapter query uses the "WITH (UPDLOCK, NOWAIT)" hint, like in the example below, then skip locking is not working :-

####<Sep 19, 2017 5:54:24 AM BST> <Debug> <AlsbJcaFrameworkAdapter> <HOST> <wls_osb1> <JCA-work-instance:Database Adapter-0> <> <BEA1-01A0454B5DF5> <ECID> <ID> <BEA-000000> <



To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.