The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, Simone.
Asked: June 28, 2017 - 9:33 am UTC
Last updated: June 30, 2017 - 4:04 am UTC
Version: Oracle Database 11g Express Edition
Viewed 50K+ times! This question is
CREATE OR REPLACE PACKAGE PACK_CT AS PROCEDURE A; PROCEDURE B; END PACK_CT; /
GRANT EXECUTE PACK_CT.A TO User1; GRANT EXECUTE PACK_CT.B TO User2;
procedure PROC_A_FOR_USER_1 is begin pack_ct.a; end; procedure PROC_B_FOR_USER_2 is begin pack_ct.b; end;
Simone, June 29, 2017 - 8:52 am UTC
CREATE ROLE ROLE_A; GRANT ROLE_A TO User1; CREATE ROLE ROLE_B; GRANT ROLE_B TO User2;
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library