we have a package and we have grants to execute that package inside of that we have table, here we don't have privileges to this table? whether this package will execute or not?
Answer Posted / prativa mishra
Yes, this package will execute.
example:- suppose we have create a package inside any user
create or replace package sn_pck is
procedure sn_pr(c out number);
end;
create or replace package body scn_pck is
procedure sn_pr(c out number) is
begin
select b into c from sn where name='sony';
DBMS_OUTPUT.PUT_LINE(C);
END;
END;
after that you shd connect hr user
and execute that package it execute 100%
how u will execute on hr user:-
declare
e number;
begin
prativa.sn_pck(e);
end;
note:- here i hv created that package in a user named prativa
and in user i hv create a table sn
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the use of sqlerrd 3?
Is pl sql a scripting language?
what is 'trigger' in sql? : Sql dba
how to calculate the difference between two dates? : Sql dba
What is an inner join sql?
What are the most important ddl statements in sql?
What is composite data type in pl sql?
What found sql?
What is cost in sql execution plan?
Do we need to create index on primary key?
explain what is mysql? : Sql dba
Can we create index on primary key?
Can you have a foreign key without a primary key?
How many sql core licenses do I need?
How do I create a sql database?