How to Find Packages/Procedures using any particular table

Hi,
I want to find out the procedures,packages using any particular table. Please tell me how to find out.

>
I want to find out the procedures,packages using any particular table. Please tell me how to find out.
>
You can use the utldtree.sql in the rdbms\admin folder to do that. See my reply in this thread
Re: Finding out all procedures , functions in a tree like structure in sequence
The comments in the script (and in the thread) show how to use it. The script creates a table, a view and a procedure.
Then you just use it like the comments describe. Here is the result for my SCOTT.EMP table. You can see I have a lot of packages and functions and things that depend on that table.
execute deptree_fill('table', 'scott', 'emp');
select * from ideptree
OBJECT_NAME,SCHEMA,NAME,TYPE,STATUS
0. EMP,SCOTT,EMP,TABLE,VALID
      1. PAK_TEST1,SCOTT,PAK_TEST1,PACKAGE,INVALID
            2. PAK_TEST1,SCOTT,PAK_TEST1,PACKAGE BODY,VALID
      1. GET_EMP,SCOTT,GET_EMP,FUNCTION,INVALID
      1. THREE_TABLE_EMP_VIEW,SCOTT,THREE_TABLE_EMP_VIEW,VIEW,INVALID
      1. TEST_PKG,SCOTT,TEST_PKG,PACKAGE,INVALID
            2. TEST_PKG,SCOTT,TEST_PKG,PACKAGE BODY,VALID
      1. TEST_F,SCOTT,TEST_F,FUNCTION,INVALID
      1. PIPELINE,SCOTT,PIPELINE,FUNCTION,INVALID
      1. GETOLDSAL,SCOTT,GETOLDSAL,FUNCTION,INVALID
      1. UPDATESAL_RETURNOLDSAL,SCOTT,UPDATESAL_RETURNOLDSAL,FUNCTION,INVALID
      1. EMP_HIER_PKG,SCOTT,EMP_HIER_PKG,PACKAGE,INVALID
            2. EMP_HIER_PKG,SCOTT,EMP_HIER_PKG,PACKAGE BODY,INVALID
      1. EMP_TBL,SCOTT,EMP_TBL,TYPE,INVALID
      1. EMP_HIER_PKG,SCOTT,EMP_HIER_PKG,PACKAGE BODY,INVALID
      1. TEST_REFCURSOR_PKG,SCOTT,TEST_REFCURSOR_PKG,PACKAGE BODY,VALID
      1. DOIT,SCOTT,DOIT,PROCEDURE,VALID
      1. DOIT1,SCOTT,DOIT1,PROCEDURE,VALID
      1. LSZRPT,SCOTT,LSZRPT,PACKAGE,INVALID
            2. LSZRPT,SCOTT,LSZRPT,PACKAGE BODY,INVALID
      1. F_GET_NAME,SCOTT,F_GET_NAME,FUNCTION,INVALID
      1. TEST_REFCURSOR_PKG1,SCOTT,TEST_REFCURSOR_PKG1,PACKAGE BODY,INVALID
      1. TEST2,SCOTT,TEST2,PROCEDURE,INVALID
      1. TAX_COST_SP,SCOTT,TAX_COST_SP,PROCEDURE,INVALID
      1. V_EMP,SCOTT,V_EMP,VIEW,VALID
            2. EMPLOYEES,USER1,EMPLOYEES,SYNONYM,VALID
      1. VIEW_EMP_TEST,SCOTT,VIEW_EMP_TEST,VIEW,VALID
      1. MASTER_MV,SCOTT,MASTER_MV,MATERIALIZED VIEW,INVALID
      1. TEST_VIEW,HR,TEST_VIEW,VIEW,VALID
      1. MYEMPVIEW,SCOTT,MYEMPVIEW,VIEW,VALID
      1. MYEMPVIEW1,SCOTT,MYEMPVIEW1,VIEW,VALID
      1. TEST_NDX,SCOTT,TEST_NDX,VIEW,VALID
      1. PKG1,SCOTT,PKG1,PACKAGE,VALID
      1. EMP_ACTIONS,SCOTT,EMP_ACTIONS,PACKAGE BODY,INVALID
      1. MYPACKAGE,SCOTT,MYPACKAGE,PACKAGE,VALID
      1. V_EMP1,SCOTT,V_EMP1,VIEW,VALID
      1. IDEXISTS,SCOTT,IDEXISTS,PROCEDURE,VALID
      1. VIEW_TEST_EMP,SCOTT,VIEW_TEST_EMP,VIEW,INVALID
      1. GET_EMP_REC,SCOTT,GET_EMP_REC,FUNCTION,VALID
      1. GET_EMP_CLOB,SCOTT,GET_EMP_CLOB,FUNCTION,VALID

