Why sys does not refresh fast ?

Hi everyone.
The following test was made on a Windows XP Professional 2002 SP 2 box.
I don't understand why sys user does not perform a fast refresh on a materialized view. With others users it works fine. May be I am missing something.
This is my simple test case:
C:\>sqlplus "sys/sys as sysdba"
SQL*Plus: Release 9.2.0.1.0 - Production on Sun Nov 6 14:44:51 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> create table my_objects as select * from user_objects;
Table created.
SQL> alter table my_objects add primary key(object_id);
Table altered.
SQL> create materialized view log on my_objects with primary key including new values;
Materialized view log created.
SQL> create materialized view mv_my_objects
2 refresh fast on demand
3 as select * from my_objects;
Materialized view created.
SQL> select count(*) from my_objects;
COUNT(*)
13535
SQL> select count(*) from mv_my_objects;
COUNT(*)
13535
SQL> delete from my_objects where rownum <=100;
100 rows deleted.
SQL> commit;
Commit complete.
SQL> select count(*) from mv_my_objects;
COUNT(*)
13535
SQL> select count(*) from my_objects;
COUNT(*)
13435
SQL> exec dbms_mview.refresh('mv_my_objects', 'F');
PL/SQL procedure successfully completed.
SQL> select count(*) from mv_my_objects;
COUNT(*)
13535
C:\>sqlplus scott/tiger
SQL*Plus: Release 9.2.0.1.0 - Production on Sun Nov 6 14:50:31 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> create table my_objects as select * from user_objects;
Table created.
SQL> alter table my_objects add primary key(object_id);
Table altered.
SQL> create materialized view log on my_objects with primary key including new values;
Materialized view log created.
SQL> create materialized view mv_my_objects
2 refresh fast on demand
3 as select * from my_objects;
Materialized view created.
SQL> select count(*) from my_objects;
COUNT(*)
8
SQL> select count(*) from mv_my_objects;
COUNT(*)
8
SQL> delete from my_objects where rownum <=4;
4 rows deleted.
SQL> commit;
Commit complete.
SQL> select count(*) from mv_my_objects;
COUNT(*)
8
SQL> select count(*) from my_objects;
COUNT(*)
4
SQL> exec dbms_mview.refresh('mv_my_objects', 'F');
PL/SQL procedure successfully completed.
SQL> select count(*) from mv_my_objects;
COUNT(*)
4
SQL>

I agree, never create objects under sys schema. I noticed that behaviour just by accident, making some tests while reading the data warehousing manual.
It is more surprising the fact Oracle lets you create the log, and also throws a "PL/SQL procedure successfully completed" message when you use it.
Regards.

