Why materialized view taking hours and yet not created

hi,
i am trying to create the following MV
create materialized view MV1
force on demand
start with date 1 next date2
AS
select query 1--> complex query that return approcimately 2 millions rows
union all
select query2 --> complex query that returns 300K rowsit has been taking hours i.e > 4 hrs and still unable to create the MV
w/o the create materialized view statement i am able to return the results from the union of the 2 queries
what might be the possibility ?
tks & rdgs

Issue could be due to the complexity of your query..Even i faced the same issue when i worked on materialized views.It was taking too long to create materialized view and then we splitted the query and created two materialized views.
Finally created a View for those MV's.You can also try the same
Materialized View Log
When you create a materialized view using the FAST option you will need to create a view log on the base tables.A fast refresh uses materialized view logs to update only the rows that have changed since the last refresh.
When DML changes are made to the master table's data, Oracle stores rows describing those changes in the materialized view log and then uses the materialized view log to refresh materialized views based on the base table. This process is called an incremental or fast refresh.Without a materialized view log, Oracle must reexecute the materialized view query to refresh the materialized view. This process is called a complete refresh.Usually, a fast refresh takes less time than a complete refresh.
You can go through the below link
http://www.lc.leidenuniv.nl/awcourse/oracle/server.920/a96567/repmview.htm
Thanks
Suni

