My Oracle Support Banner

"SET ROLE" Under High Concurrency Causes More "latch: row cache objects" and Slower Response Times (Doc ID 2310611.1)

Last updated on MARCH 09, 2019

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.2 to 12.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.


"SET ROLE" under high concurrency causes more "latch: row cache objects" and which is leading to delay in user response time. After further testing found that starting, "SET ROLE" statement is performing slow.

Installing patch for known Bug 23575520 and increasing SGA doesn't help.

If we just execute the same "SET ROLE" statement in single session, then no issues.

From testing with 300 concurrent sessions executing SET ROLE statement with 100 roles (roles are empty with no privileges granted to them) listed in it takes following time across various
versions, starting we see high number of 'latch: row cache objects':

Version              Time (10046 Trace)
--------------       -------------------                17.11 Sec                85.33 Sec                84.26 Sec



 Upgrading database from to


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.