Home » RDBMS Server » Server Administration » Package body Not visible
Package body Not visible [message #173931] Thu, 25 May 2006 05:05 Go to next message
kumarsz
Messages: 180
Registered: March 2005
Location: canada
Senior Member
Hi,
Oracle version 9.2.0.6.0
i have created some packages and granted privileges on those packages to others users.
However, those users can only see the specification and no body at all for all those packages (they are using TOAD and SQL Developer, both)
i have also assigned them with 'grant select on dba_source'

Please suggest.
Thanks in Advance,
Pratap
Re: Package body Not visible [message #173938 is a reply to message #173931] Thu, 25 May 2006 05:24 Go to previous messageGo to next message
ebrian
Messages: 2794
Registered: April 2006
Senior Member
That is by design. One of the security features of Oracle packages.

Grant CREATE ANY PROCEDURE to the user or grant select on DBA_SOURCE.
Re: Package body Not visible [message #173944 is a reply to message #173938] Thu, 25 May 2006 05:51 Go to previous messageGo to next message
kumarsz
Messages: 180
Registered: March 2005
Location: canada
Senior Member
Yes Sir,
It worked with
grant create any procedure to user;

Many thanks and Regards,
Pratap


Re: Package body Not visible [message #173958 is a reply to message #173931] Thu, 25 May 2006 06:51 Go to previous messageGo to next message
kumarsz
Messages: 180
Registered: March 2005
Location: canada
Senior Member
Hi Ebrian,
Is there any other way to achieve this.
As granting 'create any procedure' is really scaring me although it worked in this case.
Also the grant select on dba_source or all_source did not worked.

Please suggest.

Thanks in Advance,
Pratap
Re: Package body Not visible [message #173961 is a reply to message #173958] Thu, 25 May 2006 06:59 Go to previous messageGo to next message
ebrian
Messages: 2794
Registered: April 2006
Senior Member
Granting an ANY privilege should always be done with precaution. I can't think of another "direct" way of accomplishing this.

Have you tried, granting the developers access to DBA_SOURCE and creating a view of DBA_SOURCE, then grant the developers access to the view?

[Updated on: Thu, 25 May 2006 07:04]

Report message to a moderator

Re: Package body Not visible [message #173977 is a reply to message #173961] Thu, 25 May 2006 07:46 Go to previous message
vjeedigunta
Messages: 201
Registered: March 2005
Location: Hyderabad
Senior Member

Try granting select_catalog_role and have them obtain the code by running a select statement like
select text from dba_source where name like '%PACK_NAME%';

-Sai Jeedigunta
Previous Topic: how to unlock a table
Next Topic: Checkpoint
Goto Forum:
  


Current Time: Fri Sep 20 12:45:40 CDT 2024