SQL Server skip Locking hint (UPDLOCK, READPAST) not being applied by when using "Distributed Polling" with OSB 11.1.1.7.x

(Doc ID 2345943.1)

Last updated on JANUARY 12, 2018

Applies to:

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

Symptoms

Skip locking is not working against SQL server when using OSB 11.1.1.7.x

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:

<java:alsb-transports-debug>true</java:alsb-transports-debug>
<java:alsb-jca-framework-adapter-debug>true</java:alsb-jca-framework-adapter-debug>

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> <vmohsacda062> <wls_osb1> <JCA-work-instance:Database Adapter-0> <> <BEA1-01A0454B5DF5> <f3b3fe5b372a4fe2:-71ba0621:15e98798f4c:-8000-000000000000009b> <1505796864353> <BEA-000000> <

 



Changes

 

Cause

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