Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Which table holds the package body?

Re: Which table holds the package body?

From: Laly <laly.kattoor_at_bnpparibas.com>
Date: 19 Nov 2002 10:22:09 GMT
Message-ID: <20021119-11229-484930@foorum.com>

Hi,

The view that holds your package body is user_source (or all_source, dba_source).

To get the dependencies of a package, you can proceed as following : select object_id
from dba_objects
where object_name = '...' and

       object_type = 'PACKAGE BODY'
-> object_id for your package body

Then with that object_id :

select b.Object_Name
from sys.Dependency$ a, dba_objects b
where a.d_obj# = ... and

       a.p_obj# = b.object_id

Voila,

HTH, Regards,

Laly.

-- 
Use our news server 'news.foorum.com' from anywhere.
More details at: http://nnrpinfo.go.foorum.com/
Received on Tue Nov 19 2002 - 04:22:09 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US