Materialzied Refresh is very slow in oracle10g

We are migrating our database from Oracle8i-->Oracle10g.
But in dataware housing we are facing problem for refresh materialized view is very slow
We change due to this below.
1. exec DBMS_MVIEW.REFRESH('MVIEW,atomic_refresh => FALSE );
Our two parameter are same as Oracle8i
query_rewrite_enabled = TRUE
query_rewrite_integrity = enforced
Please suggest to make it fast
Thanks
Chetan

ChetanS wrote:
We are migrating our database from Oracle8i-->Oracle10g.
But in dataware housing we are facing problem for refresh materialized view is very slow
We change due to this below.
1. exec DBMS_MVIEW.REFRESH('MVIEW,atomic_refresh => FALSE );
Our two parameter are same as Oracle8i
query_rewrite_enabled = TRUE
query_rewrite_integrity = enforced
Please suggest to make it fastChetan,
depending on your MV definition it might not be the refresh DML but the query that is taking substantially longer than in your 8i environment. May be you want to compare the performance of your query by simply running a CTAS statement using the MV query to find out whether it's a DDL/DML/fast refresh issue or a query related performance issue.
Do you use the FAST refresh method, i.e. do you have MV logs on the base tables or is this a complete refresh?
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/

Similar Messages

  • Materialized view refresh is very slow in production

    Hi,
    I am using Oracle 10.2.0.4.0 version and facing problem in Materialized view refresh in production.
    There is a set of Materialized views (15 Mviews) are refreshed through refresh group in production every week or adhoc basis. And for refreshing it is taking 5hrs. I have refreshed the same set of Materialized views multiple times in development environment through refresh group but it got refreshed within 3min. The structure of materialized base tables, type of materialized view refresh, materialized definition and volume of base tables are same between development and production. The production disk space also larger than development. But I am not sure why in production the refresh is very slow compare to development. As this is very critical can some one help on this?
    Thanks is advance.
    - Gopinath.

    Is it fast refresh Mviews? If yes, then check size of materialized view logs. Also check is any other mviews registered on those tables and not refreshing.
    select log_owner, master, log_table, REFRESH_method, version,
           owner, name as ragistered_snapshot, snapshot_site, current_snapshots last_refresh_time, sl.snapshot_id
    from dba_snapshot_logs sl,
         dba_registered_snapshots rs
    where sl.snapshot_id = rs.snapshot_id (+)
    order by 1,2,3 
    ;

  • Screen refresh for participants very slow on beehive web conference

    When I am sharing my desktop with participant on Beehive web conference, the screen refresh is very slow for the participants. It almost takes 1 minute for the screen to refresh on the participants screen. I am on Windows 7.
    Appreciate your help.
    Thanks in advance.

    Hi,
    Given we have very little control over the network bandwidth of the end user it is difficult to determine what the problem could be - normally the refresh is reasonably fast but if there are a lot of users or a restricted bandwidth it can show down a bit.
    One trick to aid the display is to not move the mouse around the screen - pointing to the entities on the page will increase the amount of information being sent. If you can click one and wait for the screen to be rendered at the other end before continuing it may be a bit quicker.
    Phil

  • Since download of Firefox Hello desktop & laptop both on Windows 7 are very slow even after refresh, download history removed and anti virus software turned off

    Since download of Firefox Hello my home desktop & laptop, both on Windows 7, are very slow to open. I have refreshed firefox, removed download history and turned off the anti virus software in extensions. All the plugins are up to date. Can we revert back to Firefox without Firefox Hello?

    Firefox Hello is simply a wrapper for technology already in Firefox, it doesn't negatively impact performance if you aren't using it. Are you saying that your entire computer is slow or just Firefox?

  • Very slow MV fast refresh after "Merge" on dimension

    Hi,
    We have a sales cube with 300Mio records and product dimension with 20.000 records.
    We have a materialized view something like:
    SELECT      COUNT(*) AS cnt,
         COUNT(cube.amount) AS cnt_amt,
         sum(cube.AMOUNT) as amount,
    p.product_name
    FROM sales_cube cube
    JOIN product_dimension p on cube.product_dimension = p.product_dimension
    group by day, product_dimension
    There is tho mv_log on cube and on product_dimension defined.
    After import process for sales_cube
    In the night we run an product dimension update script implemented wit MERGE.
    If something changes in product dimension then next fast refresh from materialized view takes 4 hours. If we have no changes in product_dimension then fast refresh takes 8 seconds.
    My question is, why takes it sooo long and who can we prevent it.

    I'm not authorized to publish EXECUTION PLAN or schema details.
    But I found the problem.
    ETL Prozess is generated by Warehouse Builder.
    ETL Prozess is modeled as Mapping from product table to product dimension in Warehouse as "UPDATE/INSERT" by PK (product number).
    Warehouse Builder generates an MERGE statement for such "UPDATE/INSERT" mappings.
    But this mapping updates every record in Dimension Table, as result Materialized View Log for this dimension is confused. Fast refresh (join between fact table and dimension) is very slow (slower than compleate refresh).
    Now, i simple must find out how i can change this OWB mapping not to update records in dimension if corresponding records are not modified in source table.
    There is an "match by constraint" option in mapping, looks useful, i'll try it tomorow.

  • My email is very slow and does not refresh automatically.

    My Yahoo and Gmail accounts on my iPhone are very slow.  They do no refresh automatically and I often have to restart the wireless to push emails out.  I thought it might be the email provider but it happens with both accounts. 

    Try these basic troubleshooting steps and see if any of them help.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Quit all apps and restart. In order to quit or close apps - Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • My performance is very slow when I run graphs. How do I increase the speed at which I can do other things while the data is being updated and displayed on the graphs?

    I am doing an an aquisition and displaying the data on graphs. When I run the program it is slow. I think because I have the number of scans to read associated with my scan rate. It takes the number of seconds I want to display on the chart times the scan rate and feeds that into the number of samples to read at a time from the AI read. The problem is that it stalls until the data points are aquired and displayed so I cannot click or change values on the front panel until the updates occur on the graph. What can I do to be able to help this?

    On Fri, 15 Aug 2003 11:55:03 -0500 (CDT), HAL wrote:
    >My performance is very slow when I run graphs. How do I increase the
    >speed at which I can do other things while the data is being updated
    >and displayed on the graphs?
    >
    >I am doing an an aquisition and displaying the data on graphs. When I
    >run the program it is slow. I think because I have the number of
    >scans to read associated with my scan rate. It takes the number of
    >seconds I want to display on the chart times the scan rate and feeds
    >that into the number of samples to read at a time from the AI read.
    >The problem is that it stalls until the data points are aquired and
    >displayed so I cannot click or change values on the front panel until
    >the updates occur on the graph. What can I do to be a
    ble to help
    >this?
    It may also be your graphics card. LabVIEW can max the CPU and you
    screen may not be refreshing very fast.
    --Ray
    "There are very few problems that cannot be solved by
    orders ending with 'or die.' " -Alistair J.R Young

  • Gmail performance is very slow in Firefox 4.

    Gmail performance is very slow in Firefox 4 and much slower when compared to performance in Firefox 3.6.x After clicking a button within the Gmail interface (e.g. refresh, opening an email, sending an email etc.) there is a noticeable wait time in Firefox 4. In Firefox 3.6 and actually in any/all previous versions of Firefox, this was not the case. Using same machine for Firefox 4 as I was for Firefox 3.x. Dell Inspiron Laptop E6400, Dual core Intel 2 GHz, 3.5 GB RAM, 80 GB free HDD space, 32-bit Windows XP SP3. Gmail is set to use HTTPS always.

    Hi GoldMoon,
    (1)
    Refer to your last posting, seems that you've created index which wouldn't help your query performance.
    You need to create index from the field which supplied from your 'WHERE' condition. So if I follow your initial posting in this thread, your index should contains:
    - BUKRS (which will be compared with your company variable)
    - PRCTR (which will be compared with your s_prctr variable)
    - GJAHR (which will be compared with your s_year variable)
    - HKONT (which will be compared with your glcode value in your it_final[])
    - BUDAT (which will be compared with your s_budat range/select option.
    And to follow the BSIS field order, the above index field need to be arranged as follow
    - BUKRS
    - HKONT
    - GJAHR
    - BUDAT
    - PRCTR
    (2).
    Try not to use 'INTO CORRESPONDING FIELDS' as it will increase table-memory overhead, but use 'INTO' and make sure the field list and internal table fields is in the same order.
    So, once the index has been created, and 'INTO CORRESPONDING FIELDS' has been changed to 'INTO' your selection should looks like this:
    IF NOT it_final[] IS INITIAL.
    SELECT bukrs
              hkont
              augdt
              augbl
              zuonr
              gjahr
              belnr
              buzei
              budat
              werks
              kostl
              aufnr
              shkzg
              dmbtr
              prctr
        FROM bsis
         INTO TABLE it_bseg
          FOR ALL ENTRIES IN it_final
    WHERE bukrs eq company
        AND hkont eq it_final-glcode
        AND gjahr eq s_year
        AND budat in s_budat
        AND prctr eq s_prctr.
    ENDIF.
    Hope it helps

  • Pages very slow to load

    Hello,
    All of the sudden my Safari is very slow, and pages take almost one entire minute to load.  Is there anyway I can speed this up or clean up my system?

    Is that the answer to everything. How about a real fix. Pages refuse to load. If you hit the stop loading page button and then hit refresh, the page will load. If you don't the page will try to load forever. I left a page for over a hour and it never did load. If Firefox releases one more update like this I'm done. I tried to go back to Firefox 5.0, but now whatever they did to screw up 6.0 is doing the same to 5.0. I tried deleting Firefox and starting over with a fresh install for both, but still just garbage. Also, the whole time I've been typing this another page in another tab as been trying to load. Is Firefox updating without testing this stuff because there is a security problem? Rats!

  • Is there a way to boost Safari? Snow Leopard 10.6.8, Safari 5.1.7 is very slow, almost dead. Thank you.

    Is there a way to boost Safari? I'm using Snow Leopard 10.6.8, Safari 5.1.7 which has become very slow, almost dead. Many thanks!

    If Safari is getting very slow:
    (Presumably you regularly empty your Safari cache by deleting the following file:
    Home/Library/Caches/com.apple.Safari/cache.db
    and clear your History)
    Adding Open DNS codes to your Network Preferences, should give good results in terms of speed-up as well as added security, (including anti-phishing and redirects) (Full information about Open DNS is here: http://www.opendns.com/home/nobloat ) and further independent information can be read here:
    http://reviews.cnet.com/8301-13727_7-57338784-263/free-dnscrypt-tool-enhances-ma c-web-security/?tag=mncol;txt
    and here:
    http://www.macworld.com/article/1146064/troubleshootdns.html?t=234
    If you are using a single computer: Open System Preferences/Network. Double click on your connection type, or select it in the drop-down menu, and in the box marked 'DNS Servers' add the following two numbers:
    208.67.222.222
    208.67.220.220
    (You can also enter them if you click on Advanced and then DNS)
    Sometimes reversing the order of the DNS numbers can be beneficial in cases where there is a long delay before web pages start to load, and then suddenly load at normal speed:
    http://support.apple.com/kb/TS2296
    If your computer is part of a network:please refer to this page: http://www.opendns.com/start/best_practices/#your_network and follow the advice given.
    If you use a Router, make sure it has the latest firmware installed.
    One reason for a slowness in page loading may be the 'DNS Pre-fetching' feature of Safari 5.x as is described here:
    http://support.apple.com/kb/TS3408?viewlocale=en_US
    You can cancel DNS pre-fetching by going to Terminal and typing:
    defaults write com.apple.safari WebKitDNSPrefetchingEnabled -boolean false
    You have to restart Safari for it to take effect.
    If Safari seems to hang for ages:
    If you have a lot of tabs open and/or a lot of pages running Flash, Safari can sometimes 'hang', requiring a restart of Safari. This can often be inconvenient, and as it is rarely Safari itself that is hanging but merely one of its plug-ins, usually Flash, there is a way using Terminal to restart the plug-ins (without restarting Safari and losing your tabs) by quitting the WebPluginHost process:
    Open the Terminal from the Utilities folder in /Applications and type
    killall -9 WebKitPluginHost
    Note that this command kills all Safari plug-ins, not just Flash. All plug-ins should start back up when you reload the page.
    Then go back to Safari and refresh any pages that were using the Flash plug-in. This also fixes the Beachball of Death. Try this whenever Safari gets slow or freezes. The later versions of Flash 10.1 onwards appear to have improved the situation somewhat, but haven't completed eliminated it.
    For this and other reasons Apple switched their websites to HTML5 in January 2011:
    http://www.appleinsider.com/articles/11/01/26/apple_revamps_its_public_website_u sing_html5.html
    For Snow Leopard/Lion users this should also be read:
    http://support.apple.com/kb/TS3408

  • Very Slow Query due to Bitmap Conversion

    I have a strange problem with the performance of a spatial query. If I perform a 'SELECT non_geom_column FROM my_table WHERE complicated_join_query' the result comes back sub-second. However, when I replace the column selected with geometry and perform 'SELECT geom_column FROM my_table WHERE same_complicated_join_query' the response takes over a minute.
    The issue is that in the second case, despite the identical where clause, the explain plan is significantly different. In the 'select geom_column' query there is a BITMAP CONVERSION (TO ROWIDS) which accounts for all of the extra time, where as in the 'select other_column' query that conversion is replaced with TABLE ACCESS (BY INDEX ROWID) which is near instant.
    I have tried putting in some hints, although I do not have much experience with hints, and have also tried nesting the query in various sub-selects. Whatever I try I can not persuade the explain plan to drop the bitmap conversion when I select the geometry column. The full query and an explanation of that query are below. I have run out of things to try, so any help or suggestions at all would be much appreciated.
    Regards,
    Chris
    Explanation and query
    My application allows users to select geometries from a map image through clicking, dragging a box and various other means. The image is then refreshed - highlighting geometries based on the query with which I am having trouble. The user is then able to deselect any of those highlighted geometries, or append others with additional clicks or dragged selections.
    If there are 2 (or any even number of) clicks within the same geometry then that geometry is deselected. Alternatively the geometry could have been selected through an intersection with a dragged box, and then clicked in to deselect - again an even number of selections. Any odd number of selections (i.e. selecting, deselecting, then selecting again) would result in the geometry being selected.
    The application can not know if the multiple user clicks are in the same geometry, as it simply has an image to work with, so all it does is pass all the clicks so far to the database to deal with.
    My query therefore does each spatial point or rectangle query in turn and then appends the unique key for the rows each returned to a list. After performing all of the queries it groups the list by the key and the groups with an odd total are 'selected'. To do this logic in a single where clause I have ended up with nested select statements that are joined with union all commands.
    The query is therefore..
    SELECT
    --the below column (geometry) makes it very slow...replacing it with any non-spatial column takes less than 1/100 of the time - that is my problem!
    geometry
    FROM
    my_table
    WHERE
    primary_key IN
    SELECT primary_key FROM
    SELECT primary_key FROM my_table WHERE
    sdo_relate(geometry, mdsys.sdo_geometry(2003, 81989, NULL, sdo_elem_info_array(1, 1003, 3), sdo_ordinate_array( rectangle co-ords )), 'mask=anyinteract') = 'TRUE'
    UNION ALL SELECT primary_key FROM my_table WHERE
    sdo_relate(geometry, mdsys.sdo_geometry(2001, 81989, sdo_point_type( point co-ords , NULL), NULL, NULL), 'mask=anyinteract') = 'TRUE'
    --potentially more 'union all select...' here
    GROUP BY primary_key HAVING mod(count(*),2) = 1     
    AND
    --the below is the bounding rectangle of the whole image to be returned
    sdo_filter(geometry, mdsys.sdo_geometry(2003, 81989, NULL, sdo_elem_info_array(1, 1003, 3), sdo_ordinate_array( outer rectangle co-ords )), 'mask=anyinteract') = 'TRUE'

    Hi
    Thanks for the reply. After a lot more googling- it turns out this is a general Oracle problem and is not solely related to use of the GEOMETRY column. It seems that sometimes, the Oracle optimiser makes an arbitrary decision to do bitmap conversion. No amount of hints will get it to change its mind !
    One person reported a similarly negative change after table statistic collection had run.
    Why changing the columns being retrieved should change the execution path, I do not know.
    We have a numeric primary key which is always set to a positive value. When I added "AND primary_key_column > 0" (a pretty pointless clause) the optimiser changed the way it works and we got it working fast again.
    Chris

  • ACR 7.1 - very slow on Mac mini

    Hi
    I'm running the trial version of CS6 on a new Mac mini.
    I like the features in ACR 7.1 but I'm finding it very slow.
    Dragging the Temperature slider takes about 5 seconds before the image updates. Is this normal?
    This is with just one Nikon D700 Nef open in ACR, and no other apps running. I've already worked the file up, making adjustments to lens correction, sharpening, noise reduction, and using a couple of adjustment brushes.
    If I progressively switch these settings off, the Temperature slider gradually goes back to being reasonably responsive. But I'd like to be able to fine tune the colour after doing these other adjustments.
    Any way I can speed it up?
    Thanks!
    Mac mini 2.7 i7, AMD 6630, 16Gb RAM, 7200rpm 750Gb HD.
    Eizo CG275W
    Photoshop CS6
    ACR 7.1.0.354
    Mountain Lion 10.8.1

    My dedicated CS6/ACR 7.x system is substantially more underpowered than your Mac Mini, yet I see no such lag in ACR.  Dragging the Temperature adjustment slider is practically real-time, with the preview refreshing in a fraction of a second that I can barely see and have no way of measuring.
    I'm now running ACR 7.2RC1, but I don't remember seeing a lag in ACR 7.1 either.
    My main working machine is a Power Mac (PPC) G5 Quad with 16 GB of RAM, on which 11.0.2 is the last version of Photoshop to run, so I have the Mac-Intel system described below just to run ACR 7.x under Photoshop 13.0.1.  I convert my raw files in ACR7.x open them in Ps 13.0.x and save them via Ethernet to an external HD connected to the G5 Quad for further processing in CS4. The Mac-Intel is used for no other purpose and the only other application I occasionally run on said Mac-Intel is TextEdit.
    2007, 2GHz MacBook 2,1, Intel Core 2 Duo, 4 GB of RAM (can use 3 GB), 160 GB internal boot disk, dedicated FireWire400 external HD for Ps scratch disk, external Time Machine HD.  Snow Leopard 10.6.8. 
    I literally rescued this MacBook from the trash, where it had landed when my wife was told by local Apple Macgenius staff that it was beyond repair, when in reality all that was wrong with it was a bulging battery exerting upward pressure on the track pad and keyboard.  That was easy to replace for $20 or so through Amazon.com. 
    So, from where I sit,  either you have a machine-specific problem somewhere, or the culprit in your issue is Mountain Poop.

  • "Save As" command with very slow Finder response in Tiger

    Ever since upgrading to Tiger using the "Archive & Install" option, my applications have had very slow operation of the "Save As" command. The Finder takes a long time to open and display the Save As window with folders and file name etc. This has occurred on all of my computers - a PowerMac G5, an iMac G4 and a PowerBook G4. It has not changed with upgrades as far as 10.4.5. I have tried the following suggested in another post about slow Finder actions without success:
    Refreshing and reblessing the following system files and the folder followed by reboot.
    1. /System/Library/Extensions.kextcache
    2. /System/Library/Extensions.mkext
    3. /System/Library/Caches/com.apple.kernelcaches/
    Trashing the following files and a folder followed by reboot
    1. /Library/Caches/com.apple.LaunchServices-xxxx.csstore
    2. /Library/Caches/com.apple.LaunchServices-xxxxxx.csstore
    3. /Library/Caches/com.apple.ATS/
    I have also deleted the /User/Library/Preferences/com.apple.finder.plist file and rebooted.
    Does anyone else have this problem and how do I solve it?
    PowerMac G5   Mac OS X (10.4.4)  

    Thank you Roger - this does seem to have solved the problem - my local Apple service people did not have an answer on this, so I'm grateful

  • Fetching data is very slow in workspace for planning application

    Hello Everyone,
    I am working in the web environment of a planning application and recently I have seen some issue's like Fetching data is very slow through webform's and the system will locking automatically and which kick me off from workspace when I refresh.So could you suggest me like what would be the reason's for this issue's.
    Thanks in advance

    Hi,
    Sounds like your form is very large or there are maybe a lot of dynamic calcs on the retrieval. How many rows and columns have you on the form ? Have you dense or sparse dimensions as rows or columns?
    Brian

  • ADF BC: create is very slow

    Hi
    I have the following scenario:
    An ADF BC application against a Oracle10g DB, aprox 30.000 rows in the DB.
    The client is using uix.
    The server is a standalone OC4J on linux. It has 512M RAM.
    When I want to create a new record via the browser, it is very very slow (20-40 sec.) I'm using the 'immidiate' update mode. However the search facility is fast, even if I lookup all the (30.000)rows. I use the same view object for both.
    Any ideas why the create function is slow, please.

    And this one as well
    ADF Mobile: Android performance is very slow - when will this be fixed?

Maybe you are looking for

  • "Your request is temporarily unable to be processed.  Please try again later" iTunes Store

    I have a user with a new iPad2, who has set up an iTunes account.  It takes her username and password, which it recognizes (it fails if she fat-fingers it).  Then it says that it is a new account, and offers her the terms and conditions which she agr

  • Photosmart C7280 All-In-One Wireless Not working

    My wireless printing was working fine with my Photosmart C7280 for about at least a year or more and now recently the wireless side stopped working. My Apple devices (both iPad and Macbook) stopped recognizing my printer. Even when I tried to add via

  • MOVED: Fans on full speed after graphics card removal

    This topic has been moved to GAMING Notebooks. https://forum-en.msi.com/index.php?topic=253215.0

  • Upgradation from IPS 6.2(1)e3 to 7.0(2)E3.

    Hi All.    Any separate license is required to upgrading os from 6.2(1)e3 to  7.0(2)E3 . Pls find the show version of IPS. sh version Application Partition: Cisco Intrusion Prevention System, Version 6.2(1)E3 Host:     Realm Keys            key1.0 Si

  • Problems Downloading Purchased Items? Help!!!!!

    Not enough access privileges for this operation? Please check that the network is active and try again???-- That is the notice that I get whenever I try to download some of the items that I already PURCHASED.... I hope that I didn't waste my money, a