Similar Messages

  • Advanced Table does not refresh after database level action

    Hi,
    I have a page which has an advanced table. I update the advanced table from the page do some validations, update some DB level columns(also part of advanced table) and see that the changes are saved to the DB but the advanced table does not show the updates done at the DB level.
    I tried clearing the VO Cache and re-executing the VO but still it does not refresh the Advanced table data.
    This is very critical requirement for the client, any inputs will be greatly appreciated.
    Thanks a lot in Advance.
    Here is the code snippet from my CO's processRequest:
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAAdvancedTableBean tblbean = (OAAdvancedTableBean)webBean.findChildRecursive("recasttable");
    if(tblbean!=null)
    tblbean.setRendered(true);
    OAApplicationModule tblam = (OAApplicationModule)am.findApplicationModule("RecastLineAM1");
    tblam.invokeMethod("initQuery");
    tblbean.getTableData();
    Here is my AM - initQuery() code:
    public void initQuery()
    //clearVOCaches("RecastLineEO",true);
    clearVOCaches(null,true);
    getRecastLineVO1().init();
    Here is the VO - init() code:
    public void init()
    System.out.println("****************************executing...");
    OADBTransaction tx = (OADBTransaction) getApplicationModule().getTransaction();
    if (tx.getTransientValue("RECAST_ID") !=null)
    Number recastId = (Number) tx.getTransientValue("RECAST_ID");
    System.out.println("recastId: "+ recastId);
    setWhereClause("RECAST_HDR_ID = :1");
    setWhereClauseParams(null); // Always reset
    setWhereClauseParam(0, recastId);
    executeQuery();
    }

    hi,
    This is how I am calling a DB package. the package does updates on the table. once done I am issueing a commit and requerying the data, however the vo is not getting refreshed.... Can someone point out what am I missing... why is the VO not getting refreshed....
    This is very critical...
    Thanks
    Srini
    public void validateRecast(String respKey)
    OADBTransaction tx = (OADBTransaction)getApplicationModule().getTransaction();
    Number recastId = (Number) tx.getTransientValue("RECAST_ID");
    System.out.println("*********************validateRecast().RecastId: " + recastId);
    OracleCallableStatement ocs = null;
    Connection conn = tx.getJdbcConnection();
    String strOut="", strErr="";
    Number respId = null;
    try
    respId = new Number(respKey);
    catch(Exception e)
    throw new OAException("Invalid Responsibility");
    String stmt = "BEGIN " +
    "GE_RECAST_UTILS_PKG.validate_recast(:1,:2,:3,:4); " +
    "END;";
    try
    ocs = (OracleCallableStatement)conn.prepareCall(stmt);
    ocs.setNUMBER(1,recastId);
    ocs.setNUMBER(2,respId);
    ocs.registerOutParameter(3,OracleTypes.VARCHAR);
    ocs.registerOutParameter(4,OracleTypes.VARCHAR);
    ocs.execute();
    strOut = ocs.getString(3);
    strErr = ocs.getString(4);
    ocs.close();
    System.out.println("Returned with: " + strOut);
    if(strOut.equalsIgnoreCase("ERROR"))
    //throw new OAException(strErr);
    tx.putTransientValue("ERROR",strErr);
    tx.commit();
    getApplicationModule().clearVOCaches("RecastLineEO",true);
    RecastLineVOImpl lineVo = (RecastLineVOImpl)getApplicationModule().findViewObject("RecastLineVO1");
    lineVo.init();
    System.out.println("===============RecastLnId: " +lineVo.first().getAttribute("RecastLnId"));
    System.out.println("===============Product Line: " +lineVo.first().getAttribute("ProductLine"));
    catch(SQLException e)
    tx.rollback();
    if(ocs!=null)
    try
    ocs.close();
    }catch(SQLException e1)
    throw OAException.wrapperException(e1);
    throw OAException.wrapperException(e);
    }

  • Management Studio 2008 does not refresh after table create / alter

    hello
    Management Studio 2008 does not refresh after table create / alter, why?
    f5 / refresh button does not work in "Object Explorer".... i always need the restart the whole application to see any changes, this is strange...
    regards, jan

    Hi jm,
    I’m writing to follow up with you on this post. Was the problem resolved after performing Vishal ‘s steps? If you are satisfied with our solution, I’d like to mark this issue as "Answered". Please also feel free to unmark the issue, with any new findings
    or concerns you may have.
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Servlet does not refresh in browser

    Hi,
    If I change a Servlet code, re-compile it and Refresh the browser (Firefox), it does not refresh. I can only get it to refresh if I re-start Tomcat (v 5.5.4).
    Is there a workaround for this please?
    I put the lines:
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Pragma", "no-cache");
    response.setDateHeader("max-age", 0);
    response.setDateHeader("Expires", 0);
    at the top of my doGet method and this does not work.
    Thanks,
    Hal.

    Hi,
    For classes, you can set the reloadable parameter in your application configuration file (in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory)
    Set it to true if you want Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes, and automatically reload the web application if a change is detected. This feature is very useful during application development, but it requires significant runtime overhead and is not recommended for use on deployed production applications. That's why the default setting for this attribute is false. You can use the Manager web application, however, to trigger reloads of deployed applications on demand.
    http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
    For JSPs, you can configure Jasper (in $CATALINA_BASE/conf/web.xml file) and use the reloading parameter.
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html

  • Discoverer 10.1.2 does not refresh new added column

    Hello,
    I need help to add a new item to EUL Business Area folder for a new added column in the database table.
    When I refresh the folder in the BA EUL, the result shows no difference between the folder and the underlying table in the database; however, when I quey the table in the database, a new column is there. The refresh of the folder in the Discoverer Admin tool cannot find the newly added column. Weird!! The first time saw this problem.
    Could someone shine some light on it? Would be really appreciate it!
    Ping

    I have a slightly different problem and can't solve it! When I refresh the EUL, the result shows the differences between the folder and the underlying tables in the database. However, it does not refresh the EUL in Discoverer Administrator 10g. Nothing happens! When I try to refresh again, the same list is shown... Does anyone know what could be happening?
    Thanks

  • Hyperlinked JSP Page does not refresh contents

    I have a very typical problem.
    In my application whenever I call a jsp page using hyperlink without any querystring attached to it the page called does not refresh. However when I press refresh on the browser it does refresh the contents. Basically in this page I am using some session variables to fetch data. So I do not call the page by passing querystring instead set the attributes of session variables and then the page is called as a hyperlink.
    However if I call the same page using submit the values are refreshed.
    Help on this urgently will be appreciated.
    Thanks
    Manish

    Just set 'no-cache' option for the jsp page and test it. It should work. only you need to do is
    response.setDateHeader("Expires",0);
         response.setHeader("Pragma","no-cache");
         if(request.getProtocol().equals("HTTP/1.1")) {
              response.setHeader("Cache-Control","no-cache");
    have fun!!
    ---rajsekhar

  • PO creation-ME21n-Why SAP does not check company code and Plant relation

    Hi All,
    Does someone know, why SAP does not check Plant and company code relation at the time of PO creation or how can we put validation between plant and company code at the time of PO creation.
    <b>Example:</b> Suppose i have a company 0001 which is assinged to Plant 0001. when i am creating a PO with another company code 0002(Entering at header level-Org, data) and using Plant 0001 at line item level. SAP does not do this validation.
    How can we put this check in place?
    Thanks in advance.
    Deepak

    Hello Deepak,
    There are three types of purchasing
    - Company code specific :You need to assign company code to Pur organization
    - Plant specific : You must assign plant to pur organization
    - Cross company purchasing: No assignment between company code and pur organization.
    In the case 3, the system will not check company code and plant relationship, but it will check plant and pur organization specific.
    The following is the copy of sap help text:
    You can assign a purchasing organization to one company code. This is company-specific purchasing.
    You can assign a purchasing organization to no company code. This purchasing organization can then procure for all plants assigned to it, irrespective of the company code to which the plant belongs.
    Since each plant must be assigned to a company code, the company code can be determined via the plant in each procurement transaction, even if the procuring purchasing organization is not assigned to a company code.
    A purchasing organization must be assigned to one or more plants. This is plant-specific purchasing.
    Now, check your company-code and purchase organization assignment.
    Hope this helps.
    Regards
    Arif Mansuri

  • Why facetime does not working with any carrier in u.s expect att although the iphone is factory unlocked

    why facetime does not working with any carrier in u.s expect att although the iphone is factory unlocked

    Facetime only works via WiFi. Are you trying to set up Facetime with a T-Mobile account?

  • Why condition does not work.

    Hi Pros,
            in my bex query, there is a CKF OT hours, having a value 30.000, when I set a condition for 'OT hours = 30.000', but get no result out. could you please tell why condition does not work.

    HI,
    please check the "Characteristic Assignment" Tab in change condition window.
    In that tab default  selection as "All Characteristic in the drill down independently" change that selection  as "Individual characteristic and Char. combinations"  and choose the particular characteristic. for ex OT hours against employee means select employee alone.
    Regards
    Sureshkumar C

  • Nakisa 4.1 - TalentHubHRExec missing masterBuild.sys does not exist

    Dear Gurus,
    I'm not able to do searching using employee on Nakisa TalenHubHRExec using employee listing anda position listing on data grid list.
    I check from cds.log show missing masterBuild.sys does not exist, appreciate if can advise where should i get the file.Below i capture 2 error from the log, i already follow based on NakisaAdmin guide for Role Authorization Mapping using NakisaAdminConsole.
    Error 1
    04 Mar 2014 11:49:13 ERROR com.nakisa.Logger  - Strings : readFile : java.io.FileNotFoundException: File 'NakisaPath\apps\Nakisa\TalentHubHRExec\servlet_jsp\TalentHubHRExec\root\.system\Admin_Config\__000__TalentHubHRExec_TF\masterBuild.sys' does not exist
    04 Mar 2014 11:49:13 ERROR com.nakisa.Logger  - java.io.FileNotFoundException: File ''NakisaPath\apps\Nakisa\TalentHubHRExec\servlet_jsp\TalentHubHRExec\root\.system\Admin_Config\__000__TalentHubHRExec_TF\masterBuild.sys' does not exist  at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:137)
    Error 2
    04 Mar 2014 11:53:33 ERROR com.nakisa.Logger  - com.nakisa.manager.ui.subucs.RoleMapping : getRolesDataSet : Error with roles DataSet. Connection String: ASHOST=NakisaHost SYSNR=00 CLIENT=100 USER=firhasa PASSWD=passwd
    04 Mar 2014 12:02:24 ERROR com.nakisa.Logger  - RoleMapping_SAP.MapRoles() : Message: while trying to invoke the method com.sap.mw.jco.JCO$Function.getImportParameterList() of a null object loaded from local variable 'function'
    Regards
    Mohamad Firhad Samuri

    Hi Mohamad,
    Your cds logs shows different errors however i have few questions here in terms of troubleshooting.
    1. Any search listings worked earlier or it never worked ?
    2. Have you properly imported the abap add-ons and transport pack ?
    3. Do you have any customizations in listings ?
    4. TREX is working fine, please confirm with Basis
    5. Have you imported and exported the build ?
    Dipak Bujjad

  • JTextArea does not refresh in real-time

    Hello all,
    Somehow, a JTextArea does not refresh ok. It refreshes only after myobject terminates. As a result, it does not write the results when i append them, but when the object that appends the data to it ends (myclass in the following example).
    If anyone has any suggestion, i would be more that pleased to hear it.
    Thanks
    odyspapa
    the relevant code is:
    main
      int cnt = 0;
      MyClass myobject = new MyClass();
      JTextArea ta = new JTextArea();
      // and now call an object that is supposed to
      // write to that area (pass jtextarea as a parameter)
      myobject.produceResults(ta);
    myclass
      produceResults(JTextArea ta)
        while (something)
          // process to produce results
          ta.append(the_result);

    make your text field final and add
    ie:
    tf.repaintwhere tf is your textfield.

  • Is it free to send messages in iMessage to another county? if yes why it does not show that these messages from iMessage?

    Is it free to send messages in iMessage to another county? if yes why it does not show that these messages from iMessage?

    if you receive an imessage not on any internet connection you will receive it as a sms (green) and yes it counts toward your texting plan

  • Workbook does not refresh in MS Office 2007 on Windows 7

    Hi,
    We are facing problems when we try to refresh the BI Workbooks on the
    Computer which is having Winodws 7 (OS) and MS OFFICE 2007.
    The Workbooks goes into endless loop, and it shows Processing. The
    Query does not refresh.
    These workbook were created in MS Office 2003 on a Windows XP (OS)
    machine.
    The workbook get refreshed on the MS OFFICE 2003 and WINDOWS XP
    Machine, but the same workbook is not refreshing on the WIndows 7 (OS)
    with Office 2007.
    THE SAP GUI is 7.10 and the following are support Patches installed.
    1) bi710sp12_1200-10004472
    2) gui710_18-10002995 ( Patch 18)
    Support Patch for SAP BW is SAPKW70020 (0020). 
    Is there any other setting to be done in Excel 2007 on the Machine
    which is having Windows 7 as Operating System.
    Please suggest.
    Thanks & Regards,
    Nilesh

    you are installing, running, Windows, natively, so it is the same.
    a partition manager does not affect the OS, and the support driver software is just that
    www.apple.com/support/bootcam faq manuals how-to & support

  • Why RSS does not work with my OS X 10.8.2?

    Why RSS does not work with my OS X 10.8.2? There was no problem before the upgrade to the Mountain Lion.

    By clicking on the RSS icon I'm getting a message:
    "No RSS reader is installed. Safari can't open the feed because Safari can't display RSS feeds"
    In Chrome I get xml file of the RSS site.
    Should I buy something what I didn't need with the Snow Leopard?
    Thanks for your help.
    Message was edited by: PZA22

  • Login Window: Screen does not refresh correctly after waking 10.7.2 iMac and MacBook.

    I have a client who brought to my attention that when we wakes his iMac and MacBook after the screen dims or sleeps at login screen, that sometimes the screen does not refresh correctly and you must use the cursor to basically "clear the screen."  I have witnessed this myself and elimiated all third party products and this still happens.  I am starting to believe that is is a bug in 10.7.2.  Has anyone witnessed this or have any suggestions on how to remedy?  Thank you.

    Thanks lynque.  It turns out I did need a keychain repair, but that didn't fix the problem.  I probably should have done this earlier, but I ended up unplugging all peripherals (2 firewire + 3 USB) then powered up without issue.
    So I shut down, plugged in one at a time, and ran into the problem again after plugging in an external hard drive (WD My Book Essential).  I repaired with disk utility, but the problem remained.
    I then rebuilt the partitions with Disk Warrior, and now everything seems to work....

