what is definer rights invoke rights?

Answer Posted / swapna

Definer Rights
--------------

A routine stored in the database by default, is executed
with the definer rights (owner of the routine), depending
on the user who calls it.

For example, table "Test" belongs to schema A. User A
creates a procedure PR_TEST allowing for updates of a
table. User B is granted execute privileges on the
procedure. Now user B cannot access the table as no
privileges have been granted, but can call the procedure to
do the required process logic for updating the table.

Invoker Right

-------------
With Oracle 8i, there is no need for this duplication of
code. A single compiled program unit can be made to use
schema A's objects when invoked by User A and schema B's
objects when invoked by User B.

This way, we have the option of creating a code repository
in one place and sharing it with various production users.
The owner of the routine must grant EXECUTE privilege to
other users.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does sql view stored data?

527


Is full outer join same as cross join?

495


What is sqlcontext?

543


What is a temporal data type?

586


What are inner outer left and right joins in sql?

503






How to run pl/sql statements in sql*plus?

582


What is a system versioned table?

521


What are the properties of a transaction?

548


What is the difference between the conventional and direct path loads? : aql loader

684


How do I run a query in pl sql developer?

550


Why cannot I use bind variables in ddl/scl statements in dynamic sql?

653


How can you view the errors encountered in a trigger?

538


What is sql trigger example?

528


Is mariadb a nosql database?

532


How can we store rows in PL/SQL using array?

652