SQL to list all objects and its depencies

Hi:
I am trying to come up with a SQL script thatt will list the following:
For all ORACLE objects, list all its dependent objects.
In other words, I would like to get a trre-like output containing info on every object with all the other objects that depend on it.
I found a TOAD option for View->Dependencies
which does what i am looking for but unfortunately it falls short of making the output useful.
When I tried this option on the schema "SYSTEM" this is what I got:
+ SYSTEM.AQ$DEF$_AQCALL
+ SYSTEM.AQ$DEF$_AQERROR
+ SYSTEM.AQ$_DEF$_AQCALL_E
+ SYSTEM.AQ$_DEF$_AQERROR_E
+ SYSTEM.DEF$_AQCALL
+ SYSTEM.DEF$_AQERROR
+ SYSTEM.DEF$_PROPAGATOR_TRIG
+ SYSTEM.ORA$_SYS_REP_AUTH
+ SYSTEM.PRODUCT_PRIVS
+ SYSTEM.REPCATLOGTRIG
That is what I need but the problem is that you have to manually click on the "+" to expand the three. For some reason the chose not to provide an "expand" option. If the tree has , say, 100 lines and each line is on average 3-4 levels deep you can imagine how many click one would have to do.
Thanks for any help in advance.
So far it looks like I would have to look at the following:
OBJ$
USER$
DBA_DEPENDEBCIES
DBA_OBJECTS
in order to get what I need but since I am not familiar with the precise meaning of the columns I cannot get any close results.
Thanks for any help you might provide,
Robert Young

Have a look under your oracle_home directory for a file called utldtree.sql. That might give you what you are after.
Regards,
Steve Rooney

