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
How would you convert date into julian date format?
How many sql databases can you have on one server?
What is a memo field?
What does select * from mean in sql?
Are null values same as that of zero or a blank space?
what are date and time intervals? : Sql dba
How many postgresql users are there, worldwide?
what does the t-sql command ident_incr does? : Transact sql
what is oracle database ? : Sql dba
What is difference between nchar and nvarchar?
what is data control language? : Sql dba
What is the most important ddl statements in sql are?
How do you select unique values in sql?
How do you run a query?
Why cannot I use bind variables in ddl/scl statements in dynamic sql?