FAST enabled MView takes ages to refresh

Hi All,
I have a materlialized view which is based on a single fact table ( OAS_BALANCE_UNIONED 11,445,156 rows) and a bunch of dimension tables each containing limited number of rows (a typical start schema).
The conditioins to make the mview fast refreshable have been met so the mview created successfully with the FAST option.
The mview then worked just fine after than and had been refreshing FAST (6 minutes) for the whole day till other mviews started to refresh in the same time. Some of those mviews read from some of the base tables of the mview in question. Since then, the mivew has started to take ages (3 hours) to refresh. There is surely something wrong because the COMPLETE refresh was faster than that.
Later, I stopped all the refresh jobs of the other mviews. Yet, the FAST mview still has the same problem of taking ages to refresh.
When I monitored the session that refreshes the mview, I noticed in the "Long Ops" that
most of the time is spent on a step named as "Hash Join" (it appears in the Message column). Hash join occurrs because of the outer join.
Why my FAST mview suddenly started to take so long time to refresh?
How can I make my FAST mivew really refresh fast?
Technical Details are below:
OS: Windows 2003 32-bit
DB version: Oracle 10g R1 ( 10.1.0.2.0 )
CREATE MATERIALIZED VIEW FACT_BAL_MV
BUILD DEFERRED
REFRESH FAST ON DEMAND
WITH PRIMARY KEY
AS
SELECT B.cmpcode  BAL_KEY,
       B.CMPCODE,
       B.YR,
       B.PERIOD,
       B.BALCODE,
       B.CURCODE,
       B.REPBASIS,
       TO_NUMBER (B.YR || LPAD (B.PERIOD, 2, 0)) DIM_PERIOD_MV,
       D_CMP.DIM_KEY DIM_COMPANY,
       D_CUR.DIM_KEY DIM_CURRENCY,
       D_EL_1.DIM_KEY DIM_EL_1,
       D_EL_2.DIM_KEY DIM_EL_2,
       D_EL_3.DIM_KEY DIM_EL_3,
       D_EL_4.DIM_KEY DIM_EL_4,
       GRP_1_P_EL.DIM_KEY DIM_GRP_1_P_EL,
       D_GRP_1_B_EL.DIM_KEY DIM_GRP_1_B_EL,
       D_GRP_1_K_EL.DIM_KEY DIM_GRP_1_K_EL,
       D_GRP_2_D_EL.DIM_KEY DIM_GRP_2_D_EL,
       D_GRP_3_E_EL.DIM_KEY D_GRP_3_E_EL,
       B.ROWID X_OB_ROWID,
       D_CMP.ROWID X_CMP_ROWID,
       D_CUR.ROWID X_CUR_ROWID,
       D_EL_1.ROWID X_EL_1_ROWID,
       D_EL_2.ROWID X_EL_2_ROWID,
       D_EL_3.ROWID X_EL_3_ROWID,
       D_EL_4.ROWID X_EL_4_ROWID,
       GRP_1_P_EL.ROWID X_GRP_1_P_EL_ROWID,
       GRP_1_P.ROWID X_GRP_1_P_ROWID,
       D_GRP_1_B_EL.ROWID X_GRP_1_B_EL_ROWID,
       D_GRP_1_B.ROWID X_GRP_1_B_ROWID,
       D_GRP_1_K_EL.ROWID X_GRP_1_K_EL_ROWID,
       D_GRP_1_K.ROWID X_GRP_1_K_ROWID,
       D_GRP_2_D_EL.ROWID X_GRP_2_D_EL_ROWID,
       D_GRP_2_D.ROWID X_GRP_2_D_ROWID,
       D_GRP_3_E_EL.ROWID X_GRP_3_E_EL_ROWID,
       D_GRP_3_E.ROWID X_GRP_3_E_ROWID
  FROM CLVE_STAGING.OAS_BALANCE_UNIONED B,
       FINANCE.DW_DIM_COMPANY D_CMP,
       FINANCE.DW_DIM_CURRENCY D_CUR,
       FINANCE.DW_DIM_EL_1 D_EL_1,
       FINANCE.DW_DIM_EL_2 D_EL_2,
       FINANCE.DW_DIM_EL_3 D_EL_3,
       FINANCE.DW_DIM_EL_4 D_EL_4,
       FINANCE.DW_DIM_GRP_1_P_EL GRP_1_P_EL,
       FINANCE.DW_DIM_GRP_1_P GRP_1_P,
       FINANCE.DW_DIM_GRP_1_B_EL D_GRP_1_B_EL,
       FINANCE.DW_DIM_GRP_1_B D_GRP_1_B,
       FINANCE.DW_DIM_GRP_1_K_EL D_GRP_1_K_EL,
       FINANCE.DW_DIM_GRP_1_K D_GRP_1_K,
       FINANCE.DW_DIM_GRP_2_D_EL D_GRP_2_D_EL,
       FINANCE.DW_DIM_GRP_2_D D_GRP_2_D,
       FINANCE.DW_DIM_GRP_3_E_EL D_GRP_3_E_EL,
       FINANCE.DW_DIM_GRP_3_E D_GRP_3_E