Similar Messages

  • Getting list of versions of an object and its corresponding TR

    *Hi experts,*
                      *My  requirement is to get the list of all versions and its corresponding TR of an object.*
                     *Do we have any function module for doing the same.???*
                     *Any pointers will be appreciated.*
    *Thanking You*

    goto version management.
    there all the versions are listed with the TRs.
    in theMENU bar, use this
    UTLITIES>VERSIONS>VERSION MANAGEMENT.
    this thread will help
    Version management

  • Command to  provide list of all objects and their scripts from database

    Hi,
    How do i get the list of all objects and their scripts/source from database?
    I guess using dbms_metadata package or Toad tool we can achieve the above task
    But i do not know the steps to get the objects and their scripts.
    Im using oracle database 11g R2 11.2.0.2
    Kindly ge me the advice
    Thanks in Advance

    How do i get the list of all objects and their scripts/source from database?
    I guess using dbms_metadata package or Toad tool we can achieve the above task
    But i do not know the steps to get the objects and their scripts.
    Im using oracle database 11g R2 11.2.0.2If you want the all the metadata of whole database, then it is quiet difficult to get from DBMS_METADATA, as it is very complex because you need to gather for each object of each schema in whole database and to spool.
    http://www.orafaq.com/node/57
    I want to know, what is the use of entire database metadata, Certainly need of objects of metadata.
    or if you want to whole database, then i suggest you go for export full backup and import as impdp sqlfile option,

  • Can we add an info object and its nav. attr in an aggregate together?

    Hello
    I am getting an error when I try to add 0MATERIAL and 0MATERIAL_OPROD_HIER in an aggregate at the same time. In the cube, both 0MATERIAL and its attr 0MATERIAL_0PROD_HIER sit in the same dimension. Therefore, when I try to create an aggregate and drag these chars in, they try to come into the same dimension here also.
    1st scenario:
    1. I  add 0MATERIAL in the aggregate.
    2. I try to add 0MATERIAL_0PROD_HIER in the aggreate, I get an error message ' Aggregation levels cannot be defined for 0MATERIAL_0PROD_HIER.
    3. And it does not let me add this nav attr at all.
    2nd scenario:
    1. I first add 0MATERIAL_0PROD_HIER in the aggregate.
    2. I try to add 0MATERIAL now.. I get the same error as above for 0MATERIAL this time.
    3. But it lets me add 0MATERIAL inside.
    4. Now, when I go its context menu (right click) and select aggregation as 'All Char Values' for 0MATERIAL, then the error goes away.
    5. But after I activate and fill the aggregate, I have a look it again.. and now I only see 0MATERIAL and its nav attr which I added first has disappeared.
    Why do the above 2 happen? And if I have an info object and its nav attr in ROWS in a query, and if I am not able to add both of them to the aggregate.. how can I improve the performance of the query?
    Please advise.

    Hi Srinivas
    In your scenario, it is sufficient if you just add 0Material when you are creating the aggregate. Need not add the nvaigational attribute in the aggregate definition. The procedure you followed the first time is right i.e. Drag and drop 0material first.
    The system does not allow you to add the nav attribute because it is not required. I say this because a navigational attribute added to your infoprovider is like (in terms of SQL) joining your infoprovider with your material master table. Navigational attribute's value is not physically stored in your cube. It is brought in during execution time in both list cube as well as in your query output.
    Similarly when you execute your query with 0material as your aggregate, even if you add a filter or variable restriction on 0Material_prodHier your query WILL use the aggregate since 0material is referenced.
    You can even check this in RSRT. Give your query name, and generate report first. Then click on Execute + Debug, Choose Display SQL/BIA Query and enter your selection and choose enter. You will see the SQL of your query and in the SQL select statement you will see that your aggregate table is chosen instead of your infocube. This aggregate table only will be read during your query execution in Bex as well.
    I hope this helps.
    Thanks.

  • List all folders, and subfolders, in a directory

    I'm trying to find a way to list all folders, and subfolders, in a directory.  I ran the code below and got a message that says 'Access is Denied'.  There is no way access is denied to that folder. How can I list all folders, and subfolders, in
    a directory?
    --'C:\Users\Ryan\Desktop\Coding\';
    set nocount on
    declare @curdir nvarchar(400)
    declare @line varchar(400)
    declare @command varchar(400)
    declare @counter int
    If (select count (*) from sys.objects where name='Output') <> 0 DROP TABLE output
    If (select count (*) from tempdb.sys.objects where name like '%#Tempoutput%') <> 0 DROP TABLE #Tempoutput  
    If (select count (*) from tempdb.sys.objects where name like '%#dirs%') <> 0 DROP TABLE #dirs  
    create table #dirs (DIRID int identity(1,1), directory varchar(400))
      Set @command = 'dir "C:\Users\Ryan\Desktop\Coding\Microsoft Access\" /S/O/B/A:D'
     insert into #dirs exec xp_cmdshell @command
      set @counter = (select count(*) from #dirs)
    create table #tempoutput (line varchar(400))
    create table output (Directory varchar(400), FileSize varchar(400))
        While @Counter <> 0
          Begin
            Declare @filesize int
            set @curdir = (select directory from #dirs where DIRID = @counter)
            set @command = 'dir "' + @curdir +'"'
            insert into #tempoutput
            exec master.dbo.xp_cmdshell @command
               select @line = ltrim(replace(substring(line, charindex(')', line)+1,len(line)), ',', ''))
               from #tempoutput where line like '%File(s)%bytes'
               Set @filesize  = Replace(@line, ' bytes', '')
            Insert into output (directory, Filesize) values (@curdir, @filesize)
            Set @counter = @counter -1
           End
           Delete from output where Directory is null
    select * from output
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    Can you tell us how you're executing this code? Is it called from sql agent job or are you executing it by calling code directly?
    Did you try creating a proxy for xp_cmdshell and then executing it?
    http://www.mssqltips.com/sqlservertip/2143/creating-a-sql-server-proxy-account-to-run-xpcmdshell/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Would like to create a script for list all elements and structure of an indesign document

    Hello everybody,
    I'm a very beginner in indesign scripting.
    I would like to create a script in order to list all elements and the inner structure of a n indesign document.
    The aim for me is to understand how elements are sorted and arranged into indesign, and be able to find an specific element by its item name.
    The output document could be an xml or txt document with a treeview structure.
    I would like have a rough idea of which kind of javascript code I should use for that.
    Thanks for answers.

    Hi Ossydoc,
    You can use Muse to create such a website. All you need to do is, create links in Muse for the sermons and select  " link to File " in the hyperlink option and link to those Mp3 files.
    Please refer to this screenshot :- http://prntscr.com/4xvdup
    Now, when you publish your site,  Muse would automatically upload those files onto the server and the users would then be able to listen as well as download those sermons using the links on your site.
    Hope this helps
    Regards,
    Rohit Nair 

  • How can I list all users and their DEFAULT tablespace?

    How can I list all users and their DEFAULT tablespace?
    Peter

    Peter, the following short article that lists the most heavily used Oracle rdbms dictionay views might be of interest based on your question:
    How do I find information about a database object: table, index, constraint, view, etc… in Oracle ? http://www.jlcomp.demon.co.uk/faq/object_info.html
    HTH -- Mark D Powell --

  • When I send a Group message from my address book, the entire group gets listed in the "To" line. How do I get each member to receive the message individually without listing all members? Its just messy is all.

    When I send a Group message from my address book, the entire group gets listed in the "To" line. How do I get each member to receive the message individually without listing all members? Its just messy is all. Any help is greatly appreciated.

    Hey Grupo Castillo,
    Thanks for the question. You can actually configure this behavior from Mail preferences:
    1. Choose Preferences from the Mail menu.
    2. Click Composing.
    3. Deselect the checkbox for "When sending to a group, show all member addresses".
    When you send an email to the group, only the groups name will be seen.
    Mac OS X: Mail - How to Hide Address Book Group Member Names When Sending an Email
    http://support.apple.com/kb/TA21082
    Thanks,
    Matt M.

  • Report to list all computers and their collection membership

    Hi
    I am currently working on a site where direct membership is used for collections but a need has arisen to move to AD Queries.
    I have created a simple powershell script that creates groups based on the contents of a csv file and another script which populates this with the members listed in another csv file.
    To help speed up the process is there a way to generate a report that lists ALL Computers and their Collection membership?
    The only reports I seem to find that are built in require an inputted value of either computer name of collection ID. I simply need a report that lists Computer Name is column 1 and Collection Name in column 2 for all computers and all collections.
    Many Thanks,
    Matt Thorley

    select 
    FCM.Name,
    C.Name
    from 
    dbo.v_Collection C
    join dbo.v_FullCollectionMembership FCM on C.CollectionID = FCM.CollectionID
    Thanks to Garth for original query. I just modified it :)
    Anoop C Nair (My Blog www.AnoopCNair.com)
    - Twitter @anoopmannur -
    FaceBook Forum For SCCM

  • My messages on OS mountain lion are apperaring all blank and its not allowing me to send any Imessages, it will let me type it and as soon as i hit enter it disappears somewhere. I have updated my software and this hasn't helped! Thanks

    My messages on OS mountain lion are apperaring all blank and its not allowing me to send any Imessages, it will let me type it and as soon as i hit enter it disappears somewhere. I have updated my software and this hasn't helped! Thanks

    what a long post....Apple, btw, does not read this stuff, so ranting, raving, and complaining here might make you feel good, but it does no good at all. That being said, I, too have a Mac Pro Quad Core Xeon with 6 gigs of ram and an nVidia 8800 GT graphics card (not as good as yours, alas) and I've had no problems at all with it. Yes, it doesn't have Thunderbolt, but maybe we Mac pro owners will get lucky and someone will come out with an adapter (probably not). No, you probably don't have to throw away your Mac Pro, but if you do, I'll take it, for a small "recycling" fee >:-) That was a joke.  Yes, the Mac Pro's future isn't quite clear, YET. Hopefully that will improve very soon. As for not being able to upgrade to Mountain Lion. Don't worry about that too much, Nobody is forcing you to do that.  Your Mac Pro won't quit working if it isn't installed. From what  I've heard, you should give the new OS a chance, and wait to get it, in case there might be some bugs, or stuff not working with the new OS, which has been known to happen. Yes, we Mac Pro owners don't like being treated like mushrooms-kept in the dark, and being fed......... but Apple is Apple and it will do what it does, and there is nothing you or me can really do to change that. All I can say is....trust, have faith, be patient, go for a walk, do something else to take your mind off of this problem. IF apple decides to drop the Mac Pro for good, and that's a big "IF", I think they will anger a whole bunch of people
    which isn't good. However, that hasn't happened...YET. Let us hope that it doesn't
    John B

  • List all users and their OUs they belong to

    Hi,
    I would like to list all users with the OU they belong to and furthermore add an specific attribute that was added...
    I can get both information separately:
    get-aduser -SearchBase 'OU=DOMAIN,DC=mygroup,DC=re,DC=lan' | FT name
    and
    Get-ADOrganizationalUnit -SearchBase 'OU=DOMAIN,DC=mygroup,DC=re,DC=lan' -properties name,budgetanalytics | FT name,budgetanalytics
    but I'd like to get the list containing user1, its OU, its budgetanalytics
    Thanking you in advance,
    Cédric

    Thanks for your reply!
    I tried the following:
    $Users = get-aduser -SearchBase 'OU=Mes Utilisateurs,DC=itced,DC=lan' -filter '*'
    $OU = $User.distinguishedname -split ',',2 | select -last 1
    $output = @()
    Foreach($User in $Users){
    $budgetanalytics = Get-ADOrganizationalUnit -SearchBase $OU -Properties objectGUID
    $Object = New-Object PSObject                                       
    $Object | add-member Noteproperty user $user.name         
    $Object | add-member Noteproperty OU $OU                       
    $Object | add-member Noteproperty objectGUID $objectGUID       
    $output += $Object
    $output
    but I get the following
    user                                             
    OU                                              
    objectGUID                                      
    User1                                            
    OU=Mon OU,OU=Mes Utilisateurs,DC=itced,DC=lan    {Microsoft.PowerShell.Commands.Internal.Forma...
    User2                                            
    OU=Mon OU,OU=Mes Utilisateurs,DC=itced,DC=lan    {Microsoft.PowerShell.Commands.Internal.Forma...
    Why do I get "Microsoft.PowerShell.Commands.Internal.Forma..." instead of the actual objectGUID of the Organizational Unit
    Thanking you in advance

  • Script to stop and start Business Object and its components

    Hi Guru
    I have installed Business Objects and few of its componenents.
    Please assist where I can find a proper script to do a clean stop and start of its services.
    My server is Windows 2008 SP2.
    Target services to have a scripts are;
    1. MySQL server 5.1.
    2. Apache Tomcat 5.5.20.
    3. BW Publisher Service 12.
    4. Server Intelegence Agent.
    Appreciate some assistance here. Thanks!
    -Ace-

    All of those components are available as Windows services. You can use the relevant
    net stop
    commands to stop them.
    Regards,
    Stratos

  • Search script generator for all objects and data (!) from a user/schema ?

    Is there a way to create a script which (when run) creates all the existing
    TABLES; INDEXES, KEYS and DATA for a specified user/schema ?
    This (PL-)SQL script should contain all INSERTS for the currently existing rows of
    all the TABLEs.
    When I use e.g. export to Dumpfile I have at first find all TABLEs and components
    which I want to dump. This is rather uncomfortable.
    I just want to specify the user name similar to
    createscript user=karl@XE outfile=D:\mydata\myscript.sql
    Is this somehow possible ?

    So that I understand your requirements exactly, are you asking for your script to ...
    1/ export from database A the entire schema of a specified user
    2/ drop all objects owned by that user in database B
    3/ import the objects from database A into database B
    If so, it sounds to me that a shell script that does a schema level export as Nicholas suggested, and then drops the user from database B using the cascade keyword (e.g. drop user username cascade), recreates the user and then imports the export file into B should do the trick.
    I don't think searching for individual tables and creating the statements to recreate them is the best idea.
    Hope that helps
    Graham

  • How to extract list of object and formula used in variables as Excel for a particular Webi Report

    Hi,
    Is it possible to get the list of variables and objects, and variable formula used in a webi report extracted in excel or PDF in BO XI R3.1?
    Thanks In Advance,
    Shenbu

    Hi Shenbaga,
    You can try to get this information using the report engine sdks of BusinessObjects which is specific to webi reports.
    Please refer to the link to download the dev guide and api referrence for XI 3.1
    SAP BusinessObjects BI 3.x and Lower - Developer SDK Library
    Refer to the Report Engine Java SDK dev guide and api referrence.
    Go through the dev guide in detail and you would be able to use the report engine sdks as per your needs.
    Additional Note: There have been changes in report engine sdks from XI 3.1 to BI 4.0 and you would not be able to get all the features available in XI 3.1 report engine sdks in BI 4.0.
    Hope this helps.
    Regards,
    Chandrahas

  • Generating .sql script for all objects of a User/Schema

    Hi All,
    What are the ways in which I can generate scripts for a full USER (all objects) with dependencies. (by dependencies I mean for example that PK be created first before creating FK).
    We can export the full schema using (exp rows=n) but this will generate a .dmp file. I want a .sql file which can be run on any other machine (from SQL> prompt) so that user and all objects are created (without the need to use "imp").
    Thanks
    -AKJ

    But the easiest way to do this would be to do an export with rows=N and then an import.
    You coule do an export and then let run the import utility with indexfile=<you_name_it>.sql and this way you'll get a file with all statements included (but table definition commented out).
    Or you do it yourself (DIY-method), where you have to select all your relevant objects and their dependencies.

Maybe you are looking for

  • How to set up recordings of audio and video so that they will sync

    I'm editing footage of a dance concert that used CDs for some of the dances and a live pianist for the remainder. In addition to the audio captured by the camera, I have all the CDs that were used and an additional audio recording of the piano that s

  • Need help with a for loop

    Hi all I have a dir that has a list of folders that are created using php that my customers upload to. the PHP creates a new folder using the system date on the days that they upload. (using this format yyyymmdd) What I am trying to do is loop thou t

  • Authenticating Dynamically

    I have gone through the sample car rental authentication eg ...for authentication bofore starting the application a screen appears asking for user id..this screen appears automatically...i have a login web dynpro page in my application...how do i aut

  • Provisioning with OIM

    I want to get started with basic provisioning activities. Already have OIM 11gR2 and Jdev, AD installed. I am looking to some basic getting started activities with Provisioning. Please suggest urls, or resources to get started. Thanks

  • No sound with flash Player

    My sound stopped working for my flash player for my browser. It was working one day, and now NO sound for any flash items I view on the net. I can't hear anything with Youtube, or any flash site. what would cause this to happen?