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


Please Help Members By Posting Answers For Below Questions

What is an intersect?

655


How many types of relationship are there?

547


How to get list of all tables from a database?

631


What are procedures used for?

529


what are the types of subquery? : Sql dba

590






How long does it take to learn pl sql?

608


Can we rename a column in the output of sql query?

543


How can one get sql*loader to commit only at the end of the load file? : aql loader

570


What is the purpose of the primary key?

564


What is input buffer in sql*plus?

642


What is graph sql?

528


What is minus?

547


What is exit statement?

550


How do I pipe the output of one isql to another?

532


How many types of tables are there?

509