WHERE     B.CMPCODE = D_CMP.CODE
       AND (B.CMPCODE = D_CUR.CMPCODE(+) AND B.CURCODE = D_CUR.CODE(+))
       AND (B.CMPCODE = D_EL_1.CMPCODE(+) AND B.EL1 = D_EL_1.EL_CODE(+))
       AND (B.CMPCODE = D_EL_2.CMPCODE(+) AND B.EL2 = D_EL_2.EL_CODE(+))
       AND (B.CMPCODE = D_EL_3.CMPCODE(+) AND B.EL3 = D_EL_3.EL_CODE(+))
       AND (B.CMPCODE = D_EL_4.CMPCODE(+) AND B.EL3 = D_EL_4.EL_CODE(+))
       AND (GRP_1_P_EL.CMPCODE = GRP_1_P.CMPCODE(+)
            AND GRP_1_P_EL.GRP_CODE = GRP_1_P.GRP_CODE(+))
       AND (B.CMPCODE = GRP_1_P_EL.CMPCODE(+)
            AND B.EL1 = GRP_1_P_EL.EL_CODE(+))
       AND (D_GRP_1_B_EL.CMPCODE = D_GRP_1_B.CMPCODE(+)
            AND D_GRP_1_B_EL.GRP_CODE = D_GRP_1_B.GRP_CODE(+))
       AND (B.CMPCODE = D_GRP_1_B_EL.CMPCODE(+)
            AND B.EL1 = D_GRP_1_B_EL.EL_CODE(+))
       AND (D_GRP_1_K_EL.CMPCODE = D_GRP_1_K.CMPCODE(+)
            AND D_GRP_1_K_EL.GRP_CODE = D_GRP_1_K.GRP_CODE(+))
       AND (B.CMPCODE = D_GRP_1_K_EL.CMPCODE(+)
            AND B.EL1 = D_GRP_1_K_EL.EL_CODE(+))
       AND (D_GRP_2_D_EL.CMPCODE = D_GRP_2_D.CMPCODE(+)
            AND D_GRP_2_D_EL.GRP_CODE = D_GRP_2_D.GRP_CODE(+))
       AND (B.CMPCODE = D_GRP_2_D_EL.CMPCODE(+)
            AND B.EL2 = D_GRP_2_D_EL.EL_CODE(+))
       AND (D_GRP_3_E_EL.CMPCODE = D_GRP_3_E.CMPCODE(+)
            AND D_GRP_3_E_EL.GRP_CODE = D_GRP_3_E.GRP_CODE(+))
       AND (B.CMPCODE = D_GRP_3_E_EL.CMPCODE(+)
            AND B.EL3 = D_GRP_3_E_EL.EL_CODE(+));
