![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have some Mviews for query rewrite it takes 15-20 minutes to create them The refresh takes more than 5 hours ... why ? What can I do to speed this ? Oracle 9.2.0.7 Thanks in advance |
#3
| |||
| |||
|
|
Hi, I have some Mviews for query rewrite * it takes 15-20 minutes to create them The refresh takes more than 5 hours ... why ? What can I do to speed this ? Oracle 9.2.0.7 Thanks in advance |
#4
| |||
| |||
|
|
On Dec 21, 8:22Â*am, "bob123" <nom... (AT) nowhere (DOT) com> wrote: Hi, I have some Mviews for query rewrite it takes 15-20 minutes to create them The refresh takes more than 5 hours ... why ? What can I do to speed this ? Oracle 9.2.0.7 Thanks in advance In addition to Adrian's comments, in 10g and above you can do a "non- atomic" refresh that truncates the materialized view (rather than deleting the rows) under the covers. This is much faster provided you have your query rewrite stuff set up correctly. |
#5
| |||
| |||
|
|
On Tue, 21 Dec 2010 13:08:19 -0800, Steve Howard wrote: On Dec 21, 8:22*am, "bob123" <nom... (AT) nowhere (DOT) com> wrote: Hi, I have some Mviews for query rewrite it takes 15-20 minutes to create them The refresh takes more than 5 hours ... why ? What can I do to speed this ? Oracle 9.2.0.7 Thanks in advance In addition to Adrian's comments, in 10g and above you can do a "non- atomic" refresh that truncates the materialized view (rather than deleting the rows) under the covers. *This is much faster provided you have your query rewrite stuff set up correctly. IIRC 9i would do that too on a full refresh, provided you didn't make the snapshot^H^H^H mview part of a group. |
#6
| |||
| |||
|
|
On Dec 21, 4:19Â*pm, HoneyMonster <some... (AT) someplace (DOT) invalid> wrote: On Tue, 21 Dec 2010 13:08:19 -0800, Steve Howard wrote: On Dec 21, 8:22Â*am, "bob123" <nom... (AT) nowhere (DOT) com> wrote: Hi, I have some Mviews for query rewrite it takes 15-20 minutes to create them The refresh takes more than 5 hours ... why ? What can I do to speed this ? Oracle 9.2.0.7 Thanks in advance In addition to Adrian's comments, in 10g and above you can do a "non- atomic" refresh that truncates the materialized view (rather than deleting the rows) under the covers. Â*This is much faster provided you have your query rewrite stuff set up correctly. IIRC 9i would do that too on a full refresh, provided you didn't make the snapshot^H^H^H mview part of a group. It is a real shame that you are subjected to using such old technology. While it may work, the amount of time you can save doing mundane DBA tasks would more than pay for the upgrade to something a little more current. Being that far behind will also subject you and your company to jumping through lots of hoops to get current. Being that old also subjects you to MANY security risks that have been corrected. Being able to recover easily from failure is another huge benefit to upgrading. I can't imagine what unpatched an vulnerable OS you are running on... I do know that the 9i runInstaller will not even run on some of the later OS versions - (Solaris, AIX, even Linux). |
#7
| |||
| |||
|
|
In addition to Adrian's comments, in 10g and above you can do a "non- atomic" refresh that truncates the materialized view (rather than deleting the rows) under the covers. This is much faster provided you have your query rewrite stuff set up correctly. IIRC 9i would do that too on a full refresh, provided you didn't make the snapshot^H^H^H mview part of a group. |
#8
| |||
| |||
|
|
In addition to Adrian's comments, in 10g and above you can do a "non- atomic" refresh that truncates the materialized view (rather than deleting the rows) under the covers. This is much faster provided you have your query rewrite stuff set up correctly. IIRC 9i would do that too on a full refresh, provided you didn't make the snapshot^H^H^H mview part of a group. |
#9
| |||
| |||
|
|
On Tue, 21 Dec 2010 16:51:57 -0800, onedbguru wrote: On Dec 21, 4:19*pm, HoneyMonster <some... (AT) someplace (DOT) invalid> wrote: On Tue, 21 Dec 2010 13:08:19 -0800, Steve Howard wrote: On Dec 21, 8:22*am, "bob123" <nom... (AT) nowhere (DOT) com> wrote: Hi, I have some Mviews for query rewrite it takes 15-20 minutes to create them The refresh takes more than 5 hours ... why ? What can I do to speed this ? Oracle 9.2.0.7 Thanks in advance In addition to Adrian's comments, in 10g and above you can do a "non- atomic" refresh that truncates the materialized view (rather than deleting the rows) under the covers. *This is much faster provided you have your query rewrite stuff set up correctly. IIRC 9i would do that too on a full refresh, provided you didn't make the snapshot^H^H^H mview part of a group. It is a real shame that you are subjected to using such old technology. While it may work, the amount of time you can save doing mundane DBA tasks would more than pay for the upgrade to something a little more current. *Being that far behind will also subject you and your company to jumping through lots of hoops to get current. *Being that old also subjects you to MANY security risks that have been corrected. * Being able to recover easily from failure is another huge benefit to upgrading. *I can't imagine what unpatched an vulnerable OS you are running on... I do know that the 9i runInstaller will not even run on some of the later OS versions - (Solaris, AIX, even Linux). You have responded to the wrong person. |
#10
| |||
| |||
|
|
OK thanks in 9iR2 What option for atomic_refresh I have to set to get a truncate instead of a delete ? |
![]() |
| Thread Tools | |
| Display Modes | |
| |