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
What does (*) mean in sql?
What is the difference between subquery and correlated query?
How to read xml file in oracle pl sql?
How to return an array from java to pl/sql?
What does joining a thread mean?
What is a unique constraint?
What are sql functions? Describe the different types of sql functions?
What are the types of records?
Whis is not false in primary key?
Why partition by is used in sql?
What is an index? What are the types of indexes? How many clustered indexes can be created on a table?
Is left join faster than join?
What is an emotional trigger?
What is pl sql quora?
Can a table contain multiple foreign key’s?