materialized view issue [message #680513] |
Tue, 19 May 2020 09:20  |
 |
irashu2001@gmail.com
Messages: 3 Registered: May 2020
|
Junior Member |
|
|
1.I am trying to create materialized view on new DB and it’s taking 58 minutes but query used for creating materialized view is taking less than two minutes.
Note : we created materialized view with prebuilt option so it created in few seconds but refreshing in 7 minutes while our expectation is less than two minutes.
2.We are using DB link to execute query which is connecting PROD DB server.(only 83 rows to return each time )
3.It is scheduled to refresh within two minutes and it’s taking 10-15 minutes to refresh.
So anyone please help me to know what could be reason for this while complete query execution time is less than one minutes but when i create Mview it's taking more than 7 minutes to refresh.
Thanks in advance!
|
|
|
|
|
|
|
|
|
Re: materialized view issue [message #680635 is a reply to message #680554] |
Wed, 27 May 2020 07:08  |
Bill B
Messages: 1971 Registered: December 2004
|
Senior Member |
|
|
Find out if your mview can be made into a fast refresh by using the DBMS_MVIEW.EXPLAIN_MVIEW Procedure. Look up on how to use this procedure. If you setup your mview refresh as a fast refresh it will only merge in the changes and nothing else. Your refresh will become MUCH faster
|
|
|