Similar Messages

  • How to track, who are using the particular table in oracle using sql or pl/

    we have database DB1 and it contains schema s1 and the schema s1 contains all the user defined objects including tables and others and it contains one of the table name called t1. we have users u1, u1, u2...uN.
    Now, I want to track who are all using that particular table t1 under schema s1 (track user, time).
    How to do this from sql OR pl/sql

    hi,
    Thanks for the url , it was useful but i am unable to extract anything from it , For ex i gave a command like this
    Audit Select, Insert, Delete
    On tk_sales_master
    By Access
    Whenever Successful;
    then
    Select * From tk_sales_master
    Then
    Select SESSIONID, ENTRYID, Statement, Timestamp#, USERID From SYS.AUD$
    But i didnt get any rows from the SYS.AUD$
    Can u pull me out
    with warm regards
    ssr

  • How to find function modules used in maintenance table views

    Hi,
    How do I find the function modules used in maintenance table views?
    I'm using SM30 and trying to open the custom table but there is an error message saying CREATE DATA PROCESSING FUNCTION MODULE.
    Thanks.
    Kath

    hi
    in se80 select functon group and put your table function group name there and click display. it will show you the function modules used for that tables.
    Regards
    Madhu

  • How to run package procedure using Crontab

    Below is my crontab script to run . It is working fine in if I run it manually like
    sh crontest
    but if i call it in crontab , only echo is working , oracle commands are not working.
    my crontab command is -> * * * * * sh /home/oracle/cron/crontest
    crontest
    #!/bin/sh
    echo "Procedure start successfully : $(date) " >> /home/oracle/pro_test
    sqlplus -s orpheus/frs@frs_ods<<END
    set serveroutput on
    exec pkg_orph_adhoc.pro_ca('3478409644','2011-07-01','2011-10-31');
    insert into tt values(sysdate);
    commit;
    exit;
    END
    ********************************************

    That's correct because crontab does not process your login scripts and hence does not know the Oracle environment. You need to set it up, see below example. Make sure to use the correct SID, which is case sensitive. Note the space between the dot (.) and oraenv to source execute the script, which should be in /usr/local/bin. At a bare minimum you will need to setup ORACLE_HOME and add ORACLE_HOME/bin to your path, which "oraenv" will take care off and more. Oraenv needs ORACLE_SID when in non-interactive mode.
    #!/bin/sh
    ORACLE_SID=test
    ORAENV_ASK=NO
    . oraenv -s
    sqlplus -s /nolog <<-EOF
       set pages 0 feed off
       connect / as sysdba
       select status from v\$instance;
       exit
    EOF
    # END

  • How to find out where used list of Table or T-code

    Dear ABAP gurus
    I know many of you have done this several times.
    wish to find out which Transaction code INSERTs the data into the table IHPA.
    I did the where  used list - SE11 ( for specific key work called INSERT ).
    Used the Table called D010TAB which has some information.
    Vise versa if I know a T-CODE , how to know which tables it read  & Modify...
    any better procedure than spending hours in research...
    I found similar custom program to find USER EXITS ...here..., looking soething similar...
    [http://wiki.sdn.sap.com/wiki/display/Snippets/FindUser-exits%2CBADIs%2CBTEs%2CEtcbyTCodeorProgram]
    thank you for your help
    Edited by: Raj Anvesh on Aug 3, 2011 9:58 PM

    Hi Anvesh,
    Maybe the data INSERTION is happening by BAPI,
    So just try to look for the concerned BAPIS.
    ECP_SRV_PARTNERS_IHPA
    IREP1_IHPA_ADRNR_PRE_FETCH
    IREP1_IHPA_ADRNR_READ
    MAP2E_DIIHPA_TO_PARTNER
    MAP2E_IHPAVB_BAPI2080_NOTPARTE
    MAP2E_IHPAVB_TO_BAPI_IHPA
    MAP2E_IHPA_BAPI2080_NOTPARTNRI
    MAP2E_IHPA_M_BAPI2080_NOTPNRI
    MAP2I_BAPI2080_NOTPARTNRI_IHPA
    MAP2I_BAPI_IHPA_TO_IHPA
    PM_DB_FILL_DIIHPA
    PM_PARTNERCOPY_FILL_XIHPA
    PM_PARTNER_DELETE_XIHPA
    PM_PARTNER_GET_XIHPA
    PM_PARTNER_PUT_XIHPA
    PM_PARTNER_REFRESH_XIHPA
    these are the bapis which are dealing with the IHPA table,
    Segregate them as needed and then go to the std program
    Revert for further clarification.
    Thanks
    Sri

  • How to find Missing Parts for a particular Process Order?

    Hi,
    How to find Missing Parts  for a particular Process Order ?
    Is there any function module or Table ??
    Thnx in Advance.

    Hi prince roy
    you can use the T-code = <b>CO24 - Missing Parts Info System</b>
    if helpful PLEASE REWARD YOUR POINTS
    thanks
    chakri

  • How can I find out when was a particular table last updated?

    How can I find out when was a particular table last updated? I need to find out the usage of this table - when was it last updated, etc. Thanks in advance. The version I am using is Oracle 9i.

    If you don't have any application level logging, and auditing is not enabled, there's not much hope.
    You could, if you have archive logs available, go trawling through archive logs via logminer, but that's likely to prove painful and not very fruitful, unless you're very meticulous and patient...
    -Mark

  • How to find Tcodes related to a particular user

    How to find Tcodes related to a particular user

    >
    P734000 wrote:
    > do we have any table to check the tcodes which were created by a particular user.
    Hello,
    I donot think SAP maintains this info
    @Max: I think t-code you gave is the same when i use SUIM --> TRxns --> "Executable for User"
    BR,
    Suhas

  • 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 to find condition  type for a particular material document no.

    hiiiiii
    How to find condition type for a particular material document no.

    Hi
    Condition types are maintained at PO level
    Take the EKKO-KNUMV and pass to
    KONV-KNUMV field and take the different condition types values from KONV
    Take the Material Document No (MBLNR) and pass to MSEG table and take the EBELN field and from EKKO table take EKKO-KNUMV field and pass to KONV
    see the table T685 for different condition types.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • 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 out the script for the table using SQL

    Hi,
    Could any one tell me that how to find out the script for the table using SQL.
    Thanks,
    kamal

    Kamal,
    You can find the SQL query in Advanced tab of Answers
    Thanks,
    Balaa...

  • How to Find the Runtime for any workitem.

    Hi,
    Could you please tell how to find the runtime for any workitem.
    Thanks,
    Bhanu Gattu.

    Hi,
    I think, your query is pertaining to Workflow.
    Please explain your requirement little more.
    If you need Runtime Analysis:  Then the transaction Code: SE30 must be used.
    Thanks.
    RamaniN
    Edited by: Ramani Nagarajan on May 21, 2009 12:33 PM

  • How to Find Business Objects for any Tranaction .

    Hi Abapers,
                        How to find Business objects for any transcation.....  and how to connect the Work flow to  any  Trancation  so that for example any body changes the date of Birth ...... so that the work flow should trigger .
    Thanks & Regards
    Bhaskar Rao.M

    Hi Bhaskar,
    For finding business object,you can try transaction SWO4 and by checking the documentation in it you can find your required business object.
    Another method is:
    1) Go to Trx SWE4 and switch on the event trace.
    2) Run your transaction which you want to use for triggering your workflow.
    3) Run transaction SWEL and find your Business Object and related event in it.
    For connnecting your WF to your transaction you have to create a start event in your WF in SWDD,where in you specify the Business Object and start event which you find using above method.
    Eg.You want your WF to be triggered whenever you have an error in your idoc.For this your BO will be IDOCAPPL and your event will be (inputErrorOccurred).This you will give in header data in SWDD.
    Neerja

  • How to find total recs in a local table for a particular condition

    Hi,
    How to find total recs in a local table for a particular condition?
    Thanks,
    CD

    Well, you may want to try this as well, and compare to the LOOP way.  Not sure what kind of overhead you may get doing this way. Here ITAB is our main internal table, and ITAB_TMP is a copy of it.  Again I think there may be some overhead in doing the copy.  Next, delete out all records which are the reverse of your condition.  Then whatever is left is the rows that you want to count.  Then simply do a LINES operator on the internal table, passing the number of lines to LV_COUNT.
    data: itab type table of ttab.
    data: itab_tmp type table of ttab.
    itab_tmp[] = itab[].
    delete table itab_tmp where fld1 <> 'A'.
    lv_count = lines( itab_tmp ).
    Regards,
    Rich Heilman

Maybe you are looking for