Index: openacs-4/packages/acs-core-docs/www/maint-performance.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/maint-performance.html,v diff -u -r1.10.2.2 -r1.10.2.3 --- openacs-4/packages/acs-core-docs/www/maint-performance.html 29 Apr 2004 14:50:50 -0000 1.10.2.2 +++ openacs-4/packages/acs-core-docs/www/maint-performance.html 5 Jul 2004 19:47:31 -0000 1.10.2.3 @@ -1,7 +1,7 @@ Diagnosing Performance Problems

Diagnosing Performance Problems

View comments on this page at openacs.org
+ order by s.username ,s.sid ,s.serial# ,sql.piece ;

To kill a troubled process:

alter system kill session 'SID,SERIAL#';  --substitute values for SID and SERIAL#

(See Andrew Piskorski's Oracle notes)

Creating an appropriate tuning and monitoring environment

+ The first task is to create an appropriate environment for finding out + what is going on inside Oracle. Oracle provides Statspack, a package to + monitor and save the state of the v$ performance views. These reports + help finding severe problems by exposing summary data about the Oracle + wait interface, executed queries. You'll find the installation + instructions in $ORACLE_HOME/rdbms/admin/spdoc.txt. Follow the + instructions carefully and take periodic snapshots, this way you'll be + able to look at historical performance data. +

+ Also turn on the timed_statistics in your init.ora file, so that + Statspack reports (and all other Oracle reports) are timed, which makes + them a lot more meaningful. The overhead of timing data is about 1% per + Oracle Support information. +

+ To be able to get a overview of how Oracle executes a particular query, + install "autotrace". I usually follow the instructions here http://asktom.oracle.com/~tkyte/article1/autotrace.html. +

Make sure, that the Oracle CBO works with adequate statistics

+ The Oracle Cost Based optimizer is a piece of software that tries to find + the "optimal" execution plan for a given SQL statement. For that it + estimates the costs of running a SQL query in a particular way (by default + up to 80.000 permutations are being tested in a Oracle 8i). To get an + adequate cost estimate, the CBO needs to have adequate statistics. For + that Oracle supplies the dbms_stats + package. +

View comments on this page at openacs.org