How to find the tables that are used in a procedure

Hello
I need to write a SQL to find (user_source) procedures or triggers (from user_triggers), whose code contains the registerd tables in a table X.
In other words, I have a table X with files having a column containing tables. I want to write a SQL to obtain these (proc, package and triggers) container objects or use the tables inside
Can you help me?
Thank you!

Mark1970 wrote:
Hello
I need to write a SQL to find (user_source) procedures or triggers (from user_triggers), whose code contains the registerd tables in a table X.
In other words, I have a table X with files having a column containing tables. I want to write a SQL to obtain these (proc, package and triggers) container objects or use the tables inside
Can you help me?
Thank you!

I don't know if I understand your problem, but have you had a glance at the data dictionary views USER_DEPENDENCIES or ALL_DEPENDENCIES?

It has classified hard dependencies of objects.
If a table is used directly (not in dynamic SQL code in a string) in an object PL/SQL, the dependency is available in the stated points of view.

Tags: Database

Similar Questions

  • How to find the media that are listed under the heading "Current project" but is no longer used in the timeline?

    Good day everyone.

    Been working on a fun project for a while now and overtime, I added the audio, images and YouTube videos in my project that later, I decided not to use in the timeline panel.  These media (for example, a specific song or image) are always loaded when I load the project and are included in the assets of the project, of course.  The reason being, I never deleted from the project.

    Now, I probably have about 30 to 40 cases.  It is time to clean house and I want to know if there is a command or a way to get the first (ss12) to highlight, gold banner somehow let me know which media, well listed and loaded, is not used in the timeline panel.

    Any chance this feature exist?

    Best.

    Love_Green_Turtles

    For your consideration... Try on a new mini test project before using it on a project of 'true '...

    Open an active project

    Click on the Options tab of Control Panel

    In the Panel Options Select display

    Select in the List View view

    In list view all files that are in the current project and the timeline will have a green dot in the used column.

    If you delete a file from the timeline, the green dot next to the involved file will disappear.

    You should be able to go through the list of assets/open project view and clear all entries that do not have a green dot next to them.

    Another safety net to consider... make a copy of the 'real' project and try the above on the copy.

    Please let us know if we have targeted your question and if the works above for you.

    Thank you.

    RTA

  • How to check the table have are all views in oracle

    Hello
    How to check the table have are all views in oracle
    SELECT * FROM user_dependencies
    WHERE type='VIEW'
    AND referenced_type='TABLE'
    AND referenced_name ='Your_Table_Name' 
    

    You can use dba_dependencies to find views in the different schema.

  • When I opened my project and it is unable to locate the files. I find the files that are 'missing' and open the project.

    Hi im quite new for first pro and I'm having a problem when I opened my project and it is unable to locate the files. I find the files that are 'missing' and open the project. Everytime I open the project everything I see is all that media have these red, pink, blue, green, yellow lines, where pictures should be. And there is also the title of my pictures in the upper left corner. No one knows what it is and how I could fix this?

    [title published by mod]

    [Please do not double post, deleted the other]

    Right-click on the images in the project window: recharge or replace it.

  • Unable to find the models that are supposed to come with...

    Cannot find the models that are supposed to come with Dreamweaver.

    On this page: http://www.adobe.com/devnet/dreamweaver/articles/css_page_layout_basics.html
    It is said to "Dreamweaver makes it easy for you to build pages with CSS layouts by providing over 30 predefined page layouts that work in different browsers."

    Where are they? I have the CS3 and CS4 Design Premium. I'm trying to dig deeper in the CSS by using some of the tutorials. These models would be helpful. :)

    I think I found them. We find them by going to 'new document '. Sorry ' end that.

  • How to find the right server to use windowsmail to send and receive e-mails?

    How to find the right server to use windowsmail to send and receive e-mails?

    Who is your current e-mail server? (Which is after the @ in your address).
     
  • How to find the table in a schema, if I only have a particular column name

    Hi all

    Ideal if some1 could help me, I know not a column name and I need to find the table that actually holds this column paricular name I know.

    is it possible to find this particular table with SQL?

    Thank you
    Rahul

    Select the table TABLE_NAME from user_tab_columns where column_name = 'COLUMN_NAME '.

  • How to find the name that differ just a little

    Hi all

    I wonder if is a short distance to find the name that differ for 2/3 characters;

    Example, I have a table that contains 1 varchar2 column.

    Martello

    point

    Pistola

    cemmello

    Cammelli

    I need to write a query like:

    Select * from table where colum = point

    in the result set, I want to

    point

    cemmello

    Cammelli

    Thank you

    F.

    Hello francy77

    In fact, it is not possible. There is a SQL "soundex" function, which "returns a string containing the phonetic representation of the char . This function allows you to compare the words that are spelled differently, but sound as well in English. »

    Example: Smith could be written as "SMYTHE".

    Try this:

    SELECT first_name

    FROM (SELECT 'Smith' AS the name OF DOUBLE UNION ALL

    SELECT 'Sophie' AS the name OF THE DOUBLE)

    WHERE SOUNDEX (first_name) = SOUNDEX ('Smythe')

    ;

    You get two records...

    But if you have a specific logic, then you must create a function and he set what text - what you want text input.

    Is it useful or the solution for you?

  • Find the columns that are partitioned.

    Hello guys,.

    use views DBA_TAB_PARTITIONS, USER_TAB_PARTITIONS, ALL_TAB_PARTITIONS, we can find what are the partition names, number of rows in each partition etc. How we can find on the columns that are partitioned. I tried, but couldn't. help please.

    user_part_key_columns

  • How to remove the files that are most referenced in the catalogue

    Over the years, we have a number of files (raw files ~ 650) who withdrew from the catalog but not my hard drive. This happens mainly because I used the wrong combination. But now I am stuck how can I find and delete these files?

    Best strategy so far:

    -Use Synchronize folders to search for the missing files from the catalog

    -The re-importation of a keyword - deleteme.

    I'd really rather avoid this because I really don't want to take the risk of any chance to have these files. Any other ideas?

    See you soon

    Mark Levison

    Blog | Twitter | Office: (613) 862-2538

    In each of your folders in Lightroom, create a new folder and call it temp. In Lightroom, move the images that are located in the folders to temporary folders. Go to your finder and delete these images that were not moved to the temp folder. (ie. those that Lightroom was not aware of) Move images back in Lightroom, and then delete the temp folder.

    Personally, I'd go with import via synchronization of the top-level folder and then delete the images as you watch the "previous import" and get rid of all 650 photos at once. No necessary but useful keyword as a security measure.

  • SQL statement to select the tables that are updated today...

    Hi guys,.

    I need to find the names of all the tables that contain rows that are inserted/updated on a given time stamp...

    Below the statement gives me the list of all tables in the database...
    select t.table_name from all_tables t;
    All these tables in the database have a rowversion column which gives the date of update/insertion of a record. I need to write a select statement (probably dynamic) that will give me the names of the tables that contain the rowversion value 24/01/2013...


    Any help is appreciated...

    Napster says:
    Hi kitsoukou,

    Thanks for your reply...

    But when I run your select statement I get an error indicating that the table SYS. DBMS_XMLGEN does not exist.

    Probably something wrong in my environment?

    If I'm not mistaken there are DBMS_XMLGEN 9i.

    The source code is available under

    karthick% ls -lrt $ORACLE_HOME/rdbms/admin/dbmsxml.sql
    -rw-r--r--   1 oracle   dba         7977 Mar 23  2004 /home/oracle/product/10.2.0.5/rdbms/admin/dbmsxml.sql
    

    You can take this and run to install DBMS_XMLGEN.

  • How can I find the images that are not in the catalogue?

    I imported about 600 photos of a friend of Wakeboarding in Lightroom. I then analyzed quickly through them and remove those who were not good.

    I wanted to delete these photos in the album. However, in about 10 cases I accidentally their removed from the catalog, not from disk.

    All photos of the wakeboard are in the same folder; There are no other images in this folder.

    Is there a way to find out what images are in this folder, but are not in the Lightroom Catalog?

    Rotaluclac

    Probably the easiest way would be to reimport them in their folder (make sure that the box Import suspected duplicates is enabled).

    Those who imported will be reflected in import previous "collection." In the grid view, select all and press the delete key. Click the appropriate button on the box that appears.

    HAL

  • How to find the tablespace that has maxsize UNLIMITED?

    Oracle 9.2
    I'm looking for tablespaces that maxsize UNLIMITED in the dictionary dba_xxxx from view. I want to use SQL to find storage space is not UNLIMTED file. I can't find which table dictionary or what column to indicate what storage space isn't UNLIMITED file?

    Please throw some lights.
    Thank you
    S.

    See Note 468096.1 How to check the CanGrow data files the Maxsize unlimited value.
    Oracle limit the number of blocks in a file of data to approximately * 4 million blocks *, so you can run:
    Select file_name in dba_data_files where maxblocks = 4194302;

    HTH

    Enrique

    Published by: Enrique Orbegozo on October 13, 2008 12:10

  • Why filtering by "unused" shows the files that are used in the project?

    Above the list of clips, I choose 'unused '.  I thought that this would be a practical way to show me the files I can delete the library because they are not used.  The thing is, I select this option, I see it shows me files that are certainly in use on the timeline, then what's the point of this?  How can I show actually files that are not used and as long as I can safely remove?

    It shows the unused portions of clips. If you want to remove a clip that has any items used in a project, you're better activation of the clipping indicator used. Any clip with an orange bar has been used.

  • How to find the tables placed only on pages.

    Hi experts,

    I find all the tables in the document (no XML Indd file.) .indd There is only a certain number of tables. And a table in the master page also. Now I'm trying to get back only the tables except the master page. How can I got it?

    I used the following code. But it is not working properly.

    var myTables is app.activeDocument.stories.everyItem () .tables;.

    App.Select(mytables[0]);

    var myTableCount = myTables.length;

    Alert (myTableCount);

    for (var i = 0; i < myTableCount; i ++) {}

    var myTableObj = myTables [i];

    Alert (myTableObj.parent);

    Try

    {

    var myTableObj.parent.parentPage.name = XXX;

    If (xxx.match("^[0-9]+$"))

    {

    Alert ('table');

    myTableObj.label = 'table' +(i+1);

    }

    on the other

    {

    Alert ("Master Page table");

    }

    }

    catch (e)

    {

    Alert (e.message);

    }

    }

    Always throw catch loop...

    Can someone guide me...!

    Thank you and best regards,

    Vel.

    Hi Peter,.

    Finally, I close with the codes below. It make me fight a lot...

    var pagelen = app.activeDocument.pages.length;

    Alert (pagelen);

    for (var i = 0; i)<>

    {

    var pageitemlen = app.activeDocument.pages [i].pageItems.length;

    for (var j = 0; j)<>

    {

    v var = app.activeDocument.pages [i] .pageItems [j] .tables;

    Alert (v.Length);

    for (var x = 0; x)<>

    {

    App.Select (v [x]);                                                      Here, I can select.

    App.Selection [0] .label = "table" + count;

    Count ++;

    myTables.push (v [i]);

    }

    }

    }

    Peter, thank you very much for your time in Golden for my problem...

    With respect,

    Vel.

