what is definer rights invoke rights?



what is definer rights invoke rights?..

Answer / 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

More SQL PLSQL Interview Questions

how to get a list of indexes of an existing table? : Sql dba

0 Answers  


what is a composite key ? : Sql dba

0 Answers  


how many no of table can be join in a sql query.

4 Answers  


What is the difference between stored procedure and view?

0 Answers  


what are the advantages and disadvantages of views in a database? : Sql dba

0 Answers  






Which join is default?

0 Answers  


What is data modelling in sql?

0 Answers  


What is foreign key sql?

0 Answers  


How do you copy a table in sql?

0 Answers  


How to create your own reports in sql developer?

0 Answers  


How to get unique records from a table?

0 Answers  


What is the execution plan in sql?

0 Answers  


Categories