Solved

Performance tuning

Posted on 2014-03-06
6
306 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
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.

713 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