Queries Against Tables Protected by OLS Are Erroring Out
(Doc ID 577569.1)
Last updated on MARCH 11, 2019
Applies to:Oracle Database - Enterprise Edition - Version 10.2.0.3 to 10.2.0.4 [Release 10.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.
This problem can occur on any platform.
After installing any patch which changes the OLS packages the queries against tables protected by OLS are failing with the following errors:
ORA-04045:errors during recompilation/revalidation of PUBLIC.RECYCLEBIN
ORA-04064:not executed, invalidated
ORA-04064:not executed, invalidated package body "LBACSYS.LBAC_EVENTS"
ORA-06508:PL/SQL:could not find program unit being called: "LBACSYS.LBAC_EVENTS"
This can happen in an environment where the OLS component is at version 10.2.0.1 whereas the rest of the database components are at version 10.2.0.3. The DBA_REGISTRY view is wrongly listing the OLS component as being at version 10.2.0.3 so using the output from DBA_REGISTRY as an evidence that OLS is at version 10.2.0.3 is not enough. One can get into this situation if OLS is enabled in a 10.2.0.3 database without re installing the 10.2.0.3 patchset.
It is possible to have the same symptoms in environments which do not fall in the above scenario, however the solution described below will solve those issues as well.
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