Getting list of base tables of view

Hi,
how to find the list of base tables of some partuicular view ?

Try this
SQL>desc user_dependencies
Name                                      Null?    Type
NAME                                      NOT NULL VARCHAR2(30)
TYPE                                               VARCHAR2(18)
REFERENCED_OWNER                                   VARCHAR2(30)
REFERENCED_NAME                                    VARCHAR2(64)
REFERENCED_TYPE                                    VARCHAR2(18)
REFERENCED_LINK_NAME                               VARCHAR2(128)
SCHEMAID                                           NUMBER
DEPENDENCY_TYPE                                    VARCHAR2(4)

Similar Messages

  • List the base tables of a view

    Hi All,
    I have a view but I do not have any information about the base tables and the query that was used to set up this view. Is there a way to atleast list the base tables on which the view was created!
    Thanks in advance!
    ~

    SQL> desc user_source
    Name Null?
    Type
    NAME
    ARCHAR2(30) - > Name of the View.
    TYPE
    ARCHAR2(12)
    LINE
    NUMBER
    VARCHAR2(4000) -> will give you the text to
    create the View.-----------------------------------------------------------------------------------------------------------------------
    For some reason the view I have is not listed in the NAME ..

  • Get list of accessible tables in schema

    I need get list of table which i have select rights.
    1. I try it throught select clausule from tables all_tab_privs and all_tables but it is possible that user has no access to this table. How can i get tables of accessible tables to actual logged user with using this system tables?
    2. I try it with full access to oracle system, but i had a lot of problems.
    E.g. : I created new table 'TEST'.
    When:
    SELECT * FROM all_tab_privs where table_name='TEST';
    No results.
    I don't understand. I thought that i should get row with owner etc. Maybe i make or think something wrong. Can somebody help me?
    Thanks.

    1. I try it throught select clausule from tables
    all_tab_privs and all_tables but it is possible that
    user has no access to this table. How can i get
    tables of accessible tables to actual logged user
    with using this system tables?ALL_TABLES for all tables which current user can access
    USER_TABLES for all tables which current user is owner
    To access to table into all_tables, perhaps have you need to prefix by username if you haven't synonym
    SQL> SELECT table_name, owner FROM all_tables ;
    RCVER                          RMAN
      1* select * from RCVER
    SQL> /
    select * from RCVER
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> ed
    Wrote file afiedt.buf
      1* select * from rman.RCVER
    SQL> /
    VERSION
    09.02.00
    1 row selected.
    SQL>
    SQL> >
    2. I try it with full access to oracle system, but i
    had a lot of problems.
    E.g. : I created new table 'TEST'.
    When:
    SELECT * FROM all_tab_privs where table_name='TEST';
    No results.
    Because your table has no right for other user
    S SQL> create table titi(n number);
    Table created.
    SQL> SELECT * FROM all_tab_privs where table_name = 'TITI';
    no rows selected
    SQL> grant select on titi to system;
    Grant succeeded.
    SQL> SELECT * FROM all_tab_privs where table_name = 'TITI';
    GRANTOR                        GRANTEE                        TABLE_SCHEMA                   TABLE_NAME        
    SCOTT                          SYSTEM                         SCOTT                          TITI              
    1 row selected.
    SQL> Nicolas.

  • Query to find the Base tables of views

    Hi,
    Can you pl let me know the query to find the base tables on which the view is based.I looked into views like ci_view_definitions but i could not find them.
    Thanks for your help
    thanx,
    Suji.

    select vw.name viewname, nvl( tabdef.name, vwdef.name) "based on"
    from   ci_view_definitions vw
    ,      i$sdd_vwtab
    ,      ci_view_definitions vwdef
    ,      ci_table_definitions tabdef
    where  view_ref = vw.id
    and    table_ref = tabdef.id (+)
    and    table_ref = vwdef.id (+)

  • How to list all user tables and views?

    like "select" command.
    Thanks.

    Hi,
    1)
    select table_name from user_tables union all select view_name from user_views;
    2)
    select distinct table_name from user_tab_columns;
    3)
    select object_name from user_objects where object_type in ('VIEW','TABLE');You should get very similar results with those queries.
    Query 2 will contains clusters.
    If you run query 3 against sys, you will get some very special objects, like the KOTAD$ table, which contains no user-visible column! You will also get the overflow segments of IOTs and nested table column's storage table.
    Kind regards
    Laurent

  • Derby Embedded get list of all tables

    I am writing a small program that uses derby embedded to store schedules for teachers. Each teacher will have their own table and I want to use the teacher name for the table name and allow the teacher to be selected from the combo box. I have an SQL statement i'd to have return all the current tables, but i think i am doing something wrong:
    public static String[] getTeacherNames() {
            String[] tableNames = null;
            String tableFind = "select APP.schemaname || '.' || Schedule.tablename"+
                                 "from sys.systables Schedule, sys.sysschemas APP"+
                                 "where Schedule.schemaid = APP.schemaid"+
                                      "and Schedule.tabletype = 'T'"+
                                 "order by APP.schemaname, Schedule.tablename";
            String protocol = "jdbc:derby:";
            String dB = "Schedule";
            Connection con;
            Statement stmt;
    try {
                    con = DriverManager.getConnection(protocol + dB +
                            ";create=true", "app", "app");
                    stmt = con.createStatement();                                   
                    ResultSet rs = stmt.executeQuery(tableFind);
                    ResultSetMetaData rsmd = rs.getMetaData();
                    int rowCount = 0;
                    while (rs.next()) {
                            tableNames[rowCount] = rs.getNString(rowCount);                      
                            rowCount++;
                    stmt.close();
                    con.close();
                } catch(SQLException ex) {
                        System.err.print("SQLException: ");
                        System.err.println(ex.getMessage());
                return tableNames;                
        }can anyone help, or have any better ideas? I modified the statement from the one i found on the derby Wiki.

    like this?
    String[] getNamesArray = {"%"};
            String[] tableNames[] = null;
            String protocol = "jdbc:derby:";
            String dB = "Schedule";
            Connection con;
            Statement stmt;
    try {
                    con = DriverManager.getConnection(protocol + dB +
                            ";create=true", "app", "app");
                    DatabaseMetaData dbmd = con.getMetaData();
                   tableNames = dbmd.getTables("%");                   
                    con.close();
         } catch(SQLException ex) {
                System.err.print("SQLException: ");
                System.err.println(ex.getMessage());
                return tableNames;                
        }the DatabaseMetaData will only except the names of tables I already know? I've been messing with it for a while and can't seem to get it to be happy with what I am giving it.

  • Convertion of Base tables to Material views while executing dbms_refreshes

    Hi all,
    I have a typical type of problem. We have a daily task of database activities like monitoring the space, refreshing Material views etc and currently using While doing refreshing the materialized views (using dbms.refresh) All master tables are become MV's in the database.This is a serious issue has to be solved asap.
    Also I find the materialized views got some data's in it. Now I want to get my master tables back to original.
    I have an idea to drop all the respective base tables, materialized view and recreate the same once again.
    But Is there any other alternate method there to get back my materialized views converted to base tables???
    Can someone help me how to do the same????
    Thanks in advance.
    Regards
    Dinesh

    While doing refreshing the materialized views (using dbms.refresh)
    All master tables are become MV's in the database?????
    So strange that I'd say that's not possible. How did you check that ? and which command did you execute exactly ?

  • Problem in Table maintenance view

    Hi all,
    i am getting some problem in table maintenance view.
    In my table i have some fields and when i created my table maintenance view , it is created , but when i try  to see it in SM30 its not showing my fields and even i am unable to create a  new entry. when i click
    new entries its going back to the sm30 screen..
    How to go abt it
    please help me

    Hello,
    Have you created the table maintanence view the right way.
    You can get good help from below link: [[http://www.****************/Tutorials/ABAP/TableMaintenance/demo.htm]]
    Also, please check the Delivery Class and Data Browser/Table View Maint. in the Delivery and Maintanence tab of the table.
    Thanks,
    Jayant
    Edited by: Jayant Sahu on Nov 24, 2008 3:00 PM

  • Base table

    Hi
    I am trying to create a view.
    Chosing a sap table fo ex: likp
    and a customized table activated  which is having a customized field with curr reference field as waerk of vbak (reference table).
    Now while i am activating the view i have an error : the customized table is not a base table
    please le tme know what is a base table and how can i successfully create my view .
    thanks in advance
    points will be awarded
    vgmnm

    Hi,
    Try to create a view on normal application tables , and dont include any customizable table as  base table in view creation. because those customizatable table can be maintained through SPRO only. So it wont allow you to include that in the view creation.
    Regards,
    Naveen

  • Where do i see all the default tables and views in oracle 10g

    hi,
    I have installed oracle 10g in the linux os.
    I just wanna see the list of deffault tables and views created by oracle.
    can anyoone hlep me on this
    thanx in advance....

    Check DBA_OBJECTS for all seeded objects in an Oracle database. For tables, check DBA_TABLES. For views, check DBA_VIEWS. All of this is documented in the fine documentation - take some time out to read thru it.
    http://docs.oracle.com/cd/E11882_01/server.112/e25513/statviews_4156.htm#REFRN23146
    http://docs.oracle.com/cd/E11882_01/server.112/e25513/statviews_5056.htm#sthref2482
    http://docs.oracle.com/cd/E11882_01/server.112/e25513/statviews_5085.htm#sthref2521
    HTH
    Srini

  • Which table or view in OEM repository contains a SOAcomposite instance info

    Hi All,
    Can anyone please tell me which table or view in OEM repository contains information about a SOA composite instance state in OEM 12c Cloud Control. Actually I want to create a report in Information Publisher displaying the SOA composite instance state information like, instance is running, faulted or completed. Can anyone provide any inpuits in how can I achieve this.
    Thanks in Advance!!
    Edited by: Roshni Shankar on Oct 16, 2012 12:49 AM

    Thanks for the information.
    Also can you tell me in which table or view OEM stores the error messages i-e- when a composite goes in faulted state then the generated error message gets collected in which table or view in management repository. Does it get collected in the same view which you mentioned earlier in this post???

  • Table or view not exists error from procedure - occurs randomly

    I have a procedure used in a website, it works fine until recently we occationaly getting an error said Table or View not exists, the error will go away if refresh the page which will re-execute the procedure.
    This procedure uses an table object as temp table and just a select statement form several tables. The table object is used in other procedures as well. I can't find out what cause this error because it's not always repeatable and the error message didn't give out the exact table that cause the error.
    Any idea what might cause this or how to trace the reason that cause the error?
    We don't have a good DBA here so really need some help, any advice are welcome.
    Cheers

    I don't think it's possible that any previlege changes are made or the tables in used in the procedure are droped because after we run our db scripts to build the db, then we testing the website which can only execute procedures, and no procedures execute DDL script to make such changes.
    It's worth to mention that we have a Table Type called EntityIDTable() which is used in many of our other procedures, but I think table type is initialise as local variable in each procedure so shouldn't conflict to each other, am I right? Also, the same script are running several times a day to generate same db but with different schema names so we can test on different site templates. One change script did drop one of the table and recreate it, but it use the &DB_Schema_Name.Tablename to drop a table so shouldn't affect the table in other schema I think. (I enclosed the procedure below)
    Also, any event log in Oracle I can enabled and trace the problem to find out what table is not exists at that point that this problem occurs?
    Cheers
    Below is the sample code of the procedure:
    aEntityIDSet varchar2,
    aCount out int
    as
    L_KeyID Category.CategoryID%type:=null;
    l_strEntityIDSet varchar2(255);
    l_strPipeSepValsInput varchar2(255);
    l_UserEntityID varchar2(255);
    l_EndPointInput int;
    l_Strlength integer;
    l_UserKey NUMBER;
    l_UserOriginalKey NUMBER;
    l_RREntityData ENTITYIDTABLE:= ENTITYIDTABLE(); /*creating on object from a table type to store entity values in*/
    -- end of Local variables used for Category Security
    begin
    -- Category Security
    -- Split up the EntityIDSet
    l_strEntityIDSet:= aEntityIDSet;
    l_strPipeSepValsInput:= l_strEntityIDSet || '|';
    l_EndPointInput:= instr(l_strPipeSepValsInput,'|',1,1);
    l_UserEntityID:= SUBSTR(l_strPipeSepValsInput, 1, l_EndPointInput - 1);
    l_UserKey:= To_Number(l_UserEntityID);
    l_UserOriginalKey:=l_UserKey;
    l_strPipeSepValsInput:= SUBSTR(l_strPipeSepValsInput,l_EndPointInput+1);
    l_Strlength:=LENGTH(l_strPipeSepValsInput);
    While ( l_Strlength > 0) loop
    <<get_entityId>>
    l_EndPointInput:= instr(l_strPipeSepValsInput,'|',1,1);
    l_UserEntityID:= SUBSTR(l_strPipeSepValsInput, 1, l_EndPointInput - 1);
    l_UserKey:= To_Number(l_UserEntityID);
    l_RREntityData.extend;
    l_RREntityData(l_RREntityData.COUNT):= Entityidtype(l_UserKey);
    l_strPipeSepValsInput:= SUBSTR(l_strPipeSepValsInput,l_EndPointInput+1);
    l_Strlength:=LENGTH(l_strPipeSepValsInput);
    end loop get_entityId;
    -- the block above used in many other procedures to get the entityID
    select Count(Distinct ri.ID) into aCount From
    -- here joint to other 6 tables
    -- the inner join below use the ENTITYIDTABLE
    inner join
    (SELECT distinct KC.KnowledgeGeneID FROM Category Cat
         inner join KnowledgeGeneCategory KC on KC.CategoryID=Cat.CategoryID
         where EXISTS (SELECT EntityID FROM TABLE(cast (l_RREntityData as ENTITYIDTABLE)) ET
         INNER JOIN (SELECT EntityID, EntityTypeID, CategoryID FROM CategoryRowLevelSecurity CRLS
         WHERE CRLS.EntityTypeID=1) S ON ET.USERENTITYKEY=S.EntityID
         where S.CategoryID=Cat.CategoryID
         UNION
    SELECT EntityID FROM CategoryRowLevelSecurity CRLS
         WHERE EntityID=l_UserOriginalKey
         AND EntityTypeID=0
         AND CRLS.CategoryID=Cat.CategoryID)
         OR NOT EXISTS (SELECT CategoryID FROM CategoryRowLevelSecurity CRLS
         WHERE CRLS.CategoryID=Cat.CategoryID)
    ) CS ON CS.KnowledgeGeneID = k.KGID
    where ri.ProcessID = riPro.ProcessID)
    end QueryNotifications;

  • List of Configuration Tables

    Hi,
    How is possible to get a complete list of all Configuration tables across all modules?
    Regards,

    Hello,
    Go to SE11 and search in table DD02VV. You get list of all tables in SAP. You can sort and search by T,S etc.....
    Hope this helps
    Rgds
    Rajendra
    Pls assign points if useful

  • ORA-01776: cannot modify more than one base table through a join view

    I have created EO based on a database view than consists of two tables, and only one is updateable.
    When I try to update a row using EO, I got a following message: "ORA-01776-cannot modify more than one base table through a join view"
    In Forms, this issue is resolved by setting "Query Only" property of non-updateable items to "True".
    Is it possible to do something like that in ADF BC?
    Thanks

    Thanks for answer.
    When I set "updateable" property to "Never", that attribute is protected from any change.
    I'm sorry for incomplete usecase.
    I have set up a list of value on that attribute, because it is a lookup field for another table and I need to get an ID from that table.
    Basically, I need that attribute to be updateble for BC, but not for database.
    Edited by: MarioK on Oct 13, 2011 9:28 AM

  • Inline list of values from APEX views/tables

    Hi All,
    What table/view should I refer to get all the inline list of values from form on a table or view not reports (tabular forms). I want data similar to the one obtained for tabular form reports using APEX_APPLICATION_PAGE_RPT_COLSAppreciate your reply.
    Thanks and Regards,
    -Senthil

    I think the sun caught meVery little chance of me being similarly afflicted. Typical Scottish summer.. {noformat};-){noformat}

Maybe you are looking for

  • Identifying follow up creation in CIC

    Hi all. In reference to this issue: Another question about CRM_ORDERADM_H_BADI Is there more definitive way to identify a follow up task - creation (when using BADI CRM_ORDER_H_BADI)? At the moment I'm using the statment: IF sy-ucomm = '1OMAIN_FOLLOW

  • Registering iLife '80 on Apple web site

    I'm trying to register iLife '08 Family Pack on the Apple web site. During the last step is required the code of the product... while in iWork '08 there is a card in the package with the serial number, for iLife I didn't find any serial. I tryied to

  • PO History qty invisible

    DEar All, For the past  4 months it is been observed that for all service POs after creating service entry sheet and after GRN PO history gets updated without qty. When i check last decemeber month POs in ME23N PO History sytem is showing document nu

  • Where do I go to install my new Creative Cloud apps?

    Click the Apps tab in the Creative Cloud desktop app. (Apps most recently installed on your computer will be displayed at top, which may include CS6 apps.) Scroll down to the "Find new apps" section to find new CC apps and click Install. You can also

  • Nomad Jukebox Zen Xtra not recognized by FW updater

    Hi, after searching for similar problems on this forum i decided to ask directly. The box were i plug the NJBZXtra has XP SP3 and WMP 0. It has also the latest drivers for the MTP. WMP sees only 20 megs of the 30Gigs the Zen has and the FW updater (t