My Oracle Support Banner

SELECT Statement Hangs when using Fine Grained Access Control (Doc ID 113970.1)

Last updated on OCTOBER 26, 2023

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 8.1.5 to 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.


A new policy is created to enable fine grained access.When you run the SELECT statement referencing the table, your session hangs.In V$SESSION_WAIT, your session is waiting for the library cache pin event.

SQL> select * from scott.dept;

If you cancel the statement, the error ORA-28112 is generated.

select * from scott.dept
ERROR at line 1:
ORA-28112: failed to execute policy function




To view full details, 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 a vibrant support community of peers and Oracle experts.