SQL to discover objects used by

Hello
How can I find a list of objects that use an object? for example, Table temp_1 is used by p_test11 and F_test22 function procedure... Is it possible to find a list of these objects with their type?

These dictionary table, you can make a reference to.

SQL> select * from dictionary where table_name like '%DEPENDENCIES%'
  2  /

TABLE_NAME           COMMENTS
-------------------- ------------------------------------------------------------------------------------------
DBA_DEPENDENCIES     Dependencies to and from objects
USER_DEPENDENCIES    Dependencies to and from a users objects
ALL_DEPENDENCIES     Dependencies to and from objects accessible to the user
ALL_REFRESH_DEPENDEN Description of the detail tables that materialized views depend on for
CIES                 refresh

DBA_APPLY_VALUE_DEPE Synonym for _DBA_APPLY_CONSTRAINT_COLUMNS
NDENCIES

DBA_APPLY_OBJECT_DEP Synonym for _DBA_APPLY_OBJECT_CONSTRAINTS
ENDENCIES

TABLE_NAME           COMMENTS
-------------------- ------------------------------------------------------------------------------------------

6 rows selected.

Tags: Database

Similar Questions

  • What will happen to the SQL Query based object View (EmployeesVO)

    Schema used: HR

    1. I created a view through SQL Query view object object (Table Employees - EmployeesVO).
    2. Creates an entity of the Employees (EmployeesEO) table object.
    3. In the section EmployeesVO (View object) entity objects, I chose EmployeesEO (entity object).

    What will happen to the View SQL Query object based on (EmployeesVO) will it change to VO based on entities or still to be based query VO.

    It is there because you can still base your query based Vo EO according to Vo.

    After that you base your VO on EO you can now use 'Add the attribute of the entity' to base your attribute on the atrributes of EO. Or if you skilled enough you can manually change the XML to VO

  • problem with bind variables in the SQL query view object

    Hi all

    I use JDev 11.1.2.4.0.

    I have a problem with bind variables in the SQL query view object.

    This is my original SQL

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE t.nctuser_id = '20022' 
          AND to_char(t.insertdate,'YYYYMMDD') in ('20130930','20130929')
    group by t.legertype_id
    

    In my view .xml object query tab, I am writing this

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE   t.nctuser_id = '20022'
        AND to_char(t.insertdate,'YYYYMMDD') in :dddd
    group by t.legertype_id
    

    Davis here is a variable of Type liaison: String, updatable and necessary.

    I try to deal with Davis as ('20130930 ', ' 20130929') hoping the view object, run as my original SQL.

    But failed. The view object retrieves 0 line after that I run.

    Why?

    Thank you! ('2original SQL0130930', '20130929') ('20130930 ', ' 20130929')

    A variable binding cannot be used as this is why you must use years table. Check decompilation binary ADF: using oracle.jbo.domain.Array with ViewCriteria to see a solution.

    Timo

  • SQL server system objects

    Does anyone know how to hide the SQL Server system objects in the dialog of the command > > database items > > stored procedures. Using SQL Server Management Studio Express, it is possible to hide the view system objects, but they are not hidden in DW8.0.2. Similarly, in DW when clicking on a link in the Application > > Databses Panel, then click on view (on a db SQL Server) in addition to the views that I have created all the system objects are too visible.

    Thank you

    Revoke or deny EXECUTE permission on the stored procedures to the user
    connect you like in your connection string.
    For tables and views, revoke or deny the SELECT for the same authorization
    user.

    'cc dw8' wrote in message
    News:esk62m$6Cr$1@forums. Macromedia.com...
    > Is - anyone know how to hide the SQL Server system objects in the command
    > dialogue
    > Database items > Stored Procedures. Using SQL Server Management Studio
    > Express, it is possible to hide the objects view however system that they
    > are
    > not hidden in DW8.0.2. Similarly, in DW when clicking on a link in
    > the
    > Application > Databses Panel, then click on view (on a SQL Server db)
    > in
    > more opinions that I have created all the system objects are visible
    > too.
    >
    > Thank you
    >

  • Discover the use of tables.

    Hello

    I was invited to list all tables that a third-party application use when it executes a process. How would I know that?

    Thanks in advance.

    Hello..

    1 trace the session when the user of the application connects to the database with the application.

    2. get the sid of the user of the application and use the below command

    SQL > select owner, object, access type $ v where sid = xxx and the type = "TABLE";

    Anand

  • How to generate QML objects using javascript?

    Hello

    I'm trying to generate new labels whenever the information is changed. I am aware of generate and load XML. However, I am looking for a way alternative simple generate labels or other objects using javascript. How to do this?

    This page contains an example to create components dynamically:

    http://developer.BlackBerry.com/Cascades/reference/bb__cascades__qmlcomponentdefinition.html

  • I'm unable to take backup of database MS SQL clustered, while it uses in the live production server.

    Hi all

    I use my database cluster for my running app that sits on MS SQL.

    who uses many users both on the live production by many users at a time server.

    BUT I'm unable to perform an online backup of database and offline backup, I can't take as it uses on the live production server

    If anyone can help me for you even

    Thanking you

    Concerning

    Tarun Kaushik

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the Windows SQL Server Forums.

    http://social.technet.Microsoft.com/forums/en-us/category/SQLServer

  • Error (21,100): PL/SQL: ORA-00997: illegal use of the LONG data type

    CREATE or REPLACE (name in varchar2) procedure Compress_tab_partition
    is
    last_mnth_var varchar2 (8);
    curr_mnth_var varchar2 (8);
    number of last_mnth;
    number of curr_mnth;
    last_partition varchar2 (8);
    high_val varchar2 (4000);
    Start

    Select to_char (add_months (trunc (sysdate, 'MM'),-1), 'YYYYMM') | ' 00' in the double last_mnth_var;
    Select to_char (sysdate, 'YYYY') | TO_CHAR (sysdate, 'mm') | ' 00' in the double curr_mnth_var;
    Select to_number (last_mnth_var) in the double last_mnth;
    Select to_number (curr_mnth_var) in the double curr_mnth;

    Dbms_output.put_line ('Compression of GOLDMGR Table scores.' | table-name |) "to go". ») ;
    Dbms_output.put_line(' ');

    / * Step 1 - identify the name of the partition of the specified table must be compressed * /.
    Select high_value from high_val from user_tab_partitions where table_name = table-name;
    Select nom_partition into last_partition from user_tab_partitions where table_name = table-name and high_value = rtrim (high_val);

    / * Step 2 - Alter partition table to compress * /.

    run immediately "ALTER TABLE GOLDMGR." | table_name | ' CHANGE THE PARTITION '. last_partition | "COMPRESS by low query";

    / * Step 3 - Index rebuild step * /.

    I'm in (select index_name in user_indexes where table_name = table-name)
    loop
    run immediately "ALTER INDEX GOLDMGR." | i.index_name |' REBUILD ";
    end loop;

    Dbms_output.put_line (' COMPLETED: compress the Table partitions change.) ") ;

    end;
    /

    I'm getting an error like: Error (21,100): PL/SQL: ORA-00997: illegal use of the LONG data type

    Please resolve.

    HIGH_VALUE datatype is LONG. You may not use for a long TIME in WHERE clause expressions. You need to loop through the partitions by selecting HIGH_VALUE and then comparing. Secondly, there is no need to select double to calculate expressions. For example:

    Select to_char (add_months (trunc (sysdate, 'MM'),-1), 'YYYYMM') | ' 00' in the double last_mnth_var;

    should be replaced by

    last_mnth_var: = to_char (add_months (trunc (sysdate, 'MM'),-1), 'YYYYMM') | ' 00'.

    and there is no need to add_months here:

    last_mnth_var: = to_char (trunc (sysdate, 'MM') - 1, "YYYYMM"). ' 00'.

    But the main question is simply ALTER TABLE MODIFY PARTITION COMPRESS allows compression but does not compress. You must issue ALTER TABLE MOVE PARTITION COMPRESS:

    SQL > create table tbl (n) partition by range (n)
    2 (partition p1 values less than (maxvalue))
    3. Select lpad('X',4000,'X') from dual connect by level<=>
    4.

    Table created.

    SQL > select bytes
    2 from WHERE user_segments
    3 where nom_segment = 'TBL '.
    4 and nom_partition = 'P1 '.
    5.

    BYTES
    ----------
    830472192

    SQL > alter table tbl
    2. change the partition p1 compress
    3.

    Modified table.

    SQL > select bytes
    2 from WHERE user_segments
    3 where nom_segment = 'TBL '.
    4 and nom_partition = 'P1 '.
    5.

    BYTES
    ----------
    830472192

    SQL > alter table tbl
    2. move the partition p1 compress
    3.

    Modified table.

    SQL > select bytes
    2 from WHERE user_segments
    3 where nom_segment = 'TBL '.
    4 and nom_partition = 'P1 '.
    5.

    BYTES
    ----------
    8388608

    SQL >

    SY.

  • When a photo has for example a bright sky beside the dark object, using lights and shadows can cause a 'halo' or double edge to appear. How can I avoid this?

    When a photo for example has a bright sky next to the dark object, using lights and shadows to reduce high contrast can cause a 'halo' or double-edge to appear. How can I avoid this?

    From my experience, this isn't a problem that has a simple solution, such as moving a slider or a combination of the sliders in LR. It requires rather a major change in the technique, at the unit or in office. Some pros (I am not one) tire ALWAYS support HDR or this reason - better transition from highlights to shadows, then tweak the image with much less "heavy" necessary. Another popular technique is the luminosity masking and blending in PS. There is a ton of information on this topic (just do a search on Youtube), but it's not easy to learn or do, but it can eliminate this problem.

  • How can we display - hide or enable - disable the Captivate objects using javascript?

    How can one show - hide or enable - disable or change the color of the Captivate objects using javascript?

    All ideas, actually I want to avoid Advance Action assisted drop programming and want to do the actions of text encoding.

    You can show/hide and activate using the following syntax.

    CP. Show ("obj." + i)

    CP. Hide ("obj." + i)

    CP. Enable ("obj." + i)

    CP. Disable ("obj." + i)

  • Moving an object using the arrow keys

    I think I've changed the default distance to move an object using the arrow keys of 1 Point (1/72 inch). Can you help me change the default or tell me how to set the distance you can move an object such as a text field using the arrow keys. Thank you.

    It is based on your grid interval setting in the drawing AIDS palette. For a grid of 1 point, you would need apart 12/pc (although it says the points of the grid is picas, points 12-pica).

    I find 1 point too fine, I use a grid of 4/pc (3 points) and I have all my subject base around multiples of 3 measurements.

  • How to know the DB objects using the particular storage space

    Hi all

    I have a tablespace that is used by different database objects.
    I want to know what objects use this tablespace.
    How I know this?



    Thank you

    I have a tablespace that is used by different database objects.
    I want to know what objects use this tablespace.
    How I know this?

    Select nom_segment, nom_tablespace, segment_type, owner of dba_segments where nom_tablespace ='&TBS';

  • DBT instantiation of the object using constant variables

    Hello

    I use bdb 4.7.25 on freebsd 7.

    Here is my code snippet:

    -----

    Sub
    set ( const char * pData) {}
    ...
    TODO: Paths of unnecessary duplicates should be optimized.
    size_t dataLen = strlen (pData);
    char * dataBuffer = new char [dataLen + 1];
    strcpy (dataBuffer, pData);

    DBT key (& pKey, sizeof (unsigned long long)), given (dataBuffer, dataLen + 1);

    DbTxn * txnobj = NULL;
    env_.txn_begin (NULL, & txnobj, DB_TXN_NOSYNC);
    try {}
    DB [writeIndex]-> put (txnobj, & keys and data, 0);
    txnobj-> commit (DB_TXN_NOSYNC);
    } catch (...) {
    txnobj-> abort();
    }
    Remove dataBuffer;
    }
    -----

    Since then, the rest of my application, I use string c ++, I can get data as a const char *.

    And to put the data in BDB or tree B +, I'll need object Dbt, which accepts the char * only. So, I have to copy data unnecessarily and to free the memory allocated for each investment transaction.

    How we optimize it? How can we instantiate Dbt object using variables constant to use for the operation of investment on DB. "put" operation do not object of Dbt need to get the update, so it should there have supported the API for constant variables.

    I hope my question is clear and simple.

    You can do a 'const_cast(pData);"

    DB::put will not change your data in all cases. If you need to make sure that the block of pData memory is not accessible by other threads/processes during the Db::put operation.

    David

  • Pass Pl/sql table in the USING clause in the EXECUTE IMMEDIATE statement

    Getting error when I try to pass the PL/SQL table in the USING clause in the EXECUTE IMMEDIATE statement:

    Declare
    result NUMBER;
    TYPE values_tab IS TABLE OF NUMBER INDEX OF directory;
    lv_tab values_tab;
    lv_exp varchar2 (300);
    lv_exec varchar2 (300);
    BEGIN
    lv_tab (1): = 5;
    lv_tab (2): = 48;
    lv_tab (3): = 7;
    lv_tab (4): = 6;
    lv_exp: = ': + b1: b2 + (: b3 *: b4)';
    lv_exec: = 'SELECT'. lv_exp | ' THE DOUBLE '.

    IMMEDIATE EXECUTION
    lv_exec
    IN
    result
    USING
    lv_tab;
    DBMS_OUTPUT. Put_line (result);

    END;
    /

    Error on line 1
    ORA-06550: line 20, column 12:
    PLS-00457: expressions must be SQL types
    ORA-06550: line 15, column 8:
    PL/SQL: Statement ignored


    I am trying to evaluate the expression ': + b1: b2 + (: b3 *: b4) "which is stored in the table. This table has different expressions (expressions about 300). I want to use the bind variable in the expression because each expression evaluated thousands of time may be more in some cases. If I use bind variable can he fill pool.

    Is there a way I can pass parameters with the HELP of (IN) dynamically instead of write "help lv_tab (1), lv_tab (2), lv_tab (3), lv_tab (4)? As number of change of the input parameters depend on the expression in the table.

    If it is possible please suggest any other ideas/approaches

    Help, please...

    Published by: satnam on June 11, 2009 11:50

    Well, you keep changing faster reqs that I can follow. In any case, assuming that N-th variable bind (left to right) corresponds to n-th collection item:

    Declare
        result NUMBER;
        lv_tab values_tab := values_tab();
        lv_exp varchar2(300);
        lv_exec varchar2(300);
        lv_i number := 0;
    BEGIN
        lv_tab.extend(4);
        lv_tab(1) := 5;
        lv_tab(2) := 48;
        lv_tab(3) := 7;
        lv_tab(4) := 6;
        lv_exp := ':5000135+:5403456+(:5900111*:5200456)';
        lv_exec := lv_exp;
        While regexp_like(lv_exec,':\d+') loop
          lv_i := lv_i + 1;
          lv_exec := REGEXP_REPLACE(lv_exec,':\d+',':b(' || lv_i || ')',1,1);
        end loop;
        lv_exec := 'BEGIN :a := ' || lv_exec || '; END;';
    DBMS_OUTPUT.PUT_LINE(lv_exec);
    EXECUTE IMMEDIATE lv_exec USING OUT result,IN lv_tab;
    DBMS_OUTPUT.PUT_LINE(result);
    END;
    /
    BEGIN :a := :b(1)+:b(2)+(:b(3)*:b(4)); END;
    95
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    SY.

  • unnecessary SQL queries for ViewObject used in different tab

    In my application, I have a table A in the first tab and table B in the second tab.

    Sometimes when I work as a user with table B in the second tab, the ViewObjectA for table A is executed.

    Of course this ViewObjectA execution is absolutely useless, because I work in another tab and I don't don't even see table A.

    Unfortunately, the query takes a long time and it makes the application slower.

    Question: why the ADF runs the query for a table that is not visible and the user accesses not?

    Is it possible to prevent it?

    A note on the configuration that may be linked to the problem:

    The ViewObjectA has an implementation customized with debug messages (that's how I discovered the ViewObject is exectuted).

    Due to the limitation of the DB, I have configured my pool ApplicationModule instances of timeout after 120 idle seconds (because the DB does not like the many connections and long-term).

    I also found that after the expiry of the ApplicationModule, a new instance of ViewObjectA is created (Yes, it should according to the ViewObjectImpl API).

    It seems to me that the unnecessary ViewObjectA execution happens after this new creation of instance of ViewObjectA.

    Well, the execution of the query of a VO is part of the creation of a VO.

    You can try to adjust it for example, you add a where clause such as 1 = clause: bindVar' and init the bindVar to 0 so that the query is performed from the user interface (see JDeveloper: obstacle to the return of the games to outline on the loading of the page of VO using the binding variable |) JDev & amp; ADF Goodies).

    Or follow Andrejus Baranovskis Blog: Oracle ADF Tuning: prevent execution of SQL queries during the loading of the Page

    Timo

Maybe you are looking for

  • Can't get iCloud Keychain work after log you in and once again

    Hi I have a very frustrating experience - my AirDrop has stopped working and tried to fix one of the possible solutions is to disconnect from my iCloud on my Mac and iPhone. I did it, reconnected but when I tried to check my bunch of my iPhone, I cou

  • Re: L850 Satellite does not work

    I have a portable Satellite L850 and this morning after I turned it on, it is passed to 29/11/3013 and I can't do a thing on my laptop. Any help would be appreciated. Thanks in advance

  • G62 b10sw / CPU Upgrade

    Hello.I would like to know the list of supported CPUSI have HP g62 b10swChipset - Host Havendale/Clarkdale bridge Rev 02South Bridhe - HM55XF195EA - Numberf of the productCurrently, I - Intel Pentium P6100, 2.0 GHz - I want to upgrade CPUThanks a lot

  • Need new battery for Satellite A300-009

    I have a Satellite A300-009 and the battery is dead. I looked on ebay and there are lots of batterys for Satellite A300, but in the models list, there all models but my A300-009. Question is, can I just get any battery that says supports a different

  • I am new to streets &amp; trips

    Please help me!