grant select privelege [message #418298] |
Thu, 13 August 2009 23:45  |
ajitpal.s
Messages: 204 Registered: November 2006
|
Senior Member |
|
|
Hi,
Is there any specific privelege to grant a user to take a look at a particular package/procedure/function in oracle
|
|
|
|
|
|
|
Re: grant select privelege [message #418307 is a reply to message #418302] |
Fri, 14 August 2009 00:47   |
bishtoo
Messages: 20 Registered: August 2009
|
Junior Member |
|
|
using all_source once can see source code of objects of other's schema also, provided select privilege is given to you.
regarding other privileges, User A can give Execute privilege to user B for excution of procedure owned by him.
|
|
|
Re: grant select privelege [message #418320 is a reply to message #418307] |
Fri, 14 August 2009 03:14   |
ajitpal.s
Messages: 204 Registered: November 2006
|
Senior Member |
|
|
thanks guys, both approaches rocks, i opt to go for the all_source table
select decode( type||'-'||to_char(line,'fm99999'),
'PACKAGE BODY-1', '/'||chr(10),
null) ||
decode(line,1,'create or replace ', '' ) ||
text text
from dba_source
where name = upper('&&1')
|
|
|
|
|
|