Find views defined on tables

I am trying to create a prebuilt MV on a table.
but it some up with the error:
ORA-32334: cannot create prebuilt materialized view on a table already
referenced by a MV
Just wondering how to find the list of views defined on teh table.
I am using oracle 10g.
can someone hlep.
Cheers,

user1000979 wrote:
I am trying to create a prebuilt MV on a table.
but it some up with the error:
ORA-32334: cannot create prebuilt materialized view on a table already
referenced by a MV
Just wondering how to find the list of views defined on teh table.
I am using oracle 10g.
can someone hlep.
Cheers,Hi,
If they are on the same database,
For materialized view
select name, owner from dba_snapshots where
                          table_name ='<table_name>' and master_owner =<'owner of table>'For views
select name, owner, type from all_dependencies where
REFERENCED_TYPE ='TABLE' and REFERENCED_NAME ='<table_name>'
and REFERENCED_OWNER ='<owner of the table>' and type Like '%VIEW'Regards
Anurag

Similar Messages

  • Find views referencing certain tables

    Hi,
    I have a list of tables and I need to generate a list of views referencing these tables. Is there a way to do this?
    Thanks,
    Keith

    790890 wrote:
    Hi,
    I have a list of tables and I need to generate a list of views referencing these tables. Is there a way to do this?
    Thanks,
    Keith
    select OWNER, Name from dba_dependencies where type = 'VIEW' and REFERENCED_TYPE = 'TABLE' AND REFERENCED_NAME IN ('T1', 'T2', .., 'Tn');

  • Need to find total no fo  tables/index/m.views in my database

    Hello Everyone ;
    How can i find total no fo  tables/index/m.views in my database ?
    when i  google  i have seen  following  command ;
    SQL> Select count(1) from user_tables where table_name not like '%$%' /
      COUNT(1)
             but i dont understand  what  '%$%'  indicates ?
    Thanks all ;

    Hello Everyone ;
    How can i find total no fo  tables/index/m.views in my database ?
    when i  google  i have seen  following  command ;
    SQL> Select count(1) from user_tables where table_name not like '%$%' /
      COUNT(1)
             but i dont understand  what  '%$%'  indicates ?
    Thanks all ;
    consider to simply Read The Fine Manual YOURSELF!
    Oracle Database Search Results: like

  • Syntax error not defined as table or projection view  or database view

    All,
    I have to select a Maintenance View V_tcurr when I do Select statement I am getting SYNTAX ERROR stating its not defined as table or projection view  or database view in Abap dictionary.
    Can you give me a hint, how do I select maintenance View in the select statement ?
    Any help will be highly appreciated.
    Thanks

    data: lt_TCURR TYPE TABLE OF TCURR.
    data: lv_TCURR TYPE  TCURR.
    SELECT * INTO TABLE lt_tcurr
      FROM TCURR.
    TCURR just has some extra fields that are exlcuded in the Maint View.

  • To find out ISU related tables and views

    Hi all,
    i want to find out al the tables and views that are using in ISU.is there any way to find it out.help me...

    one of the IS-U members have shared his table link in the share point check this.
    http://www.esnips.com/doc/9bd50e96-ecae-4327-9b69-1effba953140/isu_tables

  • How to Define Internal Table in Smartform

    Hello,
    I have some problem on define Internal Table in Smartform
    I define a Temp_IT_Gen Type LBBIL_IT_GEN in Global Definiations
    but i find that it is not available for me to append data into it,
    the error message is Temp_IT_Gen is not a Internal Table - the Occurs n Specification is missing
    so how can i solve it?
    i want to use the internal table in the hold program.
    Thanks a lot in advance.

    Hi,
    First U define the Table type in 'TYPES' tab of Global Definitions and then assing that table type to Internal table in 'Global Data' tab.
    Eg:
    define the Table Type like below in TYPES tab.
    TYPES:BEGIN OF ty_TEMP.
            INCLUDE STRUCTURE XXXXXXX.
    TYPES:END OF ty_TEMP.
    TYPES: g_t_temp TYPE STANDARD TABLE OF ty_TEMP .
    Now, define the Internal table in Global Data tab like below:
    Variable Name    Type assignment    Associated Type
    G_T_ITEM_1       TYPE                    G_T_TEMP
    NOTE: whatever U define in Global Definitions can be used only in SMARTFORM, if u want to use it in Program U must define in Form Interface.
    Hope it helps!!
    Rgds,
    Pavan

  • [ADF Help] How to create a view for multiple tables

    Hi,
    I am using Jdeveloper 11G and ADF framework, and trying to create a view to update multiple tables.
    ex:
    Table A has these fields: ID, Name
    Table B has these fields: ID, Address
    A.ID and B.ID are primary keys.
    B.ID has FK relationship with A.ID
    (basically, these tables have one-to-one relation)
    I want to create a view object, which contains these fields: B.ID (or A.ID), A.Name, B.Address.
    So I can execute C,R,U,D for both tables.
    I create these tables in DB, and create entity objects for these tables.
    So there are 2 entity objects and 1 association.
    Then I create a view object based on B and add fields of A into the view:
    If the association is not a "Composition Association",
    when I run the model ("Oracle Business Component Browser") and try to insert new data, fields of A can't edit.
    If the association is a "Composition Association", and click the insert button, I will get
    "oracle.jbo.InvalidOwnerException: JBO-25030: Failed to find or invalidate owning entity"
    If I create a view object based on A and add filed of B into the view:
    When I run the model and try to insert new data, fields of B can't edit, no matter the association is or is not a composition association.
    So... how can I create a view for multiple tables correctly?
    Thanks for any advices!
    Here are some pictures about my problem, if there is any unclear point, please let me know.
    http://leonjava.blogspot.com/2009_10_01_archive.html
    (A is Prod, B is CpuSocket)
    Edited by: user8093176 on Oct 25, 2009 12:29 AM

    Hi Branislav,
    Thanks, but the result is same ....
    In the step 2 of creating view object, I can select entity objects to be added in to the view.
    If I select A first, and then select B (the "Source Usage" of B is A), then finishing the wizards.
    When I try to create a new record in the view, I can't edit any properties of B (those files are disabled).
    If I select B first, and then select A in crating view object, the result is similar ...
    Thanks for any further suggestion.
    Leon

  • Is it possible to join a view to a table

    Hi all,
    I need to create a datasource in R3, the basis of the datasource lies in sql statement. In the statement there are lots of "and" and "(+). Within the "and" statement there is also a filter.
    For example (the sql coding):
    where rs.docnumber = r.invoicenumber
    and ct.caracteristic = 'unspsc_number'
    and ekk.costcenter = cs.costcenter
    The first 2 lines can be solved with SE11, in here you can set your filter. But in SE11 you can not have an outer join in place.
    So, I tried SQ02, creating infosets but the problem with the infoset is that you are not able to set a filter.
    My question to you is:
    1. is there a solution to solve my problem (sql statement)
    2. can an outer join be set in SE11
    3. can a selection/filter set in SQ02
    4. is it possible in SQ02 to join a view (created in SE11) and join this to another table?
    mcteam

    James,
    datsources can be defined on tables, views and on function modules.
    In Views you can define which tables, which fields and wich selections but as far as I know you can't specify outer joins.
    The last option is to write a function module that returns you the data. See here in SDN lots of topics to that.
    Regards,
    Juergen

  • View dependent on table

    hello gurus
    i'm running oracle 8.1.7.4. . we can describe a view but I need to know how can we find out on which tables a view is based on and what 's it's definition
    Thanks

    Hi,
    >>I need to know how can we find out on which tables a view is based on
    In addition, you can also make use of the *_DEPENDENCIES data dictionary views in order to list informations about direct dependencies and dependency among some schema objects.
    e.g:
    LEGATTI@ORACLE10> create table t1 (id1 number);
    Table created.
    LEGATTI@ORACLE10> create table t2 (id2 number);
    Table created.
    LEGATTI@ORACLE10> create view my_view as select id1,id2 from t1,t2;
    View created.
    LEGATTI@ORACLE10> select * from user_dependencies where name='MY_VIEW';
    NAME        TYPE    REFERENCED_OWNER   REFERENCED_NAME   REFERENCED_TYPE
    MY_VIEW     VIEW    LEGATTI            T1                TABLE         
    MY_VIEW     VIEW    LEGATTI            T2                TABLE          Cheers
    Legatti

  • View on DB Table

    I want to create a view on DB Table eg CSKS. Can anyone show me how to do this or Show me where I can find information to create view on DB Table.
    Thanks.

    hi anil,
    In database theory, a view is a virtual or logical table composed of the result set of a query. Unlike ordinary tables (base tables) in a relational database, a view is not part of the physical schema: it is a dynamic, virtual table computed or collated from data in the database. Changing the data in a table alters the data shown in the view.
    The result of a view is stored in a permanent table whereas the result of a query is displayed in a temporary table.
    Views can provide advantages over tables;
    They can subset the data contained in a table
    They can join and simplify multiple tables into a single virtual table
    Views can act as aggregated tables, where aggregated data (sum, average etc.) are calculated and presented as part of the data
    Views can hide the complexity of data, for example a view could appear as Sales2000 or Sales2001, transparently partitioning the actual underlying table
    Views take very little space to store; only the definition is stored, not a copy of all the data they present
    Depending on the SQL engine used, views can provide extra security.
    Views can limit the exposure to which a table or tables are exposed to the outer world
    Just like functions (in programming) provide abstraction, views can be used to create abstraction. Also, just like functions, views can be nested, thus one view can aggregate data from other views. Without the use of views it would be much harder to normalise databases above second normal form. Views can make it easier to create lossless join decomposition.
    Rows available through a view are not sorted. A view is a relational table, and the relational model states that a table is a set of rows. Since sets are not sorted - per definition - the rows in a view are not ordered either. Therefore, an ORDER BY clause in the view definition is meaningless and the SQL standard (SQL:2003) does not allow this for the subselect in a CREATE VIEW statement.
    Read-only vs. updatable views
    Views can be read-only or updatable. If the database system is able to determine the reverse mapping from the view schema to the schema of the underlying base tables, then the view is updatable. INSERT, UPDATE, and DELETE operations can be performed on updatable views. Read-only views do not support such operations because the DBMS is not able to map the changes to the underlying base tables.
    Some systems support the definition of INSTEAD OF triggers on views. This technique allows the definition of logic that shall be executed instead of an insert, update, or delete operation on the views. Thus, data modifications on read-only views can be implemented. However, an INSTEAD OF trigger does not change the read-only or updatable property of the view itself.
    Advanced view features
    Various database management systems have extended the views from read-only subsets of data. The Oracle database introduced the concept of materialized views, which are pre-executed, non-virtual views commonly used in data warehousing. They are a static snapshot of the data and may include data from remote sources. The accuracy of a materialized view depends on the frequency or trigger mechanisms behind its updates. DB2 provides so-called materialized query tables (MQTs) for the same purpose. Microsoft SQL Server, introduced in the 2000 version, indexed views which only store a separate index from the table, but not the entire data.
    Equivalency:
    A view is equivalent to its source query. When queries are run against views, the query is modified. For example, if there exists a view named Accounts_view and the content is:
    accounts view:
    SELECT name,
           money_received,
           money_sent,
           (money_received - money_sent) AS balance,
           address,
      FROM table_customers c
      JOIN accounts_table a
        ON a.customerid = c.customer_id
    The application would simply run a simple query such as:
    Sample query
    SELECT name,
           balance
      FROM accounts_view
    The RDBMS then takes the simple query, replaces the equivalent view, then sends the following to the optimiser:
    Preprocessed query:
    SELECT name,
           balance
      FROM (SELECT name,
                   money_received,
                   money_sent,
                   (money_received - money_sent) AS balance,
                   address,
              FROM table_customers c JOIN accounts_table a
                   ON a.customerid = c.customer_id        )
    From this point on the optimizer takes the query, removes unnecessary complexity (i.e. it is not necessary to read the address, since the parent invocation does not make use of it) and then sends the query to the SQL engine for processing.
    thanks
    karthik
    reawrd me if usefull

  • List view of PDF Table of Contents missing

    In iBooks, PDF files can have two types of Table of Contents, thumbnail view and list view. My problem is some of my PDF files lack the list view of the table of contents.
    I'm under the impression that the list view TOC in iBooks is created from the bookmarks that exist in the PDF file before importing into iBooks. I've been successful in adding new subheadings in the TOC by modifying the bookmarks in the PDF file before installing to iBooks, so I'll be surprised if that's not the case.
    I have two files that have bookmarks in the original PDF file, but when I import into iBooks, there is no option for a list view of the TOC, only the thumbnail view. Can anyone offer any help as to why a PDF file with bookmarks won't show a list view TOC when imported into iBooks?
    While we're at it, when you tap on the TOC button in a PDF file in iBooks, it always takes me to the thumbnails view. I would prefer it default to the list view. Is there any way to do that?
    Thanks.

    There may be more user-friendly ways of doing this, but here's one way:
    Open Terminal (in the Utilities folder).
    Use "cd" to change directory to the folder you want to print
    eg cd /Users/myuser/Documents
    Use "ls" to list the contents to a file
    ls -al > filelist.txt
    You can then open the filelist.txt file from Finder in TextEdit and print it.
    Matt

  • MATERIALIZED view on two tables with Fast Refresh

    i Wanted to create MV on two tables with Fast refresh on commit.
    I followed below steps
    create materialized view log on t1 WITH PRIMARY KEY, rowid;
    create materialized view log on t2 WITH PRIMARY KEY, rowid;
    CREATE MATERIALIZED VIEW ETL_ENTITY_DIVISION_ASSO_MV
    REFRESH fast ON commit
    ENABLE QUERY REWRITE
    AS
    select A.ROWID B.ROWID,a.c1, DECODE(a.c1,'aaa','xxx','aaa') c2
    from t1 A
    join t2 b
    on AB.c1= CD.c2;
    i am getting below error.
    Error report:
    SQL Error: ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view
    12054. 00000 - "cannot set the ON COMMIT refresh attribute for the materialized view"
    *Cause:    The materialized view did not satisfy conditions for refresh at
    commit time.
    *Action:   Specify only valid options.
    Basically i want to take record in MV by joinig two tables and if both of the base tables will updated then record should reflect in materialised view.
    Please do the needfull.

    does the table support PCT? the other restrictions on joins look to be ok in your statement.
    maybe try creating first with on demand instead of commit to see does it create.
    http://docs.oracle.com/cd/B19306_01/server.102/b14223/basicmv.htm
    >
    Materialized Views Containing Only Joins
    Some materialized views contain only joins and no aggregates, such as in Example 8-4, where a materialized view is created that joins the sales table to the times and customers tables. The advantage of creating this type of materialized view is that expensive joins will be precalculated.
    Fast refresh for a materialized view containing only joins is possible after any type of DML to the base tables (direct-path or conventional INSERT, UPDATE, or DELETE).
    A materialized view containing only joins can be defined to be refreshed ON COMMIT or ON DEMAND. If it is ON COMMIT, the refresh is performed at commit time of the transaction that does DML on the materialized view's detail table.
    If you specify REFRESH FAST, Oracle performs further verification of the query definition to ensure that fast refresh can be performed if any of the detail tables change. These additional checks are:
    A materialized view log must be present for each detail table unless the table supports PCT. Also, when a materialized view log is required, the ROWID column must be present in each materialized view log.
    The rowids of all the detail tables must appear in the SELECT list of the materialized view query definition.
    If some of these restrictions are not met, you can create the materialized view as REFRESH FORCE to take advantage of fast refresh when it is possible. If one of the tables did not meet all of the criteria, but the other tables did, the materialized view would still be fast refreshable with respect to the other tables for which all the criteria are met.

  • How to find that from which table data is coming in datasource?

    Hi friends
    I want to find that from which tables data is coming into datasource 2LIS_04_P_COMP,2LIS_04_P_MATNR..
    I have searched in forums.. I also have checked in sap.help.. but I didnt get any tablename in field "Table of origin"..
    Please tell me how can I find that data is coming from which table into these datasources..
    I dont want name of the setup tables.. I want name of the original tables (in R/3)which has data..
    Regards
    Swati

    Hi......
    For  data source 2LIS_04_P_COMP............MCAFKO, MCAFPO, MCCOMP are the R3 communication structures...........
    Check these commonication Structure in SE11............I think u will get the required information........
    2LIS_04_P_MATNR is Material View from PP/PP-PI ..........check this..........
    http://help.sap.com/saphelp_nw70/helpdata/EN/88/7fc73c0c52085be10000000a114084/frameset.htm
    Check this each field in SE11....from there try to find out these fields belongs to which table..........as I hav explained u in another thread..........
    May be the extractor is using these fields from different tables.....
    Regards,
    Debjani........

  • H how to find  if the psa table is included in psa deletion process chain

    Hi all
    can anybody tell me .
    I have a psa table it's technical name is /BIC/B*
    h how to find  the  above psa table is included in psa deletion process chain or not
    please help me

    Hi
    Ope the PC in RSPC1 -->go to planning view of process chain
    in left side you will find different types of process types.
    under other BW process types folder -->you will find process type "Delete request from PSA"
    drag this into your process chain planning view and customize it based on your requirements.
    check the below article for step by step procedure
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02ba9e7-bb6f-2c10-09b4-e86b9fcbad41?QuickLink=index&overridelayout=true
    Regards,
    Venkatesh

  • Throwing error using view objects in Table

    Hi,
    I am making use of 2 different view objects to assign column values for table region.
    it is throwing me error that particular attribute is not defined.
    cann't we use two different view objects in table?
    - Mithun

    No, this is not possible. Table component is used for tabular representation of data derived from the contents of a single view instance. Also, you cannot have two tables in the same page with the same view instance unless this is read-only view.

