How to find object dependencies using the DBA_DEPENDENCIES

Hi,
Could some one please help me in finding out the object dependencies among objects?
I was trying to find out the all levels of dependencies for a given object in  a given schema, but this following query is not working for packages type.
I want to find out all LEVELS of object involved in the creation of a package.
Example:
SELECT DISTINCT owner,name,referenced_owner,referenced_name,referenced_type, LEVEL Le1
FROM dba_dependencies
where owner =user
START WITH NAME = 'object name'
CONNECT BY NOCYCLE PRIOR referenced_name    = NAME
--AND PRIOR REFERENCED_OWNER = OWNER
--AND REFERENCED_TYPE = 'PACKAGE'
ORDER SIBLINGS BY name
Please help.

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
WITH v AS (
    SELECT  line
           ,col
           ,name
           ,object_type
           ,object_name
           ,type
           ,usage
           ,usage_id
           ,usage_context_id
    FROM    user_identifiers
    WHERE   object_name = 'XML_SPREADSHEET'
    AND     object_type = 'PACKAGE'
SELECT  LEVEL,LPAD(' ', 2*(LEVEL-1)) ||NAME
       ,object_type
       ,type
       ,usage
       ,line
FROM v
START WITH name = 'T_REC_CAPTION'
CONNECT BY PRIOR usage_id = usage_context_id
ORDER SIBLINGS BY line, col
     LEVEL LPAD('',2*(LEVEL-1))||NAME   OBJECT_TYPE   TYPE               USAGE             LINE
         1 T_REC_CAPTION                PACKAGE       RECORD             DECLARATION        317
         2   TITLE                      PACKAGE       VARIABLE           DECLARATION        318
         3     VARCHAR2                 PACKAGE       CHARACTER DATATYPE REFERENCE          318
         2   TOPTITLE                   PACKAGE       VARIABLE           DECLARATION        319
         3     VARCHAR2                 PACKAGE       CHARACTER DATATYPE REFERENCE          319
         2   SPAN                       PACKAGE       VARIABLE           DECLARATION        320
         3     PLS_INTEGER              PACKAGE       SUBTYPE            REFERENCE          320
         2   COMMENT                    PACKAGE       VARIABLE           DECLARATION        321
         3     VARCHAR2                 PACKAGE       CHARACTER DATATYPE REFERENCE          321
         2   REPEATTITLE                PACKAGE       VARIABLE           DECLARATION        322
         3     BOOLEAN                  PACKAGE       BOOLEAN DATATYPE   REFERENCE          322
         1 T_REC_CAPTION                PACKAGE       RECORD             REFERENCE          324
         2   BINARY_INTEGER             PACKAGE       SUBTYPE            REFERENCE          325
13 Zeilen gewählt
What do you mean with They are giving only one level depth of dependencies?

Similar Messages

  • Finding object dependencies using Enterprise Manager

    We would like to know if it's possible to use the Enterprise Manager using version 9i or higher to determine the object dependencies of specified procedures, functions, packages, ect... If yes, what function should I be looking at?
    We plan on changing some source code and we would like to determine all object dependencies that specified procedure, function or package is connected to. This would help gather and prepare our user casses and to proactively check before making changes.
    Thanks.

    On 10g, if you go to your procedure, you can pick show dependencies under actions. I believe it's the same for OEM9i, you right-click on your procedure, and you choose Show dependencies.

  • How to find Job relationship using the Function Module  RH_STRUC_GET

    Hi Experts,
    I am getting O-S-P relation ship using for an org unit using the function module RH_STRUC_GET.
    Further If I want the job relation ship, how it can be found out.
    Thanks in Advance,
    Irfan

    Hello Irfan,
    Have a look at the table T778A for evaluation path you require and pass this to the function module.
    Regards,
    Manoj.

  • How to find objects ( tables) used in SP

    Is there any query with which I can find all the tables used ( to perform Select Insert Update Delete operation) in a procedure in oracle 10g.
    I want to take back up of all the tables used in a particular. but it is becoming difficult to find by looking at line by line as the sp is of 3K + lines.

    With USER_DEPENDENCIES view :
    SELECT referenced_owner, referenced_name
    FROM user_dependencies
    WHERE type = 'PROCEDURE'
    AND name = 'YOUR_SP_NAME'
    AND referenced_type = 'TABLE'
    ;

  • How to find Object Styles

    Hello,
    Adobes Scripting Guide: JavaScript explains well(more or less) how to find text, greps and glyph. But lacking is how to find Object Styles. The Find/Change Dialog box in ID does have this option.
    What I would like is a script that will find a style, then fill in the color of that style so that one can clearly see in a long document where the style was used. When there are only subtle differences between styles, this is helpful.
    The first thing to do is to clear all the options and that is my first stumbling block. In the following code the first line works, clearing the find of any parameters. The second line does not work.
    app.findObjectPreferences = NothingEnum.nothing;
    app.findChangeObjectOptions = NothingEnum.nothing;
    I also need to set the Search for Documents (not All Documents nor Selection) and to set the Type for All Frames.
    The second obstacle is setting the Find so that it will find the object I am looking for. The code below does not work but I do not know why.
    app.findObjectPreferences.getElements("Object Style 1");
    Any help is appreciated.
    Tom

    You need this:
    app.findObjectPreferences = null;
    app.findObjectPreferences.appliedObjectStyles = "Object Style 1";
    found_objects = app.activeDocument.findObject();
    Some things are different in scripting compared to the interface. For instance, the scope of the search in the interface is just "document" or "all documents", but in a script you can search a page, a spread, almost anything (I have to say that this is true for text and grep searches, I never tried it for objects). Finding frame types is different as well: there's no parameter for that I don't think. Instead, you have to find all frames that have a particular object style applied to them, then cycle through them checking their frame type; if the type matches your criteria, do what you want with it.
    Peter

  • How to find out  Locks on the database objects

    how to find out Locks on the database objects

    The following notes should be helpful:
    Note: 200590.1 - bde_session_locks.sql - Locks for given Session ID
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=200590.1
    Note: 1039273.6 - SCRIPT: VIEWING LOCKS ON OBJECTS HELD BY SPECIFIC USER
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=1039273.6
    You can also search Metalink, there are many notes/scripts published there which would be also helpful.

  • What do i need to do to find myiphone I have the app in my computer, but I don't know how to find it or use it.

    How do I use the find my phone app to find my phone? 
    what do i need to do?  I have the app in my computer, but I don't know how to find it or use it.

    To use Find my iPhone on a PC or Mac, open http://www.icloud.com, login with your Apple ID and choose Find my iPhone. There isn't an app for Mac or PC

  • Hi, I've been stolen and I need to find my iPhone, how can I do this using the IMEI?

    Hi, I've been stolen and I need to find my iPhone, how can I do this using the IMEI?

    You cannot do this using IMEI.
    If your iPhone, iPad, or iPod touch is lost or stolen - Apple Support
    Report a lost or stolen Apple product - Apple Support

  • HT1212 I've forgotten my ipad passcode but when I try to restore on the computer it won't let me as I have to turn "find your ipad" off but i don't know how when I can't use the  ipad itself. How do I do this on the cloud?

    I've forgotten my ipad passcode but when I try to restore on the computer it won't let me as I have to turn "find your ipad" off but i don't know how when I can't use the  ipad itself. How do I do this on the cloud?

    If the iPad was running iOS 7,  iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/HT5818
    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • How to find Port numbers used by RMI application

    Hi, hope u all find me a solution, how to find port numbers used in the RMI application, that is port number which the RMI application communicates between RMIserver and RMIclient. ur answers would b highly appreciated

    Currently RMI transport layer does not directly expose any public methods to get the listening ports of the exported RMI objects, but the application can always export RMI server objects at certain designated ports instead of relying on the RMI runtime by specifying them to UnicastRemoteObjcect at the time of exporting.
    RMI transport layer try to optimize the number of listeing sockets by exporting all RMI server objects on a single port if no explicit ports were chosen. If the application is really interested in knowing the listeing ports, it can always specify the client and server socket factories to be used for creating Socket and ServerSocket to the RMI runtime at the time of exporting. When a RMI server object is exported, but the listening socket is not yet created, RMI transport layer invokes the createServerSocket(host, port) of server socket factory by passing the host and port details. If no explicit port is specified, underlying socket implementation choses anonymous port. At this point of time application can log these listeing ports to some log file.
    Similarly when the stub to the remote object is de-serialized in the client address space, it does also contain the client socket factory along with the end point details (host, port and server object ID). RMI runtime in the client address space needs to establish connection with the remote server object, it try to get the socket from client socket factory by invoking createSocket() on the client socket factory. Now the application can call getLocalPort() on the socket before returning it to the RMI transport layer.
    There is a undocumented class RMIStat to dump RMI runtime state information. It provides a lot of static methods to dump RMI state information like object table, transports, threads etc. You can download the source code of this utility from RMI archives, but remember this is not a comman-line utility, you must invoke these static methods as part of the application code.
    -- Srinath Mandalapu

  • How to find workarea ID for the work area name.

    Hi Experts..
    How to find workarea ID for the work area name.(Work area name CCIHT_WAH-WAID and I want to fetch characteristic data from table AUSP matching the OBJEK field,but I only have Work area name).Can anybody help me to find tables or relationship between Workarea ID and Workarea name for the same.I am using TCODE - CHIB02.Once I select a workarea and click on IHS Data button,I get data for that workarea.I need to find where this data comes from and How is this fetched.
    Points would be rewarded for helpful answers..
    Thanks
    Kunal Halarnakar

    U want to fetch the workarea description ?
    we can fetch it from CCIHT_WALD table with the RECN value.
    The informations are stored in AUSP table with the characterstic(ATINN) value.

  • How to find process chain using background job in sm37

    How to find process chain using background job in sm37

    Better is to select the job.
    Select (Define) Step (s) or F6.
    Select the line and Menu Goto>Variant.
    The variant contains the name of the CHAIN and its VARIANT.
    Success
    We faced an old job and via job monitoring we were informed about a cancelled job every 'interval'.
    We noticed that the related chain was deleted but still the job was scheduled each interval again and was cancelled because an event was missing
    We could not find the scheduled job via SM37.
    Via view V_OP, view over tbtco abd tbtcp, we find the related entry.
    We delete these entries via function BP_JOB_DELETE....
    Edited by: Jack Otten on Jul 9, 2010 2:50 PM

  • How to find out what is the lock key for the computer

    How to find out what is the lock key for the computer?

    You don't.
    If you forgot or lost the password, all you can practically do is reset it.
    The manner in which you do so depends on what version of OS X you are running. The older versions utilize the reset password utility on your recovery/re-installation disk/drive.
    On Lion, you use the following technique to reset the Administrators password:
    Boot to your Lion Recovery Partition, by holding down the Option key while starting, and then selecting the Recovery HD as the boot choice.
    Once booted, at the top of the screen is a menu ..., select Utilities / Terminal from the menu bar.
    In the Terminal window, type “resetpassword” (without the quotes) and press return. A “Reset Password” window will open. Select your boot volume (your SSD drive) if it is not already selected. Select your administrators username from the menu labeled “Select the user account” if it is not already selected. Follow the prompts to reset the password. Restart the computer from the apple menu.

  • How to find report values using report writer

    hi,
    Please help me.
    How to find report values using report writer
    Regards,
    RRK.
    Edited by: Alvaro Tejada Galindo on Feb 6, 2008 12:01 PM

    Thanks all for the reply.
    I am trying to solve a problem where report parameter value that is set at Management Console is wiped out after calling replaceConnection.
    databaseController.replaceConnection(oldConnectionInfo, newConnectionInfo,
    null,DBOptions._doNotVerifyDB);
    We have to support changing database connection from a java utility
    class. But once replaceConnection is called all existing static parameter values are lost. To fix this issue we thought of getting parameters and values before calling replaceConnection and setting it after replaceConnection.
    Version is CS2008 SP3 - version 12.3.0.601
    If there is any other option of fixing the original wipe out issue?
    ParameterValues.getValues() didn't return value. I will try ParameterValues.getCurrentCalues() but the document says ParameterValues.getValues() is  equivalent to the IParameterField.getCurrentValues() method  unless it is empty, in which case it is equivalent  to the IParameterField.getDefaultValues() method.
    So getCurrentValues() may not work.

  • How can I access and use the alphabetical keyboard of the phone ?

    How can I access and use the alphabetical keyboard of the phone ? I cannot find the answer in the manual of use.  Thanks for your help !

    Recently I was abroad and tried to contact my voicemail to check my messages. I was asked to enter a password and did not know how to use the letters below the figures on the keyboard.  I had to give up and wait until I was back in my country (no password is then needed).

Maybe you are looking for

  • Multiple copies of email appearing in Apple Mail

    Suddenly I am starting to see multiple copies of an email in me Apple mail client. This seems to have started when I did the software upgrade earlier today - although I have no idea if this is a coincidence, or part of the problem. fyi I am using App

  • Windows Vista and No Driver Software for Tungsten E2

    I have had my Palm Tungsten E2 for a few months. It works fine and did perfectly well with the Windows XP operating system. Recently I changed computers and have Windows Vista. I installed the program from the CD and then was alerted to go to the web

  • Having active file links to text files in pdf

    Hi, I have a Word doc that has a number of embedded text files that are accessible by double-clicking the text icon. When I convert the Word doc to pdf these will not launch Notepad with the actual text file that is needed. Any suggestions on how to

  • Help requried with outer joins

    Hi All, I neeed a query help can any one please help me getting this done, for the below query select trunc(assumed_time_sql) AS date1,sum(rp.rebate_due)as sum1 from mn_date_dim dd ,mn_rebate_payment rp,mn_prc_program prc,mn_structured_doc sd where t

  • N8 not playing youtube videos. Why?

    hey all, heres the problem.. my n8 is not playing youtube videos when i select to play it with standard video player option at m.youtube.com it takes me to the video player but shows nothings but only LOADING ... however when i chose to play the vide