Solved

Performance tuning

Posted on 2014-03-06
6
308 Views
Last Modified: 2014-06-10
How do we know if we have to build a new index or gather statistics to improve the performance ...

Is there anyway, Oracle automatically gathers statistics or do we have to do it manually.
0
Comment
Question by:d27m11y
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 168 total points
ID: 39911366
>>How do we know if we have to build a new index or gather statistics to improve the performance ...

It may sound simplistic but:  People complain?

Check the server:  Is a lot of CPU being used?  A lot of disk I/O, Memory?

If you are licensed for the Performance Pack in Enterprise Manager there are a lot of Advisors that will go through how your database is being used and make recommendations.

If you aren't licensed for it, StatsPack is a decent second place but requires you to go through the output and understand what you are seeing.

Many DBA's have their own things to look at.

I used to look in v$sql for disk reads and see what I could do about the SQL causing them.

>>Is there anyway, Oracle automatically gathers statistics or do we have to do it manually.

Look in the online documentation for your specific version of Oracle for he automatic maintenance window.
0
 
LVL 23

Assisted Solution

by:David
David earned 166 total points
ID: 39911589
Needing a new index.....  a study of the resource-intensive SQL statements (explain plans) should point out if people are doing full table scans.  Said tables are likely candidates for better indexing.  Improper use of block sizes, contention (locked rows), and parallelism are worth a look-over as well.

In 11g and higher, Oracle has eliminated the need for scripted stats updates, as slightwv alludes to.  Somewhat like Microsoft's services, the database is now self-aware when a table or index stats need to be checked.  There are numerous settings a knowledgeable DBA can tweak, but the old way of doing this is gone.
0
 
LVL 35

Assisted Solution

by:Mark Geerlings
Mark Geerlings earned 166 total points
ID: 39913762
Yes, In Oracle10g and 11g databases, Oracle will likely gather some statisics for you automatically.  Are these (default) statistics always the best ones for your database and your application/  Likely no.

What klnd of application do you have?  Is it purchased or custom?

Is it mainly transaction-processing or reporting (Data Warehouse)?

Are your init parameters adjusted for your hardware and application?
0
 

Author Comment

by:d27m11y
ID: 39940820
It is a custom application and OLTP environment.
0
 
LVL 22

Expert Comment

by:Steve Wales
ID: 40124009
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question