Revoking Privileges on SYS Package From PUBLIC Errors Out with ORA-1927
(Doc ID 471863.1)
Last updated on FEBRUARY 01, 2022
Applies to:Oracle Database - Enterprise Edition - Version 10.2.0.2 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud 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
Information in this document applies to any platform.
When trying to revoke the EXECUTE privilege on a SYS package (eg: the UTL_FILE) package from PUBLIC user, the following error occurs:
ORA-01927: cannot REVOKE privileges you did not get grant.
This error is seen although one can see the grant to be removed in the DBA_TAB_PRIVS view. Example:
If DBA_TAB_PRIVS does not contain any privilege granted to PUBLIC on the package then the error is expected.
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