Differences between view and materialized view

Hello,
Please tell me the Differences between view and materialized view in oracle 9i.
Thanks and regards
Madhuri

How can I create index in a view?
Please read reply of Justin Sir.
Regards
Girish Sharma

Similar Messages

  • Performance difference between tables and materialized views

    hi ,
    I created a materialized view on a query that involves partition table in it.
    When i used the same query and created a table out of it <create table xyz as select * from (the query)> ,the table got created quickly.
    So does that mean performance wise creating table is faster than creating/refreshing the materialized view ?or is that due to the refresh method i use ?Currently i use a complete refresh

    I created a materialized view on a query that involves partition table in it.
    When i used the same query and created a table out of it <create table xyz as select * from (the query)> ,the table got created quickly.
    So does that mean performance wise creating table is faster than creating/refreshing the materialized view ?or is that due to the refresh method i use ?Currently i use a complete refresh Well, for starters, if you created the materialized view first and then the standard table, the data for the second one has already been fetched recently and so will reduce your I/O due to caching, and will therefore be quicker. There are also other factors such as the materialized view creating other internal bits that are required to allow for refreshes to be done quickly, such as the primary key etc which you haven't created on your second creation.
    What you have shown is that two completely different statements running at different times, appear to operate with different speed. It is not a comparison of whether the materialized view is slower or quicker than the create table statement.

  • What is the difference between view and materialized views

    Hi
    What is the difference between view and materialized view ? can we update the base table using views

    can we update the base table using viewsYes:
    VIEWS
    1. an updatable view is one that lets you perform DML on the underlying table
    (see Oracle Database Concepts 10g - 5 Schema Objects)
    2. non-updatable view requires INSTEAD OF Triggers
    (see Oracle Database Concepts 10g - 22 Triggers)
    SNAPSHOTS
    You can have updateable (and writeable) snapshots - in updateable (writeable) MV replication.
    Oracle uses snapshots (Materialized Views - MV) for two different purposes:
    1. replication
    2. automated Query Rewrite facility (first introduced in Oracle Discoverer, later included in Oracle database 8i).
    Replication types in Oracle are:
    a) Basic replication (MV replication)
    - transaction based
    - row-level
    - asynchronous from master table to MV (Materialized View)
    - DML replication only
    - database 7 / 8.0 / 8i / 9i / 10g
    - Standard and Enterprise Edition
    1. Read-only MV replication
    2. Updateable MV replication:
    2.1 asynchronous from MV to master
    2.2 synchronous from MV to master
    3. Writeable MV replication
    b) Multimaster replication
    - transaction based
    - row-level or procedural
    - asynchronous or synchronous
    - DML and DDL replication
    - database 7 / 8.0 / 8i / 9i / 10g
    - Enterprise Edition only
    1. row-level asynchronous replication
    2. row-level synchronous replication
    3. procedural asynchronous replication
    4. procedural synchronous replication
    c) Streams replication
    - (redo) log based
    - row-level
    - asynchronous
    - DML and DDL replication
    - database 9i / 10g (10g has Down Streams Capture)
    - Enterprise Edition only (Standard Edition 10g can execute Apply process)
    Regards,
    Zlatko Sirotic

  • MATERIALIZED VIEW and MATERIALIZED VIEW LOG

    Hello,
    I have the following table
    create table My_price
    (price_id number(10),
    product_id number(10),
    price_date date,
    price_value number(10,2));
    I want to create the following materialized view
    create materialized view Last_Price_Date
    refresh
    on commit complete
    as
    select max(price_date) as max_date, product_id from my_price group by product_id;
    Do I have to create materialized view log ? Will my materialized view be refresh on commit without materialized view log ?

    As a student the requisite first task is always to study. Thus your assignment is to go to http://tahiti.oracle.com and read the concept and architecture docs on Materialized Views so that you can learn about the different types of MVs and how and when they are refreshed. There you will learn about what ON COMMIT means.
    Then please turn your "I want to create" into an "I created it." Then, having read the docs, you will be able to observe how your MV behaves.
    PS: Your SELECT statement is not syntactically correct. Start by fixing it so that it works in SQL*Plus.

  • Difference between user_sy_privs and session_privs views

    Hi,
    could you tell me exactly if the difference between the user_sy_privs view and the session_privs view is this one
    -the user_sy_privs shows the system privileges the current user is really using during its session
    -the session_privs view shows the system privileges the current user can use during its session(he does not use them obligatory)
    Thanks a lot for your answer
    Regards
    Nathalie

    "USER_SYS_PRIVS lists *system* privileges granted to the current user."
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_4459.htm#sthref2365
    "SESSION_PRIVS lists the privileges that are currently available to the user."
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_4238.htm#sthref2060
    SQL> select * from user_sys_privs
      2  /
    USERNAME                       PRIVILEGE                                ADM
    HOEK                           UNLIMITED TABLESPACE                     NO
    1 row selected.
    SQL> select * from session_privs
      2  /
    PRIVILEGE
    ALTER SYSTEM
    AUDIT SYSTEM
    CREATE SESSION
    ALTER SESSION
    [snip]
    READ ANY FILE GROUP
    CHANGE NOTIFICATION
    CREATE EXTERNAL JOB
    161 rows selected.
    this reply was made possible by using:
    http://www.oracle.com/pls/db102/homepage
    http://www.oracle.com/pls/db112/homepage
    and free downloading and installing of:
    http://www.oracle.com/technetwork/database/express-edition/overview/index.html

  • Creation of Materialized view and Materialized view log.

    I wanted to create materialized view with 'REFRESH FAST ON COMMIT' option.
    1) Table1 --it is partitioned range + list -- Added primary key
    2) view1   -- having primary keys on view's base table
    Steps:
    1) create materialized view log on Table1 ; -- default primary key
    2) create materialized view log on view1.  --- It is giving below error.
    ORA-00942: table or view does not exist
    i wanted to create Materialized view like below
    create materialized view
    REFRESH fast ON commit
    as
    select ...
    ... from table1
    where c1 in (select c1 from view1 where ... );
    Question:
    1) As i am getting above error while creating MV log on view. Can we create MV log on view or we have to create MV log on view base table?
    2) To create MV with ''REFRESH FAST ON COMMIT' option , do we need to have primary key on master tables? 
    Any pointers on this will really helpful.
    Thanks
    Prasad

    Also created MV LOG on 3 tables and tried with joins ..
    create materialized view
    REFRESH fast ON commit
    as
    select ...
    ... from table1 , tab2 t2,tab3 t3
    where ....
    and ...
    Get same error ORA-12052: cannot fast refresh materialized view AVSYS.EVENT_LOG_MV
    2052. 00000 -  "cannot fast refresh materialized view %s.%s"
    *Cause:    Either ROWIDs of certain tables were missing in the definition or
               the inner table of an outer join did not have UNIQUE constraints on
               join columns.
    *Action:   Specify the FORCE or COMPLETE option. If this error is got
               during creation, the materialized view definition may have be
               changed. Refer to the documentation on materialized views.

  • Query on Materialized view and materialized view log

    I am creating a materialized view something like this.but getting following error:
    ERROR at line 1:
    ORA-12032: cannot use rowid column from materialized view log on "SCOTT"."EMP"
    SQL> create snapshot log on scott.emp;
    Materialized view log created.
    SQL> create materialized view scott_emp refresh fast on demand as select deptno,sum(sal) sum_sal from scott.emp group by deptno;
    ERROR at line 1:
    ORA-12032: cannot use rowid column from materialized view log on "SCOTT"."EMP"
    Note when i have my query in materialized view as "select * from emp;" in place of
    "select deptno,sum(sal) sum_sal from scott.emp group by deptno;" This code works fine.
    How do i have a materialized with with a group by clause.
    Thanks in Advance

    Got the answer myself.
    I wasnt adding all the required columns.
    CREATE MATERIALIZED VIEW LOG ON scott.emp
    WITH SEQUENCE, ROWID (<all the required columns>)
    INCLUDING NEW VALUES;
    Anyways,
    Thanks guys...

  • Differences between iOS and computer views  of a course?

    So this year not all of my students will have iPads so anything in my course has to be accessable via a computer/itunes connection. I have created my course, completed the profile, written my outline and started adding "materials" and posts. The course has been published and shows up under our school.
    Any .pdf's I add to documents/materials or post as an assignment show up on both the ios devices and computers/itunes/itunesu.
    Any .jpgs I add to materials/images or post as an assignment show up on the ios device but show as "ios only" on the computer/itunes/itunes u view.
    When I  "Add Post" then add to the "Message" field, it is pushed to  the ios devices and shows up as a message, it shows up under the course on the ios devices but never shows up on the computer/itunes feed.
    Is there a list of what you can put into your course that will show up on both ios devices and computer/itunes connections?  Will .mp3's, .mp4's work? or will they do the same as .jpg's?  

    Hi,
    I just posted a response to another question regarding iTunes U on a PC or Mac. Although it doesn't completely answer your question, this part of the response from Course Manager Support does address it:
    If you were to make a publicly available Collection on iTunes U, students could download or view many course materials such as lectures and podcasts. But to maximize the full functionality of a course, such as subscribing, reading posts, and viewing assignments, the iTunes U app on an iOS device is currently a requirement.
    It may be worth it to ask support to see if there is a more comprehensive list of the differences. Please post what you find out here.
    Thanks,
    Ken

  • Is there any difference between 10g and 11g M Views?

    Hi,
    I need to give a demo on and working examples of materialized views. The requirement is this: Master tables are in a 10g R2 DB, MV is in a 11g.
    I just create a DB Link in 11g to point to the 10g DB and then create the MV in 11g.
    Will there be any problems creating a 11g MV using 10 Master tables?
    My question is are there any significant differences between 10g and 11g MViews??
    Thanks & Regards,
    Channa.

    You have to be careful about your versions. 10g could be 10.1 or 10.2 11g could be 11.1 or 11.2
    I wouldn't have an 11.2 database with a database link against a 10.1 database.
    In fact, even with 10.2, I would try to ensure that I have a "high patchset" (10.2.0.4 or 10.2.0.5) although, in theory, 10.2.0.1 should also work.
    See Oracle Support article
    Client / Server / Interoperability Support Between Different Oracle Versions [ID 207303.1]
    Hemant K Chitale

  • What is the main difference between view and materialize view and advantage of Mview   ??

    What is the main difference between view and materialize view and advantage of Mview   ??

    1.A view uses a query to pull data from its associated tables.
    2.Views do not have data's physically stored in the Database.
    3.Views Get the Data from 2 or more tables and displays as a single block.
    4.But a materialized view is a table on disk is a result set of a query done.
    5.A Materialized view can have data's in the database.
    6.Materialized view are used for Boosting the Performance.
    7.And the important one is Materialized views are updated based on the parameters defined when they are created.
    8.By using triggers we can update the data in a materialized view.
    9.When you call a materialized view it will show the data when it was last updated.
    Hope it helps.

  • Difference Between G/L View and Entry View in New G/L Accounting

    Hi,
    Can anyone tell me the difference between the G/L View and Entry View in New G/L Accounting as we are upgrading from 4.7 to 6.0.

    Hi,
    Entry view is the view to show how you have done data entry while posting a transaction and general ledger View is the document splitting view, where system will show you the split posting which system creates on its own.
    Example given by Alex above is general ledger View, ie: how system would split the line items based on base item categories.
    Regards,
    SAPFICO

  • What is the difference between 'workbookk' and ' view'?

    Hi all,
    What is the difference between 'workbook' and 'view'. I check some document but I don't see there is big difference.
    Thanks.
    J.

    hi John,
    We use workbooks for excel formating,like font changes, lay out changes etc...
    Workbooks into which queries are inserted are no different in appearance than other Excel workbooks.
    They can be saved as files, copied, sent and (using Excel functions) edited however you like and even supplemented with other data.
    Views are primarily used for BW Web Reports, it is similar to the concept of workbooks is for BEx.A local view can be accessed only within a workbook in which it was saved, where as a global view can be accessed globally in the system, it is not attached to a workbook. Only Global view can be used in BW Web Templates.
    u can seee the help doc for more details:
    http://help.sap.com/saphelp_nw04s/helpdata/en/0d/af12403dbedd5fe10000000a155106/content.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/3a/89883989676778e10000000a11402f/content.htm
    bye
    sham'm

  • Differences Between Entry View and GL View - Doc. Splitting

    Hello Experts,
    I need some help about an issue occuring in our Client right now, differences in Entry view and GL View. Any help will be appreciated.
    - Debit or Credit Balance posting of an account does not match with the balance posted in GL View, generally the GL view posts an amount above of the Entry view, and then it cause the Debit/Credit balance does not match with the movement in Entry View. Example Below from Quality System:
    Debit Balance in January 2013: 319.794.641,38
    Movement from FAGLL03 - OK.
    Movement from FBL3N - Entry View Difference: 319.794.619,86 - 319.794,641,38 = 21,52 Debit
    Checking NEW-GL Movement, we found the posting difference:
    The Document Entry View: 5.465,22 Credit From Bank Account
    The GL View - SAP Credited 5.486,74 Bank Account PC 1411 and Cr Bank Account PC 1444.
    Total:  -5.486,74 + 21,52 = 5.465,22 OK on Balance, but not OK from movement considering the Entry view.
    - Questions:
    - I understood the calculations, it was calculated as mentioned in note 1072850_Field overflow or very large amounts due to doc splitting
    - Is this supposed to happen by SAP Doc.Splitting perspective?
    - I am facing this issue because we need to send to the government account balances and their movements, and according to laws we need to pay additional amount for addtional lines generated, so it was better to send the information based in Entry View, not in GL View.
    - FS10N Show warning message "New general Ledger Implemented, use FAGLB03", and when i execute the transaction the balance showed was the balance from FAGLB03.
    - SAP 605 APPL.
    Regards,
    Leandro.

    Hi ,
    Can you Please look at OSS note
    1655571 - Multiple values and multiple/additional line items appearing in the NewGL View when compared to Entry View
    Many Thanks

  • Difference between Discover Desktop, Plus, Viewer

    What is the Difference between Discover Desktop, Plus, Viewer,
    i think these are all for Business User only,,,,and Discoverer Administrator is not for Business user..
    Suresh

    Hi Suresh
    You're right, up to a point.
    Administrator is certainly not a user tool, whereas Plus and Viewer and certainly not used by admistrators. However, because one Desktop license comes with every Administrator license, Desktop is not only used by end users. It can be used for administrators for testing out new functionality that has been added. Administrators do this rather than having to log into Plus to test out a new business area.
    Desktop has far less functionality than Plus, although both are report creation tools, whereas Viewer is what it says it is - a report viewing tool.
    A few months ago Russ Proudman, once of the main answerer of questions in the forums, went though an exercise with the members of the forum identifying the differences between the tools. You'll find the results on Russ' website here: http://www.proudman.homestead.com/files/disco_diffs.html
    Best wishes
    Michael

  • Difference among the Help view,Database view and Maintanance View

    hi,
    can Anyone pls let me know the Difference among the Help view,Database view and Maintanance View
    thanks&regards
    rama

    The followings are different types of views:
    Database View (SE11)
    Database views are implement an inner join, that is, only records of the primary table (selected via the join operation) for which the corresponding records of the secondary tables also exist are fetched. Inconsistencies between primary and secondary table could, therefore, lead to a reduced selection set.
    In database views, the join conditions can be formulated using equality relationships between any base fields. In the other types of view, they must be taken from existing foreign keys. That is, tables can only be collected in a maintenance or help view if they are linked to one another via foreign keys.
    Help View ( SE54)
    Help views are used to output additional information when the online help system is called.
    When the F4 button is pressed for a screen field, a check is first made on whether a matchcode is defined for this field. If this is not the case, the help view is displayed in which the check table of the field is the primary table. Thus, for each table no more than one help view can be created, that is, a table can only be primary table in at most one help view.
    Go thru this link plzz
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    Difference between "Help View" and "Search Help"
    Projection View
    Projection views are used to suppress or mask certain fields in a table (projection), thus minimizing the number of interfaces. This means that only the data that is actually required is exchanged when the database is accessed.
    A projection view can draw upon only one table. Selection conditions cannot be specified for projection views.
    Maintenance View ( SE54 )
    Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Please have a look at below link. It will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    for more detailed info look on:
    http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&
    1.Go to se11
    2. select view radiobutton and give a name
    3. Create
    4. select type of view you want to create. Such as database view.
    5. give short description
    6. give a table name such as mara
    7. press the pushbutton relationship. here you will find all the tables which are allowed to create view with mara.
    8. select one or mane tables.
    8 copy
    9.save , check and activate.
    The followings are different types of views:
    Database View (SE11)
    Database views are implement an inner join, that is, only records of the primary table (selected via the join operation) for which the corresponding records of the secondary tables also exist are fetched. Inconsistencies between primary and secondary table could, therefore, lead to a reduced selection set.
    In database views, the join conditions can be formulated using equality relationships between any base fields. In the other types of view, they must be taken from existing foreign keys. That is, tables can only be collected in a maintenance or help view if they are linked to one another via foreign keys.
    Help View ( SE54)
    Help views are used to output additional information when the online help system is called.
    When the F4 button is pressed for a screen field, a check is first made on whether a matchcode is defined for this field. If this is not the case, the help view is displayed in which the check table of the field is the primary table. Thus, for each table no more than one help view can be created, that is, a table can only be primary table in at most one help view.
    Go thru this link plzz
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    Difference between "Help View" and "Search Help"
    Projection View
    Projection views are used to suppress or mask certain fields in a table (projection), thus minimizing the number of interfaces. This means that only the data that is actually required is exchanged when the database is accessed.
    A projection view can draw upon only one table. Selection conditions cannot be specified for projection views.
    Maintenance View ( SE54 )
    Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Please have a look at below link. It will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    for more detailed info look on:
    http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&
    Go thru this link plzz
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    Difference between "Help View" and "Search Help"
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    Hope this is helpful, Do reward

Maybe you are looking for

  • MBP Hung and OS X Reinstalls Fail

    Originally my MacBook Pro hung and upon rebooting it got stuck in a loop at the startup chime. Tried to restore from backup but it failed. Tried to reinstall OS X and it failed as well. It was acting like a hard drive issue so I reformatted and retri

  • New Mac Pro for photography (raw edition).

    Hi, I want to buy the new Mac Pro in december for use as my main works station. I work mainly with Photoshop CS6 and Capture one, editing/retouching big amounts of  RAW and TIFF files from Nikon and Hasselblad. Im thinking in buy the 6 cores version

  • I obtain error -10003 from AI hardware config when I use AC coupling

    I am using a function generator to make a sine wave and I want to obtain the data. However, there is an error 10003 at AI hardware config when I use AC coupling and I am not sure why? Attachments: Motor_Current_Measurement2.vi ‏133 KB

  • Can't Update with CMP entity bean (psi-ri)

    Hello! Has anybody got entitybeans to work thorougly with psi-ri -persistence provider? Our entities Insert and Delete as they should be, but we haven't got them to Update anything. I have a feeling that this has something to do with transactions, bu

  • App that will play slideshow from computer continuously on smart TV?

    I have a slideshow that I would like to play on the TV in the lobby of my store. Is there an app that I can run from the back of house PC over wifi that will allow for a continuous loop of my slideshow? Initially, I made the slideshow on Keynote and