GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  PL/SQL
Go To First  |  Previous Question  |  Next Question 
 PL/SQL  |  Question 154 of 161    Print  
SQL Query Tuning Considerations
While tuning SQL query what should be taken into consideration?


  
Total Answers and Comments: 1 Last Update: June 23, 2009     Asked by: ramesh.akula9 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 23, 2009 04:57:32   #1  
edarasatish Member Since: January 2007   Contribution: 1    

RE: SQL Query Tuning Considerations
During the SQL tuning there couple of things need to be considered

1. If it is below Oracle 9i we need make sure about the driving table concept (Since it uses RBO - Rule Based Optimization) which improves the performance After
Oracle 9i Oracle will automatically

2. Make sure it is using proper indexes


3. We can escape some indexes (Ex: if there is a table called X is having 3 indexes in that one is primary index and the two are normal indexes. In your if it is using the three indexes we can escape the two normal indexes since primary index improves the performance).


4. Do an explain so that we can identify any full table scans. Escape the full table scans.


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : tkproof is a oracle utility. it gives information  about following parameters.********************************************************************************count    = number of times OCI procedure was executedcpu      ...
Read Answers (3) | Asked by : suneel

How to query to know, that dbms_rowid package contains ROWID_OBJECT, rowid_block_number ,etc procedures or functions in it.

Hello,I need some info, that is it possible to find or make query ,that if we know the data stored in a table but don't know the field name in which the required data is stored.ExampleTable having fields like columnA, columnB, columnC, columnD,..........columnN and all have the same dataType. and you dont know in which field your data exists.suppose some data like e.g. "BackMan" exists in any Field of the table but we don't know in which Field this information is store.Is it

How to return multiple records from procedure?e. g. I fired a select query and I want to retun a result to ?

Latest Answer : Pre-query trigger fires only ones while post-query trigger fires each time.the Post-Query trigger fires each time Form Builder fetches a record into a block.RegardsPawan Ahuja ...
Read Answers (1) | Asked by : Ramachandra

I have to replace a particular value say "_" with a space in particular column of a table, kindly provide me the query how to achieve this.
Read Answers (2) | Asked by : Pattabiraman

How to write a query or procedure or function to retrieve all the tables from database where the table dont have any data (no rows).
Database has 100 tables and some of the tables dont have any data. I want to pullout those table names from database in Oracle. 
Read Answers (3) | Asked by : Robert

Latest Answer : 1) First identify the current excecution plan by using showplan.In most cases, creating and then forcing usage of the indexes result in drastic improvement.1) Ensure that indexes(single or composite) exist for columns referred to in the where clause.2) ...
Read Answers (1) | Asked by : Muhammad Fayyaz

How to query the customer details from a Table who have purchased No. of items greater than 5? 
Latest Answer : select column 1,...column n from table namewhere purchaseno 5 order by purchaseno;try this one .....ThanksRAJIV GUPTA YOGIK TECHNOLOGIES PVT LTD.JAMSHEDPUR ...

How can i choose which query is best?i.e On which factors i can choose the best query? 
Latest Answer : By forcing the SQL engine to use indexes.If query is too much nested then break it into two or three queries using temp tables and then write one query by joining these temp table to perform the task. ...


 Sponsored Links

 
Related Articles

What is an Ad Hoc Query

An Ad-Hoc Query is a query that cannot be determined prior to the moment the query is issued. It is created in order to get information when need arises and it consists of dynamically constructed SQL which is usually constructed by desktop-resident query tools. This is in contrast to any query which
 

Structured Query Language (SQL) - Basic Concepts

Structured Query Language SQL Basic Concepts Having query about what a SQL is It is Structured Query language It is a non procedural language and it is a database language mosgoogle Categories in SQL commands There are 3 broad categories in SQL commands They are namely Data Definition language DDL
 

SQL Server 2005 - Using the Database Tuning Advisor

SQL Server 2005 Using the Database Tuning Advisor In this tutorial you will learn about Using the Database Tuning Advisor in SQL Server 2005 Using the DTA Open the Database Engine Tuning Advisor GUI Set the tool options Hide and unhide the Session Monitor Tune a workload Transact SQL script file Vie
 

SQL Server 2005 - Tuning a Database

SQL Server 2005 Tuning a Database In this tutorial you will learn about Database Tuning Advisor overview Database Engine Tuning Advisor Features Improved Workload Parsing Enhanced Scalability Integrated Tuning Multiple Database Tuning Offload of Tuning Overhead to Test Server Drop Only Tuningm XML S
 

Performance Tuning of Java Applications

Performance Tuning of Java Applications Ever since the first version of Java Technology hit the streets performance has been an important issue for Java developers Java has improved dramatically and continually but performance tuning is very essential to get the best results especially when we think
 

Tutorial 47: MSAS: Optimization Tuning Part 2

The SQL Server Query Analyzer is a feature rich Query Analyzer The tool can provide a graphical representation of a query and helps the user mould queries into more efficient shapes It also helps identify faulty queries To Tune the index created the user will have to open the SQL query analyzer and
 

Tutorial 46: MSAS: Optimization Tuning Part 1

SQL Server 2000 Analysis services comes with certain features that optimize performance without the intervention of the Administrator The Storage Engine is optimized by incorporating the following features; Record size and Data types should be kept as short as possible in the Fact tables and should
 

Be Prepared for Tech Job Cuts

Even one of the most flourishing and possibly the strongest industries of the future are not experiencing the economic crunch. The tech industry is now experiencing massive job losses in different categories. Although you will still see innovations almost every day from the tech industry through th
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape