Home > Ask the Oracle Experts > Data Warehousing, ETL, and business intelligence Questions & Answers > Speed of low-cost query
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Speed of low-cost query

Ian Abramson EXPERT RESPONSE FROM: Ian Abramson

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


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


>
QUESTION POSED ON: 11 January 2008
The cost of my query is low (around 300), but it takes 30 seconds for the result. Why?

>
EXPERT RESPONSE
This is the type of question that can have a million answers. If all we look at is the cost we would assume that Oracle has optimized the cost, but there are many factors that will affect performance. I would ask you, what type of data are you selecting? Are indexes being used? How is the data being selected? Are there filters? What is the state of the data in the database? Are you having network issues? Where is your data located? I can continue, but I am sure you get the point.

What you need to do instead is look at what is happening. It might be time for you to run Statspack or AWR and analyze what is happening to your statement. Are there waits? Is there a large disk read? So I would say that there is no silver bullet on this one. It will be necessary for you to investigate the symptoms and make a diagnosis.


Sound Off! -   Be the first to post a message to Sound Off!


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


RELATED CONTENT
Oracle database administration (DBA)
ORA-27101 error: shared memory realm does not exist
How to set up a job for an SQL query in Oracle 10g Grid Control
Receiving the ORA-01652 error with no specified tablespace
Why am I getting the ORA-03113 error when trying to refresh a materialized view?
Hot backup when Oracle Database is up
ORA-06550 error when exporting a database
Why do I have to start my Oracle database manually?
Why am I getting an Oracle error when issuing the RECOVER DATABASE command?
Can I add multiple datafiles and make use of all the temporary datafiles at the same time?
Checkpoint vs. commit process
Oracle database administration (DBA) Research

Data Warehousing, ETL, and business intelligence
Analyzing an index after rebuild
Data warehouse based on operational data model
Method other than DB link for large data transfer
Data migration with ETL
Using PL/SQL for ETL
Basic steps for implementing a DBMS
Importing 8i dump file to 9i
Using export/import process to clone to data warehouse
Areas of impact while migrating database from 8i to 9i/10g
External tables explained

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