Maybe you are looking for

  • Display Occupant Name in adjoining room

    Hi, Have a bit of a problem, I hope you can assist with. I have a report which displays occupants of a dorm. There is also a field that displays the adjoining room number - Is there a simple way to display the occupant name matching the value of the

  • BSP - BW Webtemplate Session destroy

    Hi, all I have a question. We use webtemplate by EP. webtemplate is called by BSP. Flow : EP -> BSP -> Web Template 1. EP SSO Method : User Mapping 2. BSP Session : Stateful Problem is.. In BSP page, p_page = '/sap/bw/BEx?sap-language=KO&bsplanguage=

  • Class files get smaller with new version of jdk

    Recently I installed jdk1.5.0_02 and after recompiling some of my files, I notices that class files compilied by this version seemed to be smaller that the class files produced by previous versions. I am just curious: why is this? And what part of th

  • Dsconfigad will not show configuration in terminal

    Using dsconfigad I have previously been able to bind to our local domain. All was good for a while. Then my logins started not finding the network servers. Now when I login using a local login and run sudo dsconfigad -show in terminal it looks at me

  • No "shared" category on left side!

    So I just updated my iTunes to 9.0.1 and I don't have the "Shared" category on the left column! The other laptop in the house (an older MacBook Pro) has it and it shows the library from my computer, but I can't see the library on the older MacBook Pr