Maybe you are looking for

  • Issue: Deleted PO Awaiting Approval

    Hello, I'm having issue with a PO which was marked for Deletion.. In SRM the PO has status Awaiting Approval and in EBP checking the Purchase with transaction bbp_pd, the ultimate change version has the awaiting approval item in blue color. Anyone kn

  • How can we get the message from sap system to 3rd party system

    it is related to XI only .if yes u can configure Java proxi-XI-BAPI or call the bapi directly in synchronous mode which can give u return message in BAPIRET. can u give the proceser step by step.. plz.. thanks and regards, suresh

  • Is there a way to find out how much storage I have used on my iphone4s?

    I am new to icloud and want to back up my phone but it is saying I have too much data to back up to the free 5.0GB.  I can purchase more but note sure how much I will need.  Is there a way to find out how much storage my phone is currently using?

  • Obsolete method error in the RPD

    Hi, Due to some scenario, I end up building sum(A/B). I have added the parameter SUPPORT_OBSOLETE_MEASURES to YES in NQSConfig file. My question is, since, aggregate functions in logical column definitions which use other logical columns, e.g. SUM(Am

  • K.i.t.c.h.e.n. Design In Wolverhampton Area UK

    K.i.t.c.h.e.n. Design In Wolverhampton Area UK. Thirty Ex Display K.i.t.c.h.e.n. To Clear. w*w_w( . )exdisplay**bleep**s1( . )co( . )uk **bleep** 595 Each with appliances. Tel 01616-694786 K.i.t.c.h.e.n. Design In Wolverhampton Area UK