Mview's taking a looong time to refresh. Any ideas?

I have the following mview below. We are running the refresh using the FORCE option nightly. There are times when the refresh takes hours and we have to kill the job. Then, we just do a drop/recreate of the mview and it completes in < 20 minutes. Anyone have any ideas as to why?
The merchant table has about 800k rows.
The merchant_transaction table has about 18 million rows.
I have included the explain plan of this query below.
CREATE MATERIALIZED VIEW CARS.MER_MERTXN_MV
TABLESPACE MVIEW_TB
NOCACHE
LOGGING
NOCOMPRESS
NOPARALLEL
BUILD IMMEDIATE
REFRESH FORCE
NEXT NULL
WITH PRIMARY KEY
AS
SELECT mt.merchant_num,
mt.transaction_ref,
mt.transaction_type,
mt.transaction_status_code,
mt.transaction_date,
mt.sale_date,
NVL(mt.transaction_credit_amt,0),
NVL(mt.transaction_debit_amt,0),
NVL(mt.open_credit_amt,0),
NVL(mt.open_debit_amt,0),
NVL(mt.reserve_bal,0),
NVL(mt.collection_bal,0),
NVL(mt.acct_bal,0),
m.coll_assigned,
m.acct_location_code,
m.acct_type_code,
m.marker_bank_code,
m.cost_center_code,
m.portfolio_code,
m.rowid,
mt.rowid
FROM merchant_transactions mt, merchant m
WHERE mt.merchant_num = m.merchant_num;
EXPLAIN PLAN
Operation     Object Name     Rows     Bytes     Cost     Object Node     In/Out     PStart     PStop
SELECT STATEMENT Optimizer Mode=ALL_ROWS          18 M          212259                     
HASH JOIN          18 M     2G     212259                     
TABLE ACCESS FULL     CARS.MERCHANT     791 K     40 M     9206                     
TABLE ACCESS FULL     CARS.MERCHANT_TRANSACTIONS     18 M     1G     96231

1. Yes, but they aren't being used as per explain plan. I added a hint which helped. The problem is when we do a complete refresh. The fast refresh works fine. However, we have times when there is so much data added, it decides to do a complete. We are running FORCE. Does it DELETE the data or TRUNCATE the data when it does a complete? It seems its doing a DELETE.
2. no rows
3. 10.1. No parallelism being used.

