Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How can I measure my DB performance.
There was a 3rd party utility called DBTools4, you can search for that on
the 'net but it's a little old. It submits SQL as 1 session, then logs in
twice at the same time, submits the same SQL, etc. and builds up the
pressure... Good for load testing but I wouldn't do that against a
production system.
You can note down the results on one db and do the same tests on another to be able to compare, or do it once after a fresh installation, make a change in the db configuration or add something, than re-run the tests to compare results.
It also wants to create accounts in your database, that might not be acceptable.
I think though that you basically have to decide what performance metrics are important to your site, write code that mimics those scenarios, and run them against your database.
The crudest way might be to set autotrace on in your sqlplus session, and submit SQL. You may need to run $ORACLE_HOME/rdbms/admin/utlxplain.sql to create the plan_table table if it hasn't been set up on your database.
There are different types of settings for databases, OLTP is different from DSS, etc. What matters at your site?
Once you know that you can start tuning... starting with the SQL that is going through the db.
With the Oracle Enterprise Manager (or other 3rd party tools) you can keep an eye on the most resource-intensive SQL that is going through the database, then grab the code and see if you can reduce their execution time.
The Prentice Hall Guy Harrison SQL High Performance Tuning book is the one I like best right now, but you basically have to learn about explain plans, analyze how the SQL is running through and what to do to speed it up. Indexes can make a HUGE difference -- queries that take hours against large tables can be whittled down to just a few minutes with proper indexing.
If anyone has more advice... tuning can be made into a consulting career I think.
Patrice.
-----Original Message-----
Sent: Friday, August 29, 2003 1:10 PM
To: Multiple recipients of list ORACLE-L
Jake
Compare to what? Another database? To what its performance should be?
Dennis Williams
DBA, 80%OCP, 100% DBA
Lifetouch, Inc.
dwilliams_at_lifetouch.com
-----Original Message-----
Sent: Thursday, August 28, 2003 6:59 PM
To: Multiple recipients of list ORACLE-L
Is there a standard query I can run to compare the performance of a db. (Kind of like bogomips for unix)
Thanks,
Jake Johnson
jake_at_plutoid.com
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Jake Johnson
INET: jake_at_plutoid.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Aug 29 2003 - 12:14:34 CDT