CREATE INDEX FINANCE.DW_FACT_BAL_MV_INX
ON FACT_BAL_MV (X_OB_ROWID);
SQL> select count(X_OB_ROWID) from FACT_BAL_MV ;
COUNT(X_OB_ROWID)
         11444816
Elapsed: 00:00:27.85
SQL> select bytes/1024/1024/1024 GB from
user_segments where segment_name='FACT_BAL_MV';
        GB
4.4296875search id: redcorolla

Hard to say why the refresh is now slow. Possibilties include
* system resources implemented by the fast refresh
* something changed on the query making the background query run slowly
Look at the query first. 18 tables, with almost every join an outer join. Some of the tables appear more than once in the query.
Get an executioion plan to see how the query is being executed.

Similar Messages

  • TS3276 ppl i fed up with my mac air while using my exchange email account, it takes ages to refresh and it doesn't send or receive instantly , no clue although that the same setting and server names has been set up on my iPhone and it is working fine

    ppl i fed up with my mac air while using my exchange email account, it takes ages to refresh and it doesn't send or receive instantly , no clue although that the same setting and server names has been set up on my iPhone and it is working totally fine

    Install ClamXav and run a scan with that. It should pick up any trojans.   
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • IPhone 4S takes ages to refresh mobile signal

    My new iPhone 4S has just been delivered and I switched to use it from my old iPhone 4.  Despite the apparently better signal level of 4S, I found it is annoying that whenever I enter areas with no mobile coverage (e.g. Lift, underground carpark, etc.) and then come back to areas with mobile signals, it always take up to several minutes for the iPhone 4S to be able to pick up mobile signals.  My old iphone 4 (with IOS 4.3.3) will have mobile signal pick up nearly immediately.  Is my iPhone 4S faulty or is it a common problem of iPhone 4S?  Any fix for that?

    Can someone please check this one out for me. mine takes about 60 to 70 seconds to connect. please just switch off and switch on and let me know pleeeaaasee
    Thanks in advance.

  • My new iphone is running extremley slow, internet takes ages to load, apps take ages to install and has trouble connecting to app store. and the apps dont work properly like ebay wont open or refresh items, plz help

    my new iphone is running extremley slow, internet takes ages to load, apps take ages to install and has trouble connecting to app store. and the apps dont work properly like ebay wont open or refresh items, plz help
    my iphone4 is 10 times faster
    i have backed up on itunes and restored but still no luck
    even siri is lagging

    my new iphone is running extremley slow, internet takes ages to load, apps take ages to install and has trouble connecting to app store. and the apps dont work properly like ebay wont open or refresh items, plz help
    my iphone4 is 10 times faster
    i have backed up on itunes and restored but still no luck
    even siri is lagging

  • Nokia N95 8GB takes ages refreshing even for one t...

    Hi All.
    I have had this REALLY frustrating problem...
    Every time i add a track to my phone, then i refresh it takes AGES to update the library.
    Does anyone know how to fix this?
    Nokia N97 Mini
    V: 10.0.020 : 14/10/09
    RM-555
    Old: N95 8GB : V 20.0.016 : 28/09/08 : RM-320

    The reason it takes a while is that the phone has to scan all memory every time you refresh, doesn't matter whether you're adding/removing 1 track or 1,000 as the phone doesn't know what needs to be added without checking.
    One of the downsides of having more space.
    If you're deleting tracks from the library, you can still listen to other tracks while this is happening: I listen to a lot of podcasts and always delete the ones I've aleady listened to as I'm listening to a new one. Again, deleting 10 tracks together takes the same time as deleting one.
    If you want to listen to a track you've just added, you can do this while the music player library refreshes, just start playing it using file manager then switch to the library to do the refresh.

  • When i log on to thunderbird, the in box has the message, 'building summary file', this then takes ages to do . how do I stop it doing this every time I log on?

    Hello,
    This problem has only started happening in the last few days. Every time i log on the get emails, the inbox has a message saying 'building summary file'. it then takes ages to do this. i have tried deleting most of the in box and compacting the file but it still continues.

    Try restart the operating system in '''[http://en.wikipedia.org/wiki/Safe_mode safe mode with Networking]'''. This loads only the very basics needed to start your computer while enabling an Internet connection. Click on your operating system for instructions on how to start in safe mode: [http://windows.microsoft.com/en-us/windows-8/windows-startup-settings-including-safe-mode Windows 8], [http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-7 Windows 7], [http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-vista Windows Vista], [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx?mfr=true" Windows XP], [http://support.apple.com/kb/ht1564 OSX]
    ; If safe mode for the operating system fixes the issue, there's other software in your computer that's causing problems. Possibilities include but not limited to: AV scanning, virus/malware, background downloads such as program updates.

  • Finder extremely slow, trash takes ages and some USB-devices don't work

    My MacPro is lightning fast when booted without extensions (shift down), but when I boot normally some apps work fine, but the Eye TV usb receiver won't work.
    Emptying trash might take hours for 1 or 2 files.
    Copying files from one HDD to another takes ages
    Finder is extremely slow (takes forever to show contents of a mounted DMG).
    installing software will often not work.
    awkwardly enough FCP seems to work fine while simple use of the finder is nerve wrecking.
    iTunes won't launch.
    I've tried adding extra memory (got screwed into buying 4GB at extorniate price at the Apple retaier), cleaning up cache, flushing pram, removing Norton AV, removing all old Adobe apps, all tools I never use...
    I tried booting without USB and firewire devices.
    now the pc HDD connected show full size empty disks where one cannot write...
    I already learned to live with the fact that Snow leopard makes my HP Designjet and all my labelprinters from Brother useless, but I need to work. Does someone have an idea on how to get Snow Laggard to become a Snow Leopard?

    See:
    Mac Maintenance Quick Assist,
    Mac OS X speed FAQ,
    Speeding up Macs,
    Macintosh OS X Routine Maintenance
    Essential Mac Maintenance: Get set up,
    Essential Mac Maintenance: Rev up your routines,
    Maintaining OS X,
    Five Mac maintenance myths, and
    Myths of required versus not required maintenance for Mac OS X for information.

  • My imac 21" takes ages to load videos and websites. HELP

    i have a imac 21" that i got like 4 months ago and it was running safari and google chrome very fast but now its is very slow it takes ages for it to load a video from youtube or any other place and it takes longer time for it to load a page then it did befor...
    when i first got it i could open 1080 HD videos from youtube easly and the hole thing would load very fast but now i takes like 10 mins to load a very short video thats like 360p... Befor it could open a page in like 1 second and now its takes like 1 minute for it to load a very simple page...
    I have alot of memory left and i have ATT u-vers internet, and other apps that need internet run normal like itunes, twitter...
    plz help its getting really annoying. sometimes when i play Starcraft 2 it kinda slow too.

    anyone!?

  • ITunes takes ages to load

    When it finally does it takes ages to be able to select anything and when I plug in either my iPhone or iPad it freezes and has to be shut down throughout the control menu.
    Everything else starts and play correctly on the laptop

    Small update...
    WHen Itunes did eventually load... a few odd things happened.
    1. The icons on my toolbar flicked to white / blank and then came back
    2. Windows Update sprang into life and asked me to install 1 important update
    3. I got an error message
    The software required for communicating with iPods and mobile phones was not installed correctly. Do you want iTunes to try to repair this for you?
    5. I clicked Yes...
    6. It said it was checking my itunes library
    7. I got a message The Bonjour service has been disabled. Bonjour is required to share music with others. Please re-enable the service to use this feature
    8. This didn't seem to bad so clicked OK
    9. BUt then Itunes disappeared again. It is still running in processes but isn't open.
    Gah!!!!!!!!!!!!!!!!!

  • Google, Facebook etc take ages to load on Safari (and Firefox)

    There have been a few threads on this issue...but none seem to have a solution that works for us.
    We have two laptops (MacBook (MB) and MacBook Pro (MBP)) using an airport wireless.   The MP has all of a sudden decided that google and facebook will not load up straight away like they have always done in the past...they take ages to load up (we are talking "go get a coffee..and read the newspaper" times).  Other websites just fire up as fast as ever.   All sites fire up super fast on the MBP.
    What we have tried:
    1. Rebooted the modem, wireless router and computers
    2. Reset Safari, deleted and reinstalled Firefox 4.0.1.  Wiped out all caches , cookies etc
    3. Restored entire computer from time tunnel from a month ago...when life was good!
    4.. Changed/added DNS numbers to airport (via airport utilities) and change the airport settings (using openDNS numbers).
    5. Flushed the DNS resolver caches...
    Still no good....
    What are we missing?   What can the MB have to cause the issue that the MPB does not?
    MB is on OSX 10.5.8
    MBP is on OSX 10.6.7
    Please help...my wife uses the MB and is angry that her beloved Facebook and Google are just not working

    Ok.. from the Safari menu bar click Safari / Preferences then select the Extensions tab. If you have any installed, turn that off, quit then relaunch Safari, try Facebook.
    If it's not Extensions...  try troubleshooting Safari third party add ons.
    Safari: Unsupported third-party add-ons may cause Safari to unexpectedly quit or have performance issues

  • Having upgraded to yosemite on iMac it now takes ages to but up

    why is it since upgrading to Yosemite on my iMac it now takes ages to start up when using the start button?

    Different OS, different start up/boot up time.  Yes, Yosemite does have a slower boot up even on the fastest Macs.  The good news is that Yosemite restarts are faster than the boot up time.

  • Repairing permissions on OS X 10.5.2 takes ages

    When trying to repair permissions with Disk Utility from the installer DVD on my iMac, it takes ages until the actual repairing starts (about 4-6 minutes - blue/white ongoing colour flow). After it has started, permissions on the 320GB HD, whereof 65GB are used, are being repaired and it takes another 1-2 minutes. Why does it take so long until the actual repairing starts?

    My computer has about the same size disk and space used as your computer and it takes about 20-25 minutes to repair permissions. Tiger was much faster at repairing permissions but didn’t do as much checking.
    Long permissions repair times have been reported on this forum numerous times. The times I’ve seen range from a few minutes to over 30 minutes. Your iMac is faster than my G5.
    Also, at first it will hang at a point very early, reporting “about 1 minute remaining” - usually for several minutes - and then it will give a more realistic amount of time remaining. This has also been reported by other users.
    Go get some coffee or go for a walk while it does a thorough repair. The specific results will be there when you get back.

  • Synchronizing previews takes ages

    Since I use Lightroom on two computers, at home and at work, I synchronize my catalogue via a portable harddisk. That only takes a minute, but synchronizing the previews takes ages.
    Why? Because the previews (around 8000 in my case) are stored in over 10.000 folders. So more folders than files!! It takes my synchro-program (FileBack) ages to compare files in so many folders. And that is even when no file has been changed - just to see if there is a difference between source and destination.
    My question to the LR staff would be: why in so many folders?
    My question to the readers of this forum: can I store the previews in a different location than the catalogue? So I can synchronize the catalogue and not the previews (as they are not so very essential).
    Thanks.

    function(){return A.apply(null,[this].concat($A(arguments)))}
    Lee Jay wrote:
    Bob,
    Try it over wireless.  .
    No thanks!!  Even the slow usb2 is about 10 times faster, and if I was bothered about the time to sync, I could use my usb3 or esata ports. But I like the little 1TB WD Passport Essential 2.5" portable drives that are only usb2 at the moment. Wireless is just for hotels that can't afford wires.
    But I take your point about the number of preview folders; I've often wondered why they need so many. Most have just one preview in them; some have two or three, and some have none!
    Bob Frost

  • JPEG pictures take ages to load

    Can someone help me getting my web pages to load faster. I
    use pictures straight from my Nikon Camera and put them on my
    Dreamweaver web pages. When I open my pages on the web it takes
    ages for the pictures to load. How can I speed this up. Do I have
    to convert the pictures into another format? How do I do this,
    Thanks,
    Graeme.

    Don't use jpgs straight from your Nikon. Those are your
    source files and are
    designed to be printed. What you want on the web is a version
    slimmed down
    for the internet. Before you begin archive a copy direct from
    your camera to
    CD/DVD, back-up hard drive, someplace safe.
    Edit, crop or whatever you want to do to make your pictures
    better in your
    graphics editor of choice. If you have one of the Creative
    Suites use
    PhotoShop or Fireworks to do that. If not, your Nikon should
    have come with
    some basic photo editing software.
    When you are happy with what you have done to crop your
    images resize them
    to 72dpi and the dimensions you want the images to appear.
    Play with the
    compression settings to get the best balance between file
    size and image
    quality. Remember that on the web you want fast loading so
    sacrifice some
    image quality. Once you have achieved that balance then
    replace your
    bloated, ready for print images on your web pages and upload
    them all.
    Unless you are making the originals available for others to
    print remove
    them from your website to save you hosting space. If you are
    making them
    available to print link the larger print ready photo from
    your camera (or
    the cropped version that is not optimized if appropriate) to
    the image you
    display on your site. It may be helpful to visitors to know
    how large those
    linked files are if you make them available for print just to
    avoid
    surprises for those on slow connections.
    Cheryl D Wise
    Adobe Community Expert
    http://starttoweb.com
    "Graeme." <[email protected]> wrote in
    message
    news:fprvho$6ki$[email protected]..
    > Can someone help me getting my web pages to load faster.
    I use pictures
    > straight from my Nikon Camera and put them on my
    Dreamweaver web pages.
    > When I
    > open my pages on the web it takes ages for the pictures
    to load. How can I
    > speed this up. Do I have to convert the pictures into
    another format? How
    > do I
    > do this,
    >
    > Thanks,
    >
    > Graeme.
    >

  • Mb51 trx (movement type 101) - Doc info- FI Doçuments  takes ages

    Hello
    We are experienceing performance problem when accessing FI document (FB03) from MM document.
    in praxis this means when choosing an todays document in mb51 trx (movement type 101) ->Doc info->FI Doçuments
    it takes ages to get FI document
    Does anyone has idea how to make system faster in this regards
    Thank you in advance

    hi
    check out this SAP Notes
    555893  MB51: Preventing runtime error DBIF_RSQL_INVALID_RSQL 15.05.2008
    848474  MB_GET_MM_MATBEL: Performance problem 21.08.2007
    857311  MB_GET_MM_MATBEL: Performance problem / error
    921164  MB51: Improving the runtime using database hints
    1608810  MB51: Enhancements for multiple account assignment MAA2

Maybe you are looking for

  • Payment Milestones in SRM?

    Hi At the organisation I work at, we have restricted back end SAP purchasing access and are pushing out the use of SRM instead as primary method for users to raise shopping carts, and have a number of catalogues setup for core commodities such as sta

  • How do i fix my ipod when the screen cracks

    how do i fix my ipod when the screen cracks

  • My ipad isnt disabling zoom. how to disable zoom?

    i browsed settings>general>accessibility>zoom & then tried to turn zoom off but i failed to do so. what's the solution?

  • Azure Authentication for Cloud Services

    I updated Visual Studio to Web Tools 2013.1 and the "Enable Azure Authentication" disappeared. I need to secure this application, the Azure AD and domain are done, but I can't seem to find how to do it in Visual Studio anymore. I keep getting the mes

  • Substring replacement

    Hello, i have a String like this one: String input="someText 'dothis' anotherText 'second \'Command\' is easy' itgoeson " and a method public String handle(String str){ What i want now is to replace input with String newInput="someText "+handle(dothi