Similar Messages

  • Web-I Report taking lots of time to refresh when filters changed

    In BO XI 3.1 Web-I report is taking lot of time to refresh when any changes are made in edit query mode on the filters.
    When the query is runned for the first time it runs well, but if we make any changes in the filters pane, it is taking lots of time to refresh, and when we cancel the query web-i server is not releasing the server resources (CPU, Memory)
    Did anyone face this kind of a problem, and resolved it.
    Please let me know your thoughts
    Thank you

    Hi,
    why do you need 100K rows in your reports? Is there a way to consolidate/aggregate your data on the database?
    Comparing sqlplus and BOBJ is a little bit unfair. Let me explain you why:
    sqlplus starts displaying data after the query returns the first results. I am sure that if you measure the time that sqlplus needs to display ALL rows, this should be way more than just 10 secs.
    On the other hand BOBJ will display something as soon as the first page can be created. Depending on the way your report is structured, it may be the case that the WebI server should first get ALL rows in order to be able to display the first page of your report. This is for example the case if you let the total number of pages being displayed or if you display total sums already at the header of your report or if you have added a chart based on your data also in the header of your report. Of course, after the first call the report will be cached (and thus fast to be displayed) until you change again the parameters values for your query.
    Since you do not display (or do you use this function in a variable or a formula, maybe?) the total number of pages in your report, I can only assume that you either trying to display total sums (or other kinds of aggregated values) or a chart in the first page of your report. Can you confirm this?
    Regards,
    Stratos

  • I have downloaded iTunes 10.5 but after it downloads it vanishes and I can not locate the file anyway on my PC.  I have done this a few times now. Any ideas?

    have downloaded iTunes 10.5 but after it downloads it vanishes and I can not locate the file anyway on my PC.  I have done this a few times now. Any ideas?

    This has happened to me over the last few hours. iTunes just would not open, so I uninstalled and downloaded again. Still refuses to open. iPhone cannot be synced as a result. Help anyone...

  • When I try and Share a project, I get a Quick Time Error -50  Any Ideas?  Apple Care is scratching thier heads.

    When I try and Share (export) a project, I get a Quick Time Error -50  Any Ideas?  Apple Care is scratching their heads.

    Okay, after several hours on the phone w/ Apple Care includiing nearly 10 hours on Wednesday, we finally figured out why I would get a Quicktime Error -50 when I tried to share a project out of FCP X.  The problem was in the music track that I had in the project.  I ripped a track from an audio CD, put in my iTunes then imported into the FCP timeline just as Apple says to do.
    The problem is; iTunes default rippping codec is AAC.  FCPX can't handle AAC compression.  I had to re-rip the audio CD to a uncomressed AIFF file, bring that back into my project and then FCPX could share the file and do it's own copression.
    This was a new discovery for Apple and FCPX.

  • I have music in the cloud but only plays one at a time, anyone have any idea how to solve this please?

    I have music in the cloud but only plays one at a time, anyone have any idea how to solve this please?

    - Transfer iTunes purchases by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - Transfer other music by using a third-party program like one of those discussed here:
    Copy music from Ipod to new computer...: Apple Support Communities
    You may have t opurchase one.  Some only do a limited number of transfers without paying.
    - Make a backup of yur iPod by connecting the iPod to the computer and right clicking on the iPod under devices in iTunes and selecing Backup.
    - Restore the iPod from that backup.

  • Delta Sync taking too much time on refreshing of tables

    Hi,
    I am working on Smart Service Manager 3.0. I have come across a scenario where the delta sync is taking too much time.
    It is required that if we update the stock quantity then the stock should be updated instantaneously.
    To do this we have to refresh 4 stock tables at every sync so that the updated quantity is reflected in the device.
    This is taking a lot of time (3 to 4 min) which is highly unacceptable from user perspective.
    Please could anyone suggest something so that  only those table get refreshed upon which the action is carried out.
    For eg: CTStock table should get refreshed only If i transfer a stock and get updated accordingly
    Not on any other scenario like the changing  status from accept to driving or any thing other than stocks.
    Thanks,
    Star
    Tags edited by: Michael Appleby

    Hi fiontan,
    Thanks a lot for the response!!!
    Yeah!! I kow it's a lotta code, but i thought it'd be more informative if the whole function was quoted.
    I'm in fact using the PrintWriter to wrap the BufferedWriter but am not using the print() method.
    Does it save any time by using the print() method??
    The place where the delay is occurring is the wile loop shown below:
                while(allitems.hasMoreElements()){
                String aRow = "";
                    XDItem item = (XDItem)allitems.nextElement();
                    for(int i =0 ; i < props.length; i++){
                         String value = item.getStringValue(props);
         if(value == null || value.equalsIgnoreCase("null"))
              value = "";
                             if(i == 0)
                                  aRow = value;
                             else
                                  aRow += ("\t" + value);
    startTime1 = System.currentTimeMillis();
    System.out.println("time here is--before-writing to buffer --out.flush() done: " +startTime1);
    bufferWrt.write(aRow.toCharArray());
    out.flush();//added by rosmon to check extra time taken for extraction//
    bufferWrt.flush();//added by rosmon to check extra time taken for extraction//
    bufferWrt.newLine();
    startTime2 = System.currentTimeMillis();
    System.out.println("time here is--after-writing to buffer : " +startTime2);
    What exactly happens is that after a few loops it just seems to sleep for around 20 seconds and then again starts off and ............it goes on till the records are done.
    Please do lemme know if you have any idea as to why this is happening !!!!! This bug is giving me the scare.
    thanks in advance

  • Can't back-up new iMac with fusion HD.  The back-up proceeds to within 10% of the total storage needed and then the "of" number increases.  I suspect there is a problem with backing up the fusion drive.  We have a new 3 TB time Capsule.  Any ideas?

    Can't back-up new iMac with fusion HD.  The back-up proceeds to within 10% of the total storage needed and then the "of" number increases.  I suspect there is a problem with backing up the fusion drive.  We have a new 3 TB time Capsule.  I tried excluding different parts of the software from the back-up but it didn't make any difference.  I even tried exluding "invisible items" to no avail.  Any ideas?

    When you setup the wireless and ethernet in the computer.. ipv6 will be on automatic.. this is wrong for the latest TC firmware and airport utility. http://support.apple.com/kb/TS4597
    Go to the wireless and ethernet setup in preferences and change ipv6 to link local.
    Once you do the big backup by ethernet the wireless will function fine for incremental.. it is obviously not estimating the size correctly..
    A full back-up on the iMac would be about 650 GB.  The partial updates that I have been trying start out at 115MB and keep growing indefinitely.  The original back-up never finished nor have any of the follow-up attempts.
    The first estimate should be the full backup but it will keep growing as the backup advances.. I would also delete any inprogress files to make sure it is not messing up .. delete even a sparsebundle if there is one for the imac on the TC and start afresh once you have ethernet connection.
    See A10 here.
    Pondini may have some other clues there to give you an idea of why the backup is slow or not finishing.. there is a lot of issues with TM when it decides not to work.

  • I downloaded Lion on my iMac.  It apparently cleaned out the hard drive.  Nothing shows up from before.  It looks like a brand new computer.  It is backed up on Time machine.  Any idea of why this happened and suggestions on restoring?  Thanks.

    I downloaded Lion on my 4 yr old iMac.  The download stalled at the last minute so I clicked "CANCEL".  When it was restarted, Lion was there, with no apparent option but to go ahead and install so I assumed it was okay.  Didn't transfer data from "another computer" when prompted - assumed it would transfer from that computer.  It apparently cleaned out the hard drive.  It looks like a brand new computer.  None of my apps, programs,  files, or thousands of photos.   It is backed up on Time machine, but it's a sickening sight.  Any idea why this happened and suggestions before restoring?  Thanks.

    I cannot find this 300GB "Backup" in the Finder, only in the Storage info when I check "About This Mac".
    You are probably using Time Machine to backup your MacBook Pro, right? Then the additional 300 GB could be local Time Machine snapshots.  Time Machine will write the hourly backups to the free space on your hard disk, if the backup drive is temporarily not connected. You do not see these local backups in the Finder, and MacOS will delete them, when you make a regular backup to Time Machine, or when you need the space for other data.
    See Pondini's page for more explanation:   What are Local Snapshots?   http://pondini.org/TM/FAQ.html
    I have restarted my computer, but the information remains the same. How do I reclaim the use of the 300GB? Why is it showing up as "Backups" when it used to indicate "Photos"? Are my photos safe on the external drive?
    You have tested the library on the external drive, and so your photos are save there.  
    The local TimeMachine snapshot probably now contains a backup of the moved library.  Try, if connecting your Time Machine drive will reduce the size of your local Time Machine snapshots.

  • Mac mini core2 duo 10.7.2 not seeing files on usb external drives - mac formatted - ownership ignored-  until finder refresh - any idea

    finder has problems showing folders& files on external drives on mac mini with 10.7.2
    this is affecting 2 external usb drives both mac formatted - ownership ignored
    i click on the drive and see nothing
    a refresh of the finder window will make the files appear
    if i click on a disclosure arrow, the arrow turns down but no files are displayed
    if i double click on the folder it opens that folder in an empty view - a refresh will bring the files visible
    interestingly if i eject the drive and plug back it , it will usually display the contents of folders already visited last time but not folders i hadn't looked at - they require a refresh
    programs such as iTunes can link to those files when they are not visible in finder
    anyone else run into this - any suggestions
    oh and drives seem to be working fine on my macbook pro with 10.7.3
    cheers folks
    Simon

    John -I'm pretty sure it the mac mini thats having the issue
    the two drives - each with their own cable - seem to work perfectly with my other mac
    the mac mini is having no problem reading the files itunes and other programs access the files on the drives without a problem
    its just the finder is not displaying the files without a refresh of the view
    but thanks anyway

  • My MacBook Pro will not boot up. I just get a grey screen with a "no entry" symbol and a spinning time icon. Any ideas as to how I can get over this issue?

    Hi, I tried to start my MacBook Pro are 2 weeks and all I get is a grey screen with a grey no entry sign and a spinning timer. I have tried a reboot with shift cmd and v and it seems to be looping and referring to an external device. Only the power is attached. Can anyone provide advice on how to get past the grey screen? Many thanks.

    Does the system automatically back up data?
    No.
    As you can getto the Recovery partition, you can at least verify your disk using Disk Utility. If it reports that repairs are needed, you can try to repair but I've found that nearly 100% of the time repairing the disk inevitably FAILS. You should be prepared to, 1) buy a new drive for your machine and, 2) buy a good (see here) enclosure for your damaged drive to try to recover data.
    After you get everything fixed, use at least two backup methods to keep your data secure. See Most commonly used backup methods.
    Clinton

  • IMac can't find my attached external hard drive for Time Machine.  Any ideas?

    I have a Seagate for Mac external hard drive I have been using for my Time Machine backups.  Last week it was no longer backing up.  I unplugged it, reattached but Time Machine doesn't seem to be able to find it.

    Sounds like the external disk drive has died.
    If you have access to another computer, try testing it there. If not, you might be able to get the Apple Store to test it for you.

  • My Time Capsule won't back up. It's stuck on 'calculating time remaining'. Any ideas?

    My Time Capsule started playing up again lately, it simply won't back up and it appears that nothing is actually backed up on it at all. I've had it for over two years and have had trouble with it in the past. I just wonder if it is faulty. Do I need to take it into an Apple shop to get techinical assistance or is it something I'm doing wrong with the back-ups?
    Cheers,
    Cathie

    If you live near an apple store I am sure a Genius can check it for you.. but unless it brings up a fault condition, I doubt it is faulty.
    The TC does nothing at all.. really it is a hard disk in a router.
    TM is software on the computer and it can have loads of issues.
    I strongly recommend using the info from pondini to help you analyse the problem.
    I also recommend you download and try out some other backup utilities. The plain fact of it, TM is too complicated for its own good.
    A simple way to check is to plug a USB drive into the computer and make a Time Machine backup to that drive instead of the TC.. if it works. the issue is more likely the network than anything.. and with each update more and more network problems are creeping in.
    From your profile you are using Snow Leopard.. which was highly stable and reliable.. but my guess is the latest acting up is because you installed Mavericks???
    TM widget. A1
    http://pondini.org/TM/Troubleshooting.html
    Because otherwise you have no idea what TM is actually doing.
    A4, do a full TM reset.
    A5 because long prep times are often the result of corrupt drives.
    It can also be network.. is the TC plugged in by ethernet to the main router.. and by ethernet to the computer. If it is wireless joining the network, it will never be reliable.

  • Absurd Time Machine Error - any ideas?

    Hi everyone. I'm getting a repeated error on a "Failed" Time Machine backup:
    "This backup is too large for the backup disk. The backup requires 38.88 GB but only 575.8 MB are available."
    Does this ring any bells out there? The backup is to an external LaCie USB drive. Thanks in advance...

    How much free space is actually on the backup drive? According to the error it's only 576 MB (Megabytes.) The backup requires 39 GBs (Gigabytes.) A GB is 1,000 MBs, so according to the error you don't have sufficient space.

  • My Finder crashes every time I enter Time Machine. Any Ideas?

    The only way to get it to relaunch is the turn off the backup drive or use the power button on the mac.
    Console:
    7/29/11 6:38:38 AM    com.apple.launchd.peruser.501[120]    ([0x0-0x20020].com.apple.systempreferences[308]) Exited: Terminated
    7/29/11 6:38:38 AM    loginwindow[39]    *** -[NSCFArray objectAtIndex:]: index (2) beyond bounds (2)
    7/29/11 6:38:38 AM    com.apple.loginwindow[39]    2011-07-29 06:38:38.274 loginwindow[39:107] *** -[NSCFArray objectAtIndex:]: index (2) beyond bounds (2)
    7/29/11 6:44:23 AM    [0x0-0x5a05a].com.apple.systempreferences[1251]    Couldn't find any matches.
    7/29/11 6:45:51 AM    com.apple.launchd.peruser.501[120]    (com.apple.Finder[126]) Exited: Killed

    I'm having the same issue on a Black 2Ghz MacBook.
    Each time I attempt a Time Machine backup it cause a spinning color ball and Finder stops thus locking up everything.
    I have to force Restart each time. Issue caused me to restore and reinstall Snow Leopard again. Never had this problem before 10.6.8 software update. Using Disk Utility is a joke, it constantly repairs the same issue over and over again. I also performed a reset to the reset to the PRAM and I'm still having the same issue.

  • My JTextArea content is not refreshed, any ideas suggestions

    Hi, I have a swing application which contains two text areas, during some process I print information in the textareas but information only appears once the "do while" is finished. Also I call a pause() which only is supposed to pause between each line but as I said the text area is only filled once the loop is over � thanks in advance for any good suggestions.

    do{
    outputContent("aaaaa");
    pause(3000);
    }while(action != null)

    �.
    pause(long p){
    try {
    Thread.sleep(p);
    catch(InterruptedException e) {
    e.printStackTrace();

    outputContent(String p)
    txtainfo.append(pt);
    txtainfo.append("\n\r");
    txtanotify.append(p);
    txtanotify.append("\n\r");

    All the events in Swing are registered with an Event Queue.
    The queue dispatches events one by one. Components continues adding events in Queue and Queue continues dispatching events one by one. Repaint is one of that event. When a component think to repaint itself, it adds PaintEvent in Queue and Queue dispatches the event on it's required time.
    In your case on each append the PaintEvent is added in the Queue but the thread is slept so after all appends all the paint events are fired one by one.
    If you run your do-while loop into a thread then this thing will not happen as your new thread will sleep rather than main thread. So you can consider following:
    new Thread(){
    public void run(){
    do{
    // write content and pause
    } while();
    }.start();
    May this help you.
    Regards,

Maybe you are looking for

  • Problem with code need a little help

    change it and still comes up the same don;t understand what is wronge with it. new in codeing using dreamweaver c5          Line 39,        Column 35:     document type does not allow element "div" here; assuming missing "object" start-tag     <div i

  • ITunes Library Keeps Disappearing (database files get deleted)

    Hello Everyone, I have seen quite a few discussions regarding this problem, but the majority of the threads are resolved as the source of the error was a program loaded on a Sony Vaio computer.  However, I have an HP, so that doesn't apply to me. My

  • Integrating WebLogic Server with CA SiteMinder Web Agent R6

    Hi I have searched on the topic of integrating WebLogic Server with the CA SiteMinder Web Agent R6 to provide single sign on services, and have been unable to find anything. Does anyone have any experience with this that could provide some tips, or c

  • IPhoto old version download

    Hi, I have installed OSX 10.9 and the system is very buggy so i chose to go back to OSX 10.7 witch is the best for my imac, but now i can't install iPhoto from app store anymore, it say i need osx 10.9 or later, where can i download old versions comp

  • Fulldisk encryption with a gpg encrypted key?

    Hi all, anyone know if it is possible to encrypt a root partition using a gpg encrypted key? To create it and open it I would use something like this. #dd if=/dev/urandom bs=512 count=4|gpg –symmetric –a > ./rootkey.gpg #gpg --quiet --decrypt rootkey