Focal Point
[SHARING] Question about optimizing WebFOCUS to Oracle 11gR2

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4387005226

July 23, 2012, 04:24 PM
Penny_Lester
[SHARING] Question about optimizing WebFOCUS to Oracle 11gR2
All developer gurus - we have WF 7.7.02 on Windows 2003 32bit OS. We have Oracle 11gR2 databases being queried by a mixture of WF self service and MRE/BID programs. Some queries are using SQL passthru, some are using FOCUS code with HOLD files, many queries are hitting Oracle views, we currently have no materialized views. We have recently added Indexes to several of the Oracle tables in the hopes to speed up some of the slower processing programs. We have been disappointed by this effort as the difference is barely noticeable.

We have heard the way Oracle 11g processes queries is very different from how the same query was processed in Oracle 9 and Oracle 10.

Do any of you have any tips or techniques we could try to better optimize our WF queries?

Tnx,
PL

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.7.02
Window 2003 /32bit
July 24, 2012, 02:41 AM
Dan Satchell
You might try these commands to see if they help. If they do improve performance, they can be added to your system profile (edasprof.prf) so they are invoked for every user.

ENGINE SQLORA SET FETCHSIZE 5000
ENGINE SQLORA SET OPTIMIZATION ON

Also, IBI Tech Support does have some Oracle expertise, so it might be worthwhile to open a case and pose your question to them.

Finally, have you turned on SQL trace for your slow FOCUS queries in order to evaluate the SQL code being passed to Oracle? Sometimes the problem is in the FOCUS code and not the RDBMS.

This message has been edited. Last edited by: Dan Satchell,


WebFOCUS 7.7.05
July 25, 2012, 02:26 PM
Penny_Lester
Hello Dan. Thanks for the suggestion; however these two settings did not appear to make any difference. I had another developer try the settings and he found the same. His comments follow.
+++++++comments begin +++++++++++++
I added the 2 settings to a fex that was written in FOCUS code and it had no effect. Since our users primarily write FOCUS code against our reporting views, we are going to try and set this setting in Oracle to see if this helps:

Optimizer_secure_view_merging = FALSE

We are also going to get some EXPLAIN PLANS from Oracle 9i and Oracle 11g to see if we can find why certain queries are running so slow.
++++++Comments end +++++++++++++
I will update with the results in case anyone else has similar issues with Oracle 11g2


WebFOCUS 7.7.02
Window 2003 /32bit
July 25, 2012, 02:47 PM
Francis Mariani
Did you set SQL Traces on in the WebFOCUS code - are you sure efficient SQL is being generated by the WebFOCUS code?

The EXPLAINS are very important as they will tell you which indexes (if any) are being used.

Cheers, and good luck.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
July 25, 2012, 04:34 PM
Penny_Lester
Francis thanks for the response. Some of the code is SQL passthru and is optimized for Oracle. We did capture the SQL code for the FOCUS code generated by MRE users and tested in both TOAD and SQL Developer. For some of the SQL we found code that ran efficiently in Oracle 9i does not run efficiently in Oracle 11g. It is my understanding the way the cursor is managed in Oracle 11g is different from Oracle 9i. I do not think the issue is with WF because we see the same decrease in efficiency when we run in TOAD and/or SQL Developer. I was just hoping someone in this forum would have seen a similar change after moving to Oracle 11g. Our Oracle DBA's continue to try to say the fault lies with WF, and I keep providing them with additional evidence it is differences in the Oracle RDBMS.


WebFOCUS 7.7.02
Window 2003 /32bit