Listing out the plsql objects which update tables

1) Is there a way i can list out which plsql object is doing DML statement on a table, i know we can use USER_DEPENDENCIES or DBA_DEPENDENCIES tables but it is listing out the packages or procedures even if a column is used to define a ref datatype or even if the code is commented out, i just want to see only the objects that are issuing DML statements.
2) Is it possible to see at column level details, meaning if a column is updated in one procedure and another column is updated in another procedure, can i list out the procedures and the columns that would be updated or inserted in that procedure.
appreciate your help, Thank you.

Do a join of dba_dependencies and dba_hist_sql_plan/v$sql_plan
thanks
http://swervedba.wordpress.com/

Similar Messages

  • How to find out the Referenced objects ?

    Hi all,
    I want to find out the referenced objects
    Example : Table Name is Customer
    I want to know what are the procedures,functions,packages used that customer table. Please provide that sql Query.
    Thanks and Regards

    If this is not what you want, please give us a test case with input and expected output:
    SQL>
    SQL> drop table cust;
    Table dropped.
    SQL> drop procedure proc1;
    Procedure dropped.
    SQL> drop procedure proc2;
    Procedure dropped.
    SQL> drop procedure proc3;
    Procedure dropped.
    SQL>
    SQL> create table cust(x int);
    Table created.
    SQL>
    SQL> create procedure proc1
      2  is
      3  begin
      4  update cust set x = x + 1;
      5  end;
      6  /
    Procedure created.
    SQL> show errors
    No errors.
    SQL>
    SQL> create procedure proc2
      2  is
      3  begin
      4  delete cust;
      5  end;
      6  /
    Procedure created.
    SQL> show errors
    No errors.
    SQL>
    SQL> create procedure proc3
      2  is
      3  begin
      4  insert into cust values(0);
      5  end;
      6  /
    Procedure created.
    SQL> show errors
    No errors.
    SQL>
    SQL> select name, type
      2  from all_dependencies
      3  where
      4  type ='PROCEDURE'
      5  and referenced_name = 'CUST'
      6  and referenced_type = 'TABLE';
    NAME                           TYPE                                            
    PROC1                          PROCEDURE                                       
    PROC2                          PROCEDURE                                       
    PROC3                          PROCEDURE                                       
    SQL> exit

  • How can we find out the info object in a query ....?

    How can we find out the info object in a query is belongs to that particular info cube? If the query is built on a Multiprovider having 4 different info cubes.

    Hi,
    If you have restrictions at the infoprovider level in the RKF then it is coming from that particular infocube.
    Or go to the selection option in the multiprovider...her you can get the mappings of which key figure is populted from which infocube.
    For characteristics you will have to look for identification tab in the characteristics option.
    Thanks

  • How do you find out the contacts that were updated via Facebook and twitter in the settings without having to figure it out manually?

    How do you find out the contacts that were updated via Facebook and twitter in the settings without having to figure it out manually?

    There is no such list of what is downloaded to each phone except in the backup. So if you have a recent backup of each phone you should be able to find an app that reads the backup files and would tell you what list is saved of the content on each phone.

  • Updated my iPhone 5 to ios7, in the App store after installing updates I now have a never ending list of the Apps I've updated.  How do I get rid of the list after they've been updated?  In the previous version I did not have an annoying permanent list.

    Updated my iPhone 5 to ios7, in the App store after installing updates I now have a never ending list of the Apps I've updated.  How do I get rid of the list after they've been updated?  In the previous version I did not have an annoying permanent list.

    iOS 7 allows you to have your apps update automatically. Therefore, the list of what has been updated stays so that you can see what was updated, when and what the release notes say. It has been suggested that they list has a limit, much like Recents. Currently, there is no way for the user to delete the entries manually. Just try not to look at them.

  • How do I find out the date in which I registered my imac?

    How do I find out the date in which I registered my imac?

    It doens't really matter what date you registered it. However if you are looking to see when your expiration on AppleCare is/was it is 3 years from the original date of purchase. You can use the Apple Online Service Assistant afer you input the serial number click the link that says See your service and support coverage.

  • When i go to the app store to update the one app that needs to be updated, the screen is blank.  It used to list all the apps that need updating and have a button called update all.  Now nothing.  Just a blank screen.

    when i go to the app store to update the one app that needs to be updated, the screen is blank.  It used to list all the apps that need updating and have a button called update all.  Now nothing.  Just a blank screen.  How can I fix this?

    There's been a problem with this all day.  Seems to be a server problem  -  wait a day and try again, or use itunes on the computer to update, that works.

  • How can I find out the iCloud ID which is registered with my iPhone?

    How can I find out the iCloud ID which is registered with my iPhone? I dont know which ID is actually registered with my phone Please help me

    Someone logged into iCloud with his ID maybe my friend or someone but if I get the email info then I can tell him to remove the lock. The ID is started with s*****@hotmail.com. I already asked few of my friends whos name started with s but still didnt find the right one What can I do now?

  • Do we have any method to list out the servers that are critical and the component/monitor causing the server to turn into critical state in SCOM 2012

    Hello Team,
    We are monitoring 1000 servers in our environment and out of 1000 servers, we have approximately 100 servers showing as critical state on the server state view.
    We can get the critical servers list from SCOM console, but we are not able to get the information about the component responsible for the server to be critical. Using Health explorer to find the root cause for 100 servers is really impossible and time consuming.
    Do we have any method to list out the servers that are critical and the component/monitor causing the server to turn into critical state?
    Advance thanks for your help.
    Regards,
    Dinesh
    Thanks & Regards, Dinesh

    Hi,
    As far as I know alerts with severity as criticla may cause windows computer in a critical state, we can try below code to find all critical alerts:
    get-alert -criteria 'ResolutionState=0 AND Severity=2' | select Name,ResolutionState,TimeRaised | export-csv c:\Alerts.txt
    Criteria Syntax http://msdn.microsoft.com/en-us/library/bb437603.aspx
    Values to use.
    Resolution State 
    Severity Values for Alerts
    0       =   New
    0 = INFORMATIONAL
    255   =   Closed
    1 = WARNING
    2 = CRITICAL
    Hope this helps.
    Regards,
    Yan Li
    Regards, Yan Li

  • How to list out the tablenames alone from EXP Dump File

    Hi,
    We are creating a dump file by using EXP command through a Parameter file.
    Now, from this exp_backup.dmp file, I just want to find out the list of tables, which got exported.
    I don't have access to the Parameter file used for exporting data. Please share your views, suggestions, thank you.

    Hi,
    did you try to get the details logfile created for your export dump ?
    try strings on your dumpfile
    strings <dumpfilename>
    Regards
    Veda

  • How to find out the releases for which an XPRA needs to be executed?

    Hello All,
    I am looking for some information related to XPRAs executed during the upgrades.
    1. Is there a DB file present from which the XPRAs which needs to be run during the upgrade is stored?
    2. From the name of the XPRA is it possible to find out which releases it is applicable for(if you cannot access the transaction XPRAin the system) ?
    Thanks,
    Resmi.

    sorry Resmi,
    missed some word there.
    when you will run the prepare it will give you information about the xpra objects.
    Regards
    Ashok Dalai

  • How can I list all the column names of a table by programming?

    Hi,
    Now I want to write an function which has the following features:
    Firstly, The function was given a parameter as table name.
    Then, it will lists all the columns names of the table.
    e.g
    table: person
    ---firstName------lastName----+
           Michale               Jackson
    We can get the columns 'firstname' and 'lastName' by calling the function with table name 'person'.
    And I also wonder that where I can get reference book or any other materials?
    Thanks.
    Edited by: wenjing wang on Feb 15, 2008 6:42 AM
    Edited by: wenjing wang on Feb 15, 2008 6:57 AM

    hi,
    hope the below code helps u. Just take the headee which contains the field name and split it like below and compare it with the field name u want here 'last name'.
    here,
    'First name' will be in wt_filedata1 and remaining field names in wt_filedata2, so 'do' continues.
    c_tab must be the separator, either , or + or tab etc..
    CODE:
    read table person into wl_header index 1.
    do.
        split wl_header at c_tab into: wt_filedata1 wt_filedata2.
        if wt_filedata1 <> 'lastname'.
          cnt1 = cnt1 + 1.
          wl_header = wt_filedata2.
        else.
          exit.
        endif.
      enddo.
    Please reward if it is useful.
    regards,
    sri

  • List out the function modules..

    Hi Friends..
    I want to list out all the available function modules and also i want to store all the function modules in internal table for that purpose what can i do..
    Thanks
    Gowrishankar

    Here is the porgram to display the  list of functionmodules in the SAP IN alv.
    *& Report  ZDEMO_ALVGRID                                               *
    *& Example of a simple ALV Grid Report                                 *
    *& The basic requirement for this demo is to display a number of       *
    *& fields from the TFDIR table.                                         *
    REPORT  zdemo_alvgrid                 .
    TABLES:     TFDIR.
    type-pools: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_TFDIR .
    include  structure   TFDIR .
    types  : END OF t_TFDIR.
    DATA: it_TFDIR TYPE STANDARD TABLE OF t_TFDIR INITIAL SIZE 0,
          wa_TFDIR TYPE t_TFDIR.
    select-options  :  s_FUN  for TFDIR-FUNCNAME.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    *perform build_layout.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
    *       Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
      fieldcatalog-fieldname   = 'FUNCNAME'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
    *  fieldcatalog-do_sum      = 'X'.
    *  fieldcatalog-no_zero     = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PNAME'.
      fieldcatalog-seltext_m   = 'PO Item'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'INCLUDE'.
      fieldcatalog-seltext_m   = 'Status'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'FREEDATE'.
      fieldcatalog-seltext_m   = 'Item change date'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'APPL'.
      fieldcatalog-seltext_m   = 'Material Number'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MAND'.
      fieldcatalog-seltext_m   = 'PO quantity'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'FMODE'.
      fieldcatalog-seltext_m   = 'Order Unit'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'HOST'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-do_sum      = 'X'.        "Display column total
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'UTASK'.
      fieldcatalog-seltext_m   = 'Price Unit'.
      fieldcatalog-col_pos     = 8.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
    *       Build layout for ALV grid report
    *&      Form  DISPLAY_ALV_REPORT
    *       Display report using ALV grid
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
    *            i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
    *            i_callback_user_command = 'USER_COMMAND'
    *            i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
    *            it_special_groups       = gd_tabgroup
    *            IT_EVENTS                = GT_XEVENTS
                i_save                  = 'X'
    *            is_variant              = z_template
           tables
                t_outtab                = it_TFDIR
           exceptions
                program_error           = 1
                others                  = 2.
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
    *       Retrieve data form EKPO table and populate itab it_TFDIR
    form data_retrieval.
    select *
      from  TFDIR
      into table it_TFDIR  where  FUNCNAME  in s_FUN.
    endform.                    " DATA_RETRIEVAL
    reward  points if it is  usefull ..
    Girish

  • How do I actually print out the background fill in a table's rows?

    Hi guys and gals,
    I have been trying to figure out this one for a while now and need some help in diagnosing it. I have a table with alternating colour fill on so that the first row is shaded grey, the next not, the next grey ad infinitum. Now if I print the document to Preview as a PDF then the alternating colours appear. If I then print that PDF document to paper the rows print with the correct alternating fill. If however I try printing the Pages '09 document straight to paper the rows all print out with no fill colour
    I cannot seem to find an option anywhere to say "display but don't print the fill in this cell / row". Is there a setting in Pages? I have been through the Inspector thing with a fine-toothed comb but I'm obviously going blind. Or is this a quirk of my printer? If I print an image then it prints the colours ok with no scrimping to save ink. Again I cannot find a setting on the printer to disable the cell / row fill when actually committing a document to paper
    So in summary:
    Alternating fill produces stripey table on the screen
    Printing to PDF shows a stripey table and can be printed to paper with stripes
    Printing from Pages '09 to paper removes the stripes
    I'm on the very latest version of Lion and Pages '09. My printer is an HP PSC 2179 with up to date drivers etc
    Would love some help on this one and a virtual jeroboam of vodka to anyone who can resolve the issue
    Cheers,
    Andy

    Hi Andreas,
    I think you have nothing into SAP to find the structure of a cluster table.
    The way I use, is to find a standard program that use this cluster, and I look in the ABAP code the structure used by SAP.
    You just have to use the ST05, and use the option to see the code where the cluster has been readed.
    Rgd
    Frédéric

  • How to find out the position in which an application hangs

    Hi,
    is there any possibility to find out the position in a source, in which a deployed application hangs?
    For example, there is an endless loop in an application, which is already deployed. In runtime the application hangs in this loop. How can I findout in which line the application hangs?
    In other words, how can I see the stack of a certain process,for example, http_workerx?
    Regards,
    Ali
    Message was edited by:
            Ali Maraschi-Schouschtari

    Hi Ali,
    With <b>SAP NetWeaver Composition Environment (CE) 7.1 SP3</b> it is very easy.
    <i>1.) Open the SAP Management Console
    2.) Go to AS Java Threads tree node - you will see all the threads that are currently started on the system
    3.) Check for threads that are colored in red - it takes about 30 sec the system to detect that an HTTP thread (http_workerx), as it is in your case, is hanging/executing endless loop.
    4.) Right click on the hanging thread (colored in red) and pick 'Callstack' from the pop-up menu
    5.) In the new window you will see the stack-trace showing what exactly this hanging thread is doing at the moment.</i>
    With the <b>previous versions (or SPs)</b> you need to apply a little bit more technical skills for the same result. <i>(1) you need to do produce thread dump of the server that is suspected to have hanging thread</i> and (<i>2) to analyze this thread dump (check what the threads in Running state are doing).</i> As it is in your case with the HTTP worker threads, their names are also printed in the thread dump, so you can focus only on them.

Maybe you are looking for