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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: (invalid) dependencies management

RE: (invalid) dependencies management

From: Yasin Baskan <yasin.baskan_at_yapikredi.com.tr>
Date: Thu, 12 Jul 2007 11:38:43 +0300
Message-ID: <083667B535F3464CA0DD0D1DAFA4E3760DDDED03@camexc1.kfs.local>


select * from dba_dependencies

start with referenced_name=:tabname and referenced_owner=:owner and referenced_type=:objtype

connect by prior name = referenced_name and prior owner=referenced_owner and prior type=referenced_type  

I think you can use this. This is something I use from time to time. I did not test it thoroughly.  

From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Cosmin Ioan
Sent: Wednesday, July 11, 2007 8:07 PM
To: oracle-l_at_freelists.org
Subject: (invalid) dependencies management  

hi all,

I have a (two-fold) question about object dependencies when a particular object is recompiled:  

  1. a query can be run pre and post object compilation to determine the objects that got invalidated by that specific object's compilation (or object ddl change) by looking at the (ALL_)OBJECTS STATUS column and taking appropriate data as such.
  2. another method would be to investigate the (ALL_)SOURCE [where upper(text) like upper('%xxx') and name<>'xxx'] to determine first level dependencies. I'd like to create a query that determines the entire dependency chain of objects that will get invalidated... probably something using CONNECT BY for recursive querying, keping in mind that, I believe, there needs to be an specific compilation order ;-)
    [unless there are other simpler query/tricks that I don't know of]

Could someone help w/ the latter strategy?

thx anticipatedly,

Cos      

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Jul 12 2007 - 03:38:43 CDT

Original text of this message

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