Maybe you are looking for

  • iTunes 12.3.3.17 and Overdrive Audiobook

    If something has changed between the version of iTunes used there one year and the current 12.3.3.17?  A little more than a year, I transferred several Overdrive audio book titles to my iTunes library.  It may have taken several tests but worked well

  • Remove password RT controller

    We have a number of PXI controllers we use a behavioral study.  They are connected to the host on a dedicated NIC 'private' (direct wire), then the host is the only computer with access to it.  Under the system, I have written a utility that can chan

  • The security for this page in SharePoint validation has expired.

    Dear support, I am using SharePoint Enterprise edition 2010 and work out a solution on visual studio 2010. Sometimes, I get the error: "this page security validation has expire."Click back in your web browser, refresh the page, andtry the operation a

  • Windows updates fails, get "Error 1327 Invalid Drive/M" error when trying to install updates by using the stand-alone packages.

    Original title: I deleted the files from automatic update and windows update keeps trying to install I've done an update for a long time on an old computer unused spare XP and Windows Update said that he had to update a large number of files, so I ha

  • DeskJet 895Cxi: software 895cxi

    I had this printer forever and he just continues to work.  I have Windows 7 and noticed a while back that I have more software on my computer with the printer.  I think it was a few years ago.  I want to talk about the software that aligns the cartri