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

What do you mean by “trigger” in sql?

793


What are the features of pl sql?

766


What packages(if any) has oracle provided for use by developers?

5318


Which is better trigger or stored procedure?

687


What is normalization? How many normalization forms are there?

747






Define SQL and state the differences between SQL and other conventional programming Languages?

871


Can we perform dml in function?

796


What is procedure explain with program?

720


What is sequence in sql?

720


What are the types of dbms?

718


How can get second highest salary in sql?

688


Is it possible to sort a column using a column alias?

814


How do you add a column to a table?

770


how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba

840


How does sql store data?

663