Similar Messages

  • ORA-23401: materialized view ""SYS"".""MV_OPTIONS"" does not exist

    Oracle 11gR1
    Linux Red Hat 6.3
    I have never seem this object SYS.MV_OPTIONS before much less know why it would be missing. Any ideas?
    I can no longer refresh my materialized views.

    Process worked fine until the addition on new MVs.
    What causes error?
    Running SP that calls DBMS_MVIEW.refresh. Here is the error in more detail...
    "ORA-23401: materialized view ""SYS"".""MV_OPTIONS"" does not exist
    ORA-06512: at ""SYS.DBMS_SNAPSHOT"", line 2545
    ORA-06512: at ""SYS.DBMS_SNAPSHOT"", line 2751
    ORA-06512: at ""SYS.DBMS_SNAPSHOT"", line 2720
    What has been changed?
    Added new materialized views to my instance that need periodic refreshing.
    Note: Running the block below works fine ....
    begin
    DBMS_MVIEW.refresh('MV_MINE');
    end;
    I suspect something in the process that calls this function is the issue (of course). But I still wonder what the object SYS.MV_OPTIONS is/does?

  • When my Mac battery dies and I turn it back on, it always crashes on the grey screen with the progress bar, then it restarts (taking forever) and does not remember any of the programs I was running. MacBook Pro 13 inch running Mavericks

    When my Mac battery dies and I turn it back on, it always crashes on the grey screen with the progress bar, then it restarts (taking forever) and does not remember any of the programs I was running. MacBook Pro 13 inch running Mavericks

    http://osxdaily.com/2014/10/17/os-x-yosemite-installation-stuck/
    also use the Command-L to view logs during installation

  • Materialized view taking long time to refresh

    I want to understand why materialized view refresh takes more time than running the sql for the materialized view.
    For example say I have a materialized view test_mv which is created as below; When I run just the select statement i get the result within 34 secs whereas if I try to refresh it using
    BEGIN
    DBMS_MVIEW.refresh ('wi_mv7_monthly','C',ATOMIC_REFRESH=>false);
    end;
    /This takes around 74 secs
    MV creation
    Oracle version : Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    create materialized view TEST_MV
      COLUMN_NAME_1,
      OBJECT_NAME,
      COLUMN_ID,
      "SUM(C.DATA_LENGTH)"
    ) organization heap
    partition by list (COLUMN_ID) (
    PARTITION "first_10_col" VALUES
        1, 2, 3, 4, 5, 6, 7, 8, 9, 10
       PARTITION "After_10_col" VALUES
        11,12, 13, 14, 15, 16, 17, 18, 19, 20
       PARTITION "NONE" VALUES (DEFAULT)
    BUILD IMMEDIATE USING INDEX REFRESH COMPLETE ON DEMAND USING DEFAULT LOCAL ROLLBACK SEGMENT USING ENFORCED CONSTRAINTS
    as
    select  /*+ parallel(o,8) parallel(c,2) */
    C.COLUMN_NAME as COLUMN_NAME_1,O.OBJECT_NAME,C.COLUMN_ID,SUM(C.DATA_LENGTH) from ALL_OBJECTS O
    join ALL_tab_columns c on c.table_name=o.object_name
    group by
    C.COLUMN_NAME,O.OBJECT_NAME,C.COLUMN_IDEdited by: user627047 on Sep 6, 2012 6:56 AM

    I want to understand why materialized view refresh takes more time than running the sql for the materialized view.Mview has to save the data as well .

  • TS3682 i earsed my iphone frome icloud and it didn't never work it still loading for 3 hours and still not working ? please help me so fast

    i earsed my iphone frome icloud and it didn't never work it still loading for 3 hours and still not working ? please help me so fast

    First man up and admit, that itunes does not suggest, but tells you that update is available and you made a
    decision to download and update. Once you man up - think if you still under warranty. If that is not security
    software according to the link provided, it is hardware. So second try another network, may be your network
    has additional security or firewall. And third decide if it worth to you pay 149 for that phone or get it replaced.
    Unless your 3gs under warranty.

  • Cover Flow & Landscape View On Photo and Camara not working

    Cover Flow & Landscape View On Photo and Camara not working.
    Reset the iPhone. Made iTunes lib manual. Still does not work.
    Help.

    do you have the portrait lock on?
    double click the home button to bring up the mutitask bar. slide it to the left and there is a portrait lock and ipod controls. Make sure it is not locked. If this is not it i would try a hard reboot.

  • ERGH my iphone 5 has been charging for over 4 hours and will not turn itself on, what do i do?! reply asap please

    ERGH my iphone 5 has been charging for over 4 hours and will not turn itself on, what do i do?! reply asap please

    Try resetting it while it is connected to power: Hold down the home and sleep button, wait for the Apple logo, let go of the buttons. It is connected to a wall charger?

  • After I updated OTA stopped taking charge and does not find the network.

    Почему после обновления ОТА перестал брать зарядку и не находит сеть?????????????? z10 stl100-2
    After I updated OTA stopped taking charge and does not find the network.
    И такая же проблема на всех 10.3.1. прошивках, а на 10.3.0. такого нет и даже не знаю с чем это связано, Живу в Белоруссии,
    And the same problem on all 10.3.1. firmware, and 10.3.0. such is not and do not even know what it is connected, I live in Belarus, help pls

    Привет! 
    В общем вышла новая прощивка ОС 10.3.1.2558 для Blackberry z30 - она оффициальная только для з30, но я себе поставил на з10 и все норм. На форумах Крэкберри, ребята с такой же проблемой (нет сигнала, аккум не заряжается, камера не работает) исправили все эти ошибки установив данную прошивку.
    Я вчера тоже поставил ее себе на телефон и все работает, вообще нет никаких проблем. Я устанавливал автолоадер. 
    В общем мне эта прошивка решила все проблемы и полноценно теперь пользуюсь 10.3.1
    Удачи!

  • How long should it take to convert an 80 page doc?  It's been two hours and still not working

    how long should it take to convert an 80 page doc?  It's been two hours and still not working

    Hi Mary,
    I apologize for the delay. What size if your document? There is a 100MB limit.
    Let me know!
    Looking forward to hearing back from you.
    Kind regards, Stacy

  • Can not open JPEG files and can not create JPEG files from other software

    Can not open JPEG files and can not create JPEG files from other software (For example from Solidworks).
    When I try to right click on a JPEG, a notice window appears written: "Windows Explorer has stopped working - Windows is
    checking for a solution to the problem" and then the notice box disapears, the desktop appears and I can continue working.
    From the other side - If I try to save as JPEG a screen of Solidworks (like a view of a part) the Solidworks falls but the JPEG
    is created (I can see its name in the directory I created it).
    I can open the JPEGS with the Paint software if I want but not with the Windows Photo Viewer.
    I have the feeling that the Windows Photo Viewer disapeared from my computer - just a feeling.
    I will appreciate your assistance.
    Avi T. 2014

    Hi,
    Did Windows Photo Viewer option appear when you right click the JPEG file and select open with?
    I would like suggest you use Clean Boot to troubleshoot if there is third-party software conflict:
    How to perform a clean boot in Windows
    http://support.microsoft.com/kb/929135
    Karen Hu
    TechNet Community Support

  • DBCA errors and do not create DB

    While I try to create DB using Oracle 9i DBCA, I get error that /etc/oratab file doesn't exist and do not create DB on Unix tru64.
    I already have many DBs on the server, I need to create a small test DB.
    I see the oratab file exist but is renamed with suffix like oratab_h
    now how do I point DBCA to that oratab file. I dont want other db to be disturbed if i run root.sh file.
    any suggestions, shall rename the oratab to original name or run root.sh? what the best solution.
    This looks like Oracle RAC version of DB Software.
    When i open DBCA i get option like:
    What type of database would you like to create or administer?
    1) Oracle cluster database
    2) Oracle Single instance database
    I found no diff in both the options to create DB.
    Appreciate sugestions.
    Thanks

    *** Duplicate Post ***
    KN ... it is not acceptable to repost the same question. If no one answers it is because they don't know the answer or don't wish to answer (we are all volunteers).
    Thank you.

  • How to view the input and output layouts created in the planning folder?

    Hi all,
    How to view the input and output layouts created in the planning folder in the bw 3.5?
    Thanks
    Pooja

    Hi,
    You can refer to this link. How to create planning folder and executing the planning folder.
    http://help.sap.com/saphelp_nw04/Helpdata/EN/5d/7c4b52691011d4b2f00050dadfb23f/frameset.htm
    Hope this helps

  • Does anyone know why it is taking hours to download an OS7 upgrade?  i have fast FIOS connection and my connectivity is excellent at the moment.

    Seems beyond strange.  I have tried multiple times over the last 24 hours and am still getting the same horribly poor performance.  Please help!

    Forget the iPhone for a moment.
    Will Sprint unlock any phone purchased from them to be used on another carrier?  If the answer is no, why should an iPhone be any different?
    That being said, the 4S is a world phone meaning it has GSM and CDMA antennas.  The iPhone 4 is not.. it is either CDMA (Sprint/Verizon/Cricket) or GSM (AT&T, any number of European carriers, unlocked).
    I have never personally known a CDMA carrier to "unlock" a device they sell to allow it to work on another network.  Both Sprint and Verizon will unlock the GSM portion of the 4S for International only use.
    That $800+ dollar new phone you purchased still works perfectly fine as an iPod touch once off contract or can be sold to another Sprint user to recoup some of your investment.
    In the end, it is a decision you have to make as to whether it is financially worthwhile to you to purchase a new phone every year.  If you can afford it financially and determine that it is worthwhile to you, then do so.  Otherwise, do like millions of others and wait until you are eligible for the subsidized pricing or enjoy your device for as long as you can until it finally dies or becomes too "slow" to use.  My 3GS is still running strong after 3+ years and my partner uses it daily as his primary phone/media player.

  • Why do my signatures sync and yet they do not?

    I set up my mail signatures on one Mac. And I choose a different signature for each email account.
    Then I reset MobileMe with those signatures.
    My other Macs are then synchronized by replacing their signatures with the ones from MobileMe. And I choose which signatures to use for each account.
    Everything works for 1 -3 syncs.
    Then, I get the message that syncing will change my signatures. I did not change them.
    It shows me before and after signatures. They are the same.
    Then the other Macs also get the same message, and again the before and after are the same.
    And it goes on, and on, and on, always wanting to sync, without any changes.
    And eventually I notice that even though signatures are there, and were chosen for the different mail accounts, each account will have the choice of NONE instead of the actual signature.
    How can I fix this once and for all!

    Judy,
    Give this a try:
    *+Your signatures are stored as webarchive files in your <home>/Library/Mail/Signatures folder. There should be a webarchive file for each signature and they in turn are referenced in a SignaturesByAccount.plist file within the same folder. It is possible that the plist file has become corrupted and/or the signature files are corrupted. Move the SignaturesByAccount.plist file to the desktop and then re-create your signatures to see if that resolves the problem.+*
    I found that on another post (Thanks 2point5!)
    After you move the SignaturesByAccount.plist to the desktop and recreate the signatures, make sure you then go ahead and trash it. A new one will be made in the Signatures folder.
    So far this has worked for me.
    Good Luck
    John

  • IMac OS 10.8. My spotlight is indexing for hours, and still not done. Why?

    My spotlight has been indexing for hours and still no end in sight. Never did this before. What is happening?

    System Preferences/Spotlight/Privacy - try adding your hard drive there to see if it will stop. If it does, remove the hard drive and see if it will re-index normally.

