How to compile PL/SQL with a reference to DBA_ROLE_PRIVS when you don't have rights to it...
I have some PL/SQL [Function userHasRole(...) Return Boolean
] which references DBA_ROLE_PRIVS
. This package function normally is compiled under a schema which does have rights.
DBA_ROLE_PRIVS
view?
Fix: Under your user, create a view named DBA_ROLE_PRIVS
that references USER_ROLE_PRIVS
instead...
CREATE OR REPLACE VIEW dba_role_privs AS SELECT GRANTED_ROLE, USER "GRANTEE" FROM USER_ROLE_PRIVS
1 comment:
Thank you so much for providing the solution to this problem. I will now create a view as you have given. I am so excited to have find the solution to this problem. I will share this info with my friends too. Thanks again.
Post a Comment