Solved

Performance tuning

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

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 34

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now