Maybe you are looking for

  • Font change in Safari and Firefox after installing Snow Leopard...

    My apologies if this has been addressed: Immediately after updating from 10.5.8 to 10.6.2 the fonts displayed in both Safari and Firefox have changed. They are now a barely-legible "handwritten" font. I have attempted to resolve the issue to no avail

  • Update Photoshop CC 2014 failed Error U44M1I210

    Hello Forum members, does anyone have a solution? It seems to me, that there is a wrong entry in the registry of my Laptop. No one of the suggested Actions of Adobe was successfull. Ideas and Solutions would be very appreciated. Hermann

  • Query to find out controls displayed as in UI for an applet,along with view

    Hi, I am looking for a query to find out list of all the controls as displayed in UI applet along with applet's view. Please note that in the query only mapped controls (those displayed in UI ) should come up. Regards, Kunal

  • Close a shopping cart having partial delivery

    Hi, How can I close a shopping cart which is partially delivered ? Ex: I have mentioned quantiy 100 PC in shopping cart, a received 70 PC and invoice 70 PC against the shopping cart purchase order. As we don't expect any more material to be received

  • Zip file for Adobe LiveCycle ES3 Server trial download is corrupted

    Hello All, I have download the zip Adobe LiveCycle ES3 Server trial download multiple computers but every time I got the corrupted file. I am not able to extract installation zip file. I have download it for Jboss for windows with 7C1641C814956148DA1