Materialiazed Views

Considering the standard EMP table
I am now creating a materialiazed view on it
Can anyone tell me the difference betweeen
ENABLE QUERY REWRITE feature
CREATE MATERIALIZED VIEW EMPLOYEE_MV1
PARALLEL 10
BUILD IMMEDIATE
REFRESH COMPLETE ON COMMIT
ENABLE QUERY REWRITE
AS
select A.emp_no, A.ename
from
EMP A, EMP B
WHERE A.EMP_NO = B.EMP_NO;
CREATE MATERIALIZED VIEW EMPLOYEE_MV2
PARALLEL 10
BUILD IMMEDIATE
REFRESH COMPLETE ON COMMIT
AS
select A.emp_no, A.ename
from
EMP A, EMP B
WHERE A.EMP_NO = B.EMP_NO;
Difference between the 2 materialiazed views
Would like to know the feature of ENABLE QUERY REWRITE
Thanks

When a user execute's a query (not using a MV) and a MV has been created with the same query then Oracle will use the MV to fetch the data.
Please see the link for more info.
http://www.oracle.com/technology/oramag/oracle/03-sep/o53business.html
Thanks

Similar Messages

  • Can not refresh view data in STRUST

    I am using the JSP (STRUTS) for developing my App.
    I get a list of contact. In bellow it, I make a link for each contacts.
    When i view details of one contact. On click link below.
    My pages:
    listcontact.jsp
    contactdetails.jsp
    When i request a details of contact from list contact -> View successfull.
    But when i refresh the contactdetails.jsp page. I got a message error:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.7 logs.
    I have to use:
    response.setHeader("Cache-Control","no-store");
    response.setHeader("Pragma","no-cache");
    But can't refresh any way this page.
    Plase show me the way to solve it.
    Thanks
    Vu Nguyen

    hi,
    Here are codes
    listdata = new CompanyListData();
    companyList = (ArrayList) session.getAttribute("datalist_company");
    if (companyList == null)
    companyList = (ArrayList) listdata.getCompanyList(datasource);
    session.setAttribute("total", companyList.size()+ " companies");
    session.setAttribute("datalist_company", companyList);
    return (mapping.findForward("success"));
    And for details:
    if ((addressItem==null && companyName!=null)||(addressItem==null&& companyId!="0"))
    addressData = new AddressDetailData();
    addressItem = addressData.getAddressItem(datasource, companyId);
    session.setAttribute("addressDetail", addressItem);
    I got companyID by:
    String companyId = request.getParameter("companyId");
    return (mapping.findForward("success"));
    Please gest the problems that.
    Thanks,

  • Year-at-a-glance View in iCal

    Once again, I am filling out next year's year-at-a-glance wall calendar and wish I had this view in iCal. With today's screens, a year-at-a-glance view shouldn't be difficult to implement and would be very useful. My favorite layout has 12 rows (one for each month, January at the top) and blocks for each day running from left to right with weekends shaded. When is Apple going to improve iCal? or at least enable others to make such improvements?
    Message was edited by: Jim Putnam

    I can't believe this, I finally get round to organizing myself and ical doesn't do a year view.
    I have hunted online for some way to make this happen and have ended up making a pdf of a printout to be able to see it.
    This can only be a temp solution, as my diary changes a lot and printing/pdf is not very elegant or efficient or even that easy to read quickly.
    In my online search I have found posts requesting this as far back as 2003, and 6 years is to long to wait for something that surely must be such a simple solution.
    I'm also stunned by the lack of plugin/widget/app solutions from 3rd party developers, I would definitely pay a a buck or 2 for something to let me do this well within ical,
    And If I want it you can be sure there are at least another 100,000 who would also pay, maybe we could get the guy who wrote the ifart app for iphone to write it for us, about 2000 people a day were buying that at 99 cents a pop in the run up to christmas.
    Apple should embarrassed by this.
    If anyone knows the solution please post it.
    Brin

  • Hi, i am trying to open and view a report that comes from another server with different odbc connection

    hi, i am trying to open and view a report that comes from another server with different odbc connection
    i created a crystal report for a mysql database on my machine and everything works great
    but we have other reports that come from other machines with different odbc connection
    and this its not working when opens the report asks for credentials
    and i cannot use the remote ip for these reports that come from other machine
    question
    if i cannot connect to remote ip to open the report
    for each report i have to create a database the report database on my machine and then open the report ?
    or there is some other way to open the report ?
    i am using visual studio 2013 and mysql and
       <add key="MYSQLODBCDRIVER" value="{MySQL ODBC 5.3 UNICODE Driver}"/>
    thanks

    short
    i have a report that it was created on another server with a specific dsn
    now i am trying to open the report on my machine
    the database from the other server does not exist on my machine
    the server machine where the report was created the ip its not accessible
    question ?
    can i open the report on my machine or its impossible ?
    thanks

  • Mini-DVI to Video Adapter: For TV Viewing?

    The Apple-Salesperson sold me a Mini-DVI to Video Adapater to send pictures to the TV from my MacBook. I get sound on the TV but not the slids. The TV picture only displays the computer's main screen.
    Is this the correct adapter? I see other threads here use something different. Is there a special setting I need to change?
    Thanks,

    With your TV hooked up to your Macbook, you should be able to view anything on your computer. If you have all of your pictures in iPhoto, your best option is to use FrontRow by using the remote.
    (make sure your displays are mirroring eachother, Preferences>Displays)

  • Refreshing the Data from a embed view in a view container

    Hi everybody
    I would like to know how can I do to refresh all data from a View with a view container the problem is:
    that I have a window that has a view at the same time this has a view container.  The Main view brings the data of editable elements when I select one element of the main view the view container brings a list for that element (dependencies) but only the first time a choose an element loads the correct data, when I choose another one it brings the same old data and doesn't make the call for the wdDoInit() method.
    The question is:
    How do I force the view to refresh all the data or call again the wdDoInit() method?
    Thank you for your help

    Aida,
    Lets say you have two components C1 and C2 and you want method from C1 to be available in C2 then follow these steps:-
    1) Goto the Interface Controller of C1 and create a method there lets say doSomething
    2) Then goto C2. There you can see Used Web Dynpro Components --> Right click Add Used Component --> Give some name say C1Comp --> Click browse and select C1 --> Click Finish.
    3) Next goto Component Controller of C2 --> Properties --> Click Add and check if C1 is added. If not then select the checkbox and select OK.
    4) Now goto Implementation tab of C2 and lets say wdDoInit you can write following code:-
    wdThis.wdGetC1CompInterface().doSomething();
    Chintan

  • How to load a specific view in a browser

    Hi Guys,
          In my application, I hav 3 views..I need to set particular view at window level..So How can I do that..Thanks in advance

    Good day,
    Please check my reply in the following thread.
    Re: Change of default view in a web dynpro window
    Regards and Best wishes.

  • Possible to see at a glance who has/has not viewed pdf via the 'Tracker'?

    We are working on setting up procedures for Browser-based reviews. We were hoping we'd be able to see at-a-glance who had/had not viewed or sent back comments, and the date they sent them in the Tracker, but it seems to be just a list of who it was sent to originally. How do you know who has sent comments, other than manually scrolling through all the comments to see people's names?

    Hi;
    No, there isn't a way for you to see anything about who has saved progress.
    Thanks,
    Josh

  • Mini Month View in iCal

    Can't say I like the new iCal running on Lion. One feature that I can't seem to find is the mini month view. I did away with my paper calendar for viewing full months because of the mini month calendars on my Macs.
    Is that functionality gone? I've searched preferences and menus and can't find a way to turn it on.
    So many things about this new iCal that I find I do not like. I sure hope updates are coming to fix it.
    CJ

    Last thing about iCal which I think could be fixed, is that it would be easier to type down events and making line-breaks if one whouldn't have to hold 'Alt' in while doing it.  I make line-breaks much more often than I finish editing an event (in which case you just press enter or click outside the event you were editing).  It would be better to press 'alt' + 'enter' in order to finish editing an event, and reserve the action of just pressing 'enter' for line-breaks.  This, btw, was also this way in iCal 4.
    Ok, last last thing: in the preferences of iCal one can add a default alert to all new timed events and invitations and one can specify how many minutes before one wants to be alerted.  I do not want to add a default alert to all new events/appointments, but I would like to be able to specify the default number of minutes put on all new alerts that I put on events.  It seems quite intuitive to me that the default number of minutes one can specify for every alarm added to events by defult (if that option is checked in the preferences), should be the defult number of minutes set to alarms one manually puts on events, in stead of the '15 minutes before' default that is in the system and which seems to be unchangable.
    If it says '0 minutes before the start time' there, then all alerts that I manually put on events should have this value put to zero by default! 

  • Printing list view in ical

    I use mail and ical for everything now. Everything is fine except When I want to print the "list view" which shows my “to dos”. It displays the URL the “do to” is attached to in mail. I use notes often in mail and enter to dos in the notes so they will have URL links. The link only becomes a nuisance when I want to print, otherwise it’s very useful.
    Why would the long URL paths display when in print view???!!!!! It doesn’t make any sense.
    Is there anything I can do?
    Thank you

    ecernek,
    There is no event list option on iCal like the one on the iPhone.
    That number means that you have an event invitation. Use iCal>View>Show Notifications to choose what to do with the notification.

  • Weekly "List View" in iCal

    Hello - my family has recently converted to Mac, and my wife and I have been long-time Outlook users in our workplaces...
    Trying to help my wife get her calendar data to iCal - one of the few things that we miss from Outlook is the "Week" view, which shows like Outlook's (7-Day view), which has a large grid of the 7 days in the current week, and all events displayed in a text-based "list" format, and clearly displaying numerical start and end times, rather than the graphical "block" method of iCal's default Week view.
    The Month view on iCal comes close, but it is rather cramped when you want a closer-in look, and also omits end time.
    Any suggestions?
    Thanks!

    ecernek,
    There is no event list option on iCal like the one on the iPhone.
    That number means that you have an event invitation. Use iCal>View>Show Notifications to choose what to do with the notification.

  • Hiding a Maintenance View in a View Cluster

    Hello ABAP Experts,
    We have a scenario where we would like to hide a maintenance view to an existing view cluster based on condition.
    Is it possible via events of a view cluster, where i can hide the view at runtime based on some condition before the view cluster is displayed ?
    Is there any way as well, which help achieve this hiding of views ?
    For example in the below View Cluster, i would like to hide "Define object links" view from the main view cluster "Define document Types".
    Thanks,
    Naresh

    Hi Naresh,
    Yes, you can do it in events of a view cluster, define a subroutine and bounding it to event(02) in SE54,
    when you define the subroutine, it will ask you creat a mian program, in this main program, you need  'INCLUDE lsvcmcod'.
    Then you can access some standard data, http://help.sap.com/saphelp_nw04/helpdata/en/62/c302c7de8e11d1a5960000e82deaaa/frameset.htm
    INCLUDE lsvcmcod.
    FORM yourSubroutineName.
    DATA: viewname TYPE vclstruc-object,
            error_flag TYPE vcl_flag_type,
      viewname = 'ZTEST_VIEW1'.
    *  PERFORM vcl_set_table_access_for_obj USING    viewname
    *                                       CHANGING error_flag.
      ----> according your condition to change the view.
    IF xxx = yyy.
      DELETE vcl_struc_tab WHERE object = viewname.
    ENDIF.
    ENDFORM.
    regards,
    Archer

  • Event List view in iCal?

    I would love to have an Event List view in iCal like I do on the calendar on my iPhone. Is there such a thing? The particular reason for wanting it (this time) is that one of the calendars in the ON MY MAC list has a number in a oval to the right.
    I believe this is trying to tell me that there is a new event that I need to do something about. Problem is, I don't know where to find it.

    ecernek,
    There is no event list option on iCal like the one on the iPhone.
    That number means that you have an event invitation. Use iCal>View>Show Notifications to choose what to do with the notification.

  • Clicking on Year view to get Week view in iCal

    In the  Lion version, is there any way I can double click a date and get to the 'week view' rather than the 'day view'?

    CaptainStarwars,
    Try using (⌘+C) and then (⌘+V). That action retains the event in the original, while also placing a duplicate in the new location.
    If you want to remove the event from the original time, use (⌘+X), then (⌘+V) in the new time frame.
    ;~)

  • List view in iCal on my iPod touch is corrupted

    The 'list view' seems to be all wonky in Calendar on my iPod touch.
    The dates for a given day that's displayed don't make sense:
    i.e. Sunday Oct. 27 2030 followed by Saturday July 14 2001 followed by Tuesday Jan. 16 2001 are listed in consecutive order instead of today, tomorrow and next day (with correct dates).
    Also, the 'events' given for each day listed don't make sense and are often duplicated.
    The 'day' and 'month' views however, seem to be ok and not corrupted. The 'list' field in the month view also seems fine ?
    Has anybody experienced this ? Very frustrating, since I like the list view.
    I make most of my entries/changes to iCal on our main desktop (iMac 24") then sync. to my iPod. The list view seems ok on the desktop.
    Any help greatly appreciated.
    ps. not sure if the problem corresponded with an upgrade of the Ipod software to OS 3.1 from 2.x....

    See this previous discussion:
    FIX for iPod Touch Home Button: Apple Support Communities

Maybe you are looking for