Home > Ask the Oracle Experts > Oracle Performance Tuning Questions & Answers > Select on Oracle table takes hours
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Select on Oracle table takes hours

Phillip Bracken EXPERT RESPONSE FROM: Phillip Bracken

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Oracle tips, scripts, and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 26 June 2007
Hi,
I require your assistance. I work on Oracle 9.2.0.4 on Solaris. There is a particular issue with a table. User complains that every time he tries to access the table (select only), it takes more than one to two hours to get the results. There are no DML operations performed on the table. If I run statistics, then the select works fine for one or two days. Then it again reverts to the old stage. There is no locking involved, since there is no DML operations on the table (only select is performed). It is a long running query. Please help. Give me ideas as to what other reasons can be listed out and how it can be sorted. It is a huge table. Thanks in advance.

>
EXPERT RESPONSE
Sounds like to you are not gathering your table/index statistics on a regular basis. The first thing I would do is set up a batch job to run the DBMS_STATS.Gather_Schema_Stats package every night during a batch window when there is not much activity in your database. Use the Estimate option and not compute since your tables are large.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Oracle Performance Tuning
Can I use TKPROF in Oracle 10g?
How to improve performance of column update
Import of database dump takes 13 hours
Slow query performance for customer with large data volume
ORA-03297 when trying to resize tablespace
Improve performance of SQL query
SMON process consuming 100% CPU
Total Oracle CPU time
See tablespace utilization/database size without DBA privileges
Simple SQL query takes longer than usual

Oracle database performance problems and tuning
Oracle 11g data compression
Varchar or number for better performance?
Do statistics on SYS-owned objects hurt performance in 10g?
Inside the Oracle 11g SQL Performance Advisor, part 1
Inside the Oracle 11g SQL Performance Advisor, part 2
Difference between driving table and driver table in Oracle
Best design for E-Business Suite on hard drive
20GB data dictionary causing performance problems
Using the cost-based optimizer to improve Database 10g performance
Online tablespace reorganization in Oracle 9i

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts