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 |
What are sql queries used for?
What is the use of & in pl sql?
What are the return values of functions SQLCODE and SQLERRM ?
What are the different datatypes available in PL/SQL?
What is TABLE SPACE?
Describe sql comments?
what is the difference between cluster and non cluster index? : Sql dba
How to call shell script from pl sql procedure?
explain access control lists. : Sql dba
Is it possible to sort a column using a column alias?
how to achieve this problem?i am having table with two colums like empno,gender. in gender column, i am having records male,female like that .my final output will be male female 5 6
What is Materialized View? In What Scenario we Use Materialized View?