June 2016
Intermediate to advanced
388 pages
5h 49m
English
In this recipe, you'll learn about the effects of using the accessible by clause.
To complete this recipe, you'll use a user who has the create procedure privilege.
create procedure privilege (for example, zoran):
SQL> connect zoran
protected_pkg package that is only accessible by public_pkg:CREATE OR REPLACE PACKAGE protected_pkg ACCESSIBLE BY (public_pkg) IS PROCEDURE protected_proc; END; / CREATE OR REPLACE PACKAGE BODY protected_pkg IS PROCEDURE protected_proc IS BEGIN DBMS_OUTPUT.PUT_LINE ('This is a Protected Procedure that can only be accessed from Public Package'); END; END; /
public_pkg package: ...Read now
Unlock full access