How to find the dependency of a table

Hi All,
how to find all packages or procedure which are using specific table . is there any table where we can go and search .
i mean i have table called let say table_A and i want to find in which procedure or package this table will be using .
Thanks
Sree

Tables dont depend on packages/procedures.
However packages/procedures may use tables.
That said, if youre using TOAD, just press F4 on the table name and click on the used by tab.
S

Similar Messages

  • How to find the list of existing tables in a schema using DB link?

    Hi
    I know how to find the list of existing tables in a schema using the following query
    SQL> select * from tab;
    but, how to list the tables using a DB link?
    For Example
    SQL> select * from tab@dblink_name;
    why this doesn't work?
    Pl advice me
    Thanks
    Reddy.

    ORA-02019: connection description for remote database not foundHave you used this database link successfully for some other queries?
    The error posted seems to indicate that the DB Link is not functional at all. Has it worked for any other type of DML operation or is this the first time you ever tried to use the link?

  • How to find the column name and table name with a value

    Hi All
    How to find the column name and table name with "Value".
    For Example i have value named "Srikkanth" This value will be stored in one table and in one column i we dont know the table how to find the table name and column name
    Any help is highly appricatable
    Thanks & Regards
    Srikkanth.M

    2 solutions by Michaels (the latter is 11g upwards only)...
    michaels>  var val varchar2(5)
    michaels>  exec :val := 'as'
    PL/SQL procedure successfully completed.
    michaels>  select distinct substr (:val, 1, 11) "Searchword",
                    substr (table_name, 1, 14) "Table",
                    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
               from cols,
                    table
                       (xmlsequence
                           (dbms_xmlgen.getxmltype ('select ' || column_name
                                                    || ' from ' || table_name
                                                    || ' where upper('
                                                    || column_name
                                                    || ') like upper(''%' || :val
                                                    || '%'')'
                                                   ).extract ('ROWSET/ROW/*')
                       ) t
    --        where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
           order by "Table"or
    SQL> select table_name,
           column_name,
           :search_string search_string,
           result
      from cols,
           xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
           columns result varchar2(10) path '.'
    where table_name in ('EMP', 'DEPT')
    TABLE_NAME           COLUMN_NAME          SEARCH_STRING        RESULT   
    DEPT                 DNAME                ES                   RESEARCH 
    DEPT                 DNAME                ES                   SALES    
    EMP                  ENAME                ES                   JONES    
    EMP                  ENAME                ES                   JAMES    
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   PRESIDENT
    EMP                  JOB                  ES                   SALESMAN 
    9 rows selected.

  • How to find the deleted data in tables

    guys,
    how to find the deleted data in tables example: i want to see whether anyone deleted data in MB5B report tables like mbew, etc.,
    regards,

    Hi,
    MBEWH is actually the history table of MBEW. It will record all the changes. As I have told you earlier if you have deleted the record dirctly from the table then it will not come even in the table MBEWH
    That means no changes have been made.
    regards

  • How to find the Cross Dependencies of tables

    Hi,
        I have table in Database A, but that table is referencing in another database in the instance's SP,Views and Jobs.How to find the full dependencies of the table include cross database.
    I tried with below T-sql but no luck..
    --object that view depends on..Tables referenced in Below View---
    SELECT * FROM sys.sql_expression_dependencies
    WHERE referencing_id = OBJECT_ID(N'Table-Name');
    GO
    --objects depends on the view--
    SELECT * FROM sys.sql_expression_dependencies
    WHERE referenced_id = OBJECT_ID(N'Table-Name');
    GO
    pls guide me..I am planning to remove particular table but before i need to find all the dependencies on the table.

    see
    http://visakhm.blogspot.in/2010/01/finding-cross-server-cross-db-object.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to find the list of all tables populated

    How to find the list of tables populated in the implentation of a particular company. DD02L contains all the tables SAP having. But i want only which are configured for a particular company.
    Also how to find the list of reports used by all users in a particular company. TSTC contains all transactions. But i require only reports used by a particular company.

    Hi Mohamed
    You use Solution Manager to do the comparison for you.  There are some nice features that will highlight all your customised coding.  Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
    Rgards
    Carl.

  • How to find the size of a Table

    Dear all,
    How can i find the size of a table in a schema and size of the schema also.
    Thanks
    Mahi

    Try out with the help of this package, which will give out the total bytes, unused bytes, calculate the free bytes from total byes-unused bytes.
    dbms_space.unused_space(
    upper(oname),upper(tbname),upper('TABLE'),
    total_blocks, total_bytes,
    unused_blocks, unused_bytes,
    last_used_extent_file_id ,
    last_used_extent_block_id,
    last_used_block
    );

  • How to find the relation between that tables

    Hi,
      I have to get the data from different tables but I dont have any table relation ship. So If any body can help me to get that relation ship that will be very helpful for me.
    my tables are
    LFA1     
    LFB1
    LFC1
    RFSDO
    BSIK     
    Thanks
    Imran

    >
    SURINDER SINGH OBEROI wrote:
    > Hi,
    >
    > LFA1-LIFNR = LFB1-LIFNR = LFC1-LIFNR = BSIK- LIFNR
    > LFB1-BUKRS = LFC1-BUKRS = BSIK-BUKRS
    > LFC1-GJAHR = BSIK-GJAHR
    > LFC1-ERDAT = BSIK-AUGDT
    >
    > Cheers,
    > Surinder
    You think, you can fetch accurate data with the above mentioned linkages?
    Oh btw, the question i believe the question was How to find the relation....
    pk

  • How to find the dependency information for views?

    Hi All,
    There is reuirement where in we have to find the dependency information for all the tables which are used in particular view...along with remote database connections.. For this we have tried to use following query..
    Select * from user_dependencies
    start with name =’SAMPLE_VIEW’
    connect by prior trim(referenced_name)=trim(name);
    The view consists of three tables :
    Create view sample_view as
    select t1.col1,
    T2.col2,
    T3.col3,
    From
    Table1,
    Table2@prd1,
    Table3@prd2
    Where
    T1.col5=t2.col5
    And T1.col5=t3.col5;
    But the ouptut is :
    name     Type     Reference_name     Reference_type     Reference_link_name
    sample_view     View     Table1     Table     null
    So what will be the magic query which will give the all the tables in the view sample_view??
    Desired result:
    name     Type     Reference_name     Reference_type     Reference_link_name
    sample_view     View     Table1     Table     null
    sample_view     View     Table2     Table     prd1
    sample_view     View     Table3     Table     prd2
    Thanks all in Advance!!

    Thanks all for the help!!
    So right now, inorder to find the dependency informations for views there is no direct query :(
    As per the michaels post, i have developed some query ....just joining the table....which will give the source code of the object... :)
    The query is :
    select view_name,db_link,owner, substr(to_char(text),instr(to_char(text),'.',1,2),instr(to_char(db_link),'@')) as _Final_result_,
    substr(to_char(text),instr(to_char(text),'.',1,2),20),text from (
    select a.view_name,b.owner,a.db_link,dbms_metadata.get_ddl ('VIEW', a.view_name) text
    from (
    select view_name, db_link
      from (select view_name, dbms_metadata.get_ddl ('VIEW', view_name) text
              from user_views ),
           user_db_links
    where upper (text) like '%@' || nvl (substr (db_link, 1, instr (db_link, '.') - 1), db_link) || '%' ) A,
    all_views B
    where
    A.view_name=b.view_name
    and b.view_name='VW_TESTING') The sampe view is :
    create or replace view VW_TESTING
    as select A.F_DRUG_SKEY,B.F_DRUG_ID
    from dma_info.MORE_SOME_FTF_DRUG@info A,dms_prf.MORE_SOME_FTF_DRUG_FACTOR@info B
    where a.F_DRUG_ID=b.F_DRUG_ID and
    rownum<=5 The output of these query is :
    Final_result
    MORE_SOME_FTF_DRUG@info A,dms_prf.MORE_SOME_FTF_DRUG_FACTOR@info B where .F_DRUG_ID=b.F_DRUG_ID and rownum<=5 In short through source code, I am trying to find those object name which are preceding the "@' sign...please let me know if this can be workaround for finding the dependencies of objects in view... :(
    Thanks!!
    Edited by: user8915904 on Dec 28, 2009 11:22 PM

  • How to find the Transport request for table entry

    Hi ,
    There was certain entry made in the SAP std table and which got transported to subsequent system. I want to find the Transport Request Number which was containign that table entry and which gor transported.
    Please suggest how can I find that transport number.
    Thanks
    Saurabh

    Hi,
    Yes we can get , Basis team will help.
    B'coz i had same requirement my basis got the TR for me.
    Take their help.
    He said u can like this.
    SE11 - > Table Display - > Table Entry in Menu Bar - > Transport Entries.
    Rhea.

  • How to find the long/raw datatype tables

    HI ppl,
    I want to find out the long/raw datatype tables in Oracle database.
    Please provide the query..
    Plz help.
    Oracle version :10gr2
    platform:HP-UNIX

    Hi,
    is this is what you are looking for?
    SELECT
         TABLE_NAME,
          COLUMN_NAME,
          OWNER
    FROM
          DBA_TAB_COLUMNS
    WHERE
          DATA_TYPE IN('LONG','RAW')Regards

  • How to find the t-code for table (SM30 or SE16)

    Once I create a t-code though SE93. And I choose type: Transaction with parameters.  Then the Transaction is SM30, 
    But I forget the t-code, how do I find this t-code base on the table name.
    ep:

    Hi
    Use database table TSTCP and search for tcode with below selection criteria.
    Enter *tablename* in param filed and execute.
    Thanks

  • How to find the no of tmp table used in the db object

    Hi all,
    I have a big sp of 5K lines, which uses some 15 odd tmp tables in it. I would like to find how many and which are the tmp used by this stored procedure; with out looking line by line of code.
    Is it possible.
    Regards

    NeilCSE wrote:
    Hi all,
    I have a big sp of 5K lines, which uses some 15 odd tmp tables in it. I would like to find how many and which are the tmp used by this stored procedure; with out looking line by line of code.
    Is it possible.
    RegardsDefinitlly, if the code , is well written, they might have used some terminolgies while creating temporary tables (for ex TMP_tablename) Search for those tables in all_source view,
    SELECT TEXT from all_source where upper(text) like '%TMP_%'Hope this helps.
    Regards,
    Achyut

  • How to find the OWNER of a table with JDBC metaData?

    Hi,
    i write a dynamique dataBase gui for multiple dataBase (oracle, postgre..)
    I want to use JDBC meta data to configure the gui
    I can't find methode to optain a specifique table list for a owner...
    with getTablePrivileges I see the Grantor but not the owner (the grantor isn't always the owner)
    and I can't use schema because schema isn't supported by postgre
    some one can help me ?
    thanks a lot
    Christophe

    Yes of course but it is DataBase dependent...
    and I want to use different DataBase...And what sort of owner would you expect in a MS Access
    database?
    if they are only one user we work only whith one "schema owner" the data base is structured in this way
    but when multi user is possible we want to work with specifique relation beetwen different user ...
    we want to use users because more dataBase suppport multiple owner than multiple schema
    and generaly our information are divide in
    genereral and referential information ( explain of data and list of values etc ...)
    and the specifique data.
    And our GUI distingue the "META DATA" and the pure "DATA" and propose specifique properties to interact with those data
    i hope that my problem is better explain now .
    example we use
    resultSet = connection.getMetaData().getTables("","%","%",new String[]{"TABLE","VIEW"});
    to optain all the table and view
    resultSet = connection.getMetaData().getTablePrivileges(null,null,"tableName");
    to optain privileges for a table
    the trouble is that in specifique catatalog table like oracle we find a colomn whith the owner properites and when we use getTablePrivileges we can't see it idem for posgree
    Each privilige description has the following columns:
    TABLE_CAT String => table catalog (may be null)
    TABLE_SCHEM String => table schema (may be null)
    TABLE_NAME String => table name
    GRANTOR => grantor of access (may be null)
    GRANTEE String => grantee of access
    PRIVILEGE String => name of access
    IS_GRANTABLE String => "YES" if grantee is permitted to grant to others; "NO" if not; null if unknown
    has you see we have GRANTOR information but not OWNER information
    and the GRANTOR isn't allways the OWNER ...
    Christophe

  • How to find the sequence for a table.

    Hi Everyone,
    I've got plenty of sequences. How can I identify that what are the sequences acting on a table?
    Regards,
    BS2012.

    Greg.Spall wrote:
    In my last job, we used the table/column comments to point to the sequence.
    so:
    CREATE SEQUENCE seq_test1;
    CREATE TABLE my_table
    (id   number);
    COMMENT ON TABLE my_table IS 'Test table for demonstration purposes on OTN';
    COMMENT ON COLUMN my_table.id IS 'Primary Key, sequence populated: seq_test1';... or something like that :P
    But yeah, outside of that, good luck if you have no documentation!Of course, ALL of the 'code search' solutions put forth are assuming the references will be found in PL/SQL packages. That ignores the potential that the code could be located somewhere else, like application code that exists OUTSIDE of the database .... Bottom line is that there is no 100% one-size-fits-all method for automating the discovery of relationships between tables and sequences.

Maybe you are looking for

  • Got this error

    Please somebody help me,i´m a oracle jdeveloper beginner i got this error deploying my oracle application [Waiting for the domain to finish building...] [09:02:47 PM] Creating IntegratedWebLogicServer Domain... *** Using HTTP port 7101 *** *** Using

  • Editing Cell Column of a selected row in UI table element.

    Hi Experts, I have a UI Table Element with three columns. First two columns are input fields in read only mode. Third column is a text edit field. Now when I Select a row and press a button 'EDIT' i want that particular rows third column CELL alone t

  • Toshiba Satellite C855-SS530 touchpad issues: left-click randomly releases

    Brand new Toshiba Satellite C855-SS530 Windows 8. My touchpad will very often respond erratically. As I hold down on the left button and scroll, often times scroll will randomly release and then sometimes re-engage. This will happen with web pages, h

  • How do I keep programs from changing my home page

    Everytime Firefox starts, another program keeps changing my home page. How do I stop this from happening?

  • Can anybody help me? about Germany Payroll

    Hi Experts, I wanted to go through the following SAP Handbooks HR401 and HR701 in Germany Payroll for learning purpose only. How can I get  these two knowledge documents. I will greatly appreciate if anybody can send me the document HR401. Please ema