Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: optimizer_secure_view_merging
Hey Chris,
The problem is one of performance not functionality. One of the problems that we are having is that when we commit, the recursive calls (oracle's generated DML to populate the MVs) always have the following characteristics (we are not using query rewrite):
1) CPU on the execute step is the largest expense 2) These statements always miss the library cache on the parse step 3) These statements always miss the library cache on the execute step
OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ----------
Misses in library cache during parse: 607 Misses in library cache during execute: 545
Elapsed times include waiting on following events:
Event waited on Times Max. Wait TotalWaited
If optimizer_secure_view_merging will only help on the parse, then I am barking up the wrong tree and will need to find a better solution.
Thanks for the help!
Todd
-----Original Message-----
From: Christian Antognini [mailto:Christian.Antognini_at_trivadis.com]
Sent: Tuesday, December 19, 2006 10:24 AM
To: Carlson, Todd
Cc: oracle-l
Subject: RE: optimizer_secure_view_merging
Todd
> We are using materialized views with refreash on
> commit (don't ask...) on 10.2.0.2.
There is no problem at all about that if correctly set up.
> We have some performance problems and I have been
> researching optimizer_secure_view_merging, to
> reduce the CPU load of parsing and executing
> statements against the views based on the materialized
> views.
Some questions...
Which kind of performance problems?
Do you really have very high parse time?
Do you use query rewrite?
In any case optimizer_secure_view_merging should have an impact only during parse.
> Has anyone set this parameter to false in a production
> system? If so, what were the results?
I had to disable it only due to a bug (I don't remember which one, see Metalink for more information...). It was not due to performance.
HTH
Chris
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Dec 19 2006 - 10:57:50 CST