GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  Database Administration
Go To First  |  Previous Question  |  Next Question 
 Database Administration  |  Question 228 of 231    Print  
DB Server Performance Bottlenecks
What are four performance bottlenecks that can occur in a database server and How are they detected?


  
Total Answers and Comments: 2 Last Update: August 06, 2009     Asked by: msvkrishna 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 13, 2009 19:17:23   #1  
smruti11 Member Since: February 2009   Contribution: 1    

RE: DB Server Performance Bottlenecks
CPU bottlenecks
Undersized memory structures
Inefficient or high-load SQL statements
Database configuration issues

 
Is this answer useful? Yes | No
July 07, 2009 01:20:21   #2  
aravindhreturns Member Since: July 2009   Contribution: 5    

RE: DB Server Performance Bottlenecks
What smruti11 mentioned is absolutely right That is why I rated his answer as good.

I am just gonna brief about the troubleshooting steps though. Four major steps:-



  • Analyzing Optimizer Statistics

  • Analyzing an Execution Plan

  • Using Hints to Improve Data Warehouse Performance

  • Using Advisors to Verify SQL Performance


Analyzing Optimizer Statistics:-Optimizer statistics are a collection of data that describes more details about the database and the objects in the database. The optimizer statistics are stored in the data dictionary. They can be viewed using data dictionary views similar to the following:


SELECT * FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME 'GATHER_STATS_JOB';


Because the objects in a database can constantly change statistics must be regularly updated so that they accurately describe these database objects. Statistics are maintained automatically by Oracle Database or you can maintain the optimizer statistics manually using the DBMS_STATS package.


Analyzing an Execution Plan:-General guidelines for using the EXPLAIN PLAN statement are:



  • To use the SQL script UTLXPLAN.SQL to create a sample output table called PLAN_TABLE in your schema.

  • To include the EXPLAIN PLAN FOR clause prior to the SQL statement.


After issuing the EXPLAIN PLAN statement to use one of the scripts or packages provided by Oracle Database to display the most recent plan table output.


The execution order in EXPLAIN PLAN output begins with the line that is indented farthest to the right. If two lines are indented equally then the top line is normally executed first.


To analyze EXPLAIN PLAN output:


EXPLAIN PLAN FOR (YOUR QUERY);


For Example:-


EXPLAIN PLAN FOR SELECT p.prod_name c.channel_desc SUM(s.amount_sold) revenue

FROM products p channels c sales s

WHERE s.prod_id p.prod_id

AND s.channel_id c.channel_id

AND s.time_id BETWEEN '01-12-2001' AND '31-12-2001'GROUP BY p.prod_name c.channel_desc;


SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);


Using Hints to Improve Data Warehouse Performance:-Hints let you make decisions usually made by the optimizer. As an application developer you might know information about your data that the optimizer does not know. Hints provide a mechanism to instruct the optimizer to choose a certain query execution plan based on the specific criteria.


For example you might know that a certain index is more selective for certain queries. Based on this information you might be able to choose a more efficient execution plan than the optimizer. In such a case use hints to instruct the optimizer to use the optimal execution plan.


To use a hint to improve data warehouse performance:


SELECT /*+ PARALLEL(s 16) */ SUM(amount_sold)

FROM sales s

WHERE s.time_id BETWEEN TO_DATE('01-JAN-2005' 'DD-MON-YYYY') AND TO_DATE('31-DEC-2005' 'DD-MON-YYYY');


Using Advisors to Verify SQL Performance:-Using the SQL Tuning Advisor and SQL Access Advisor you can invoke the query optimizer in advisory mode to examine a given SQL statement or set of SQL statements and provide recommendations to improve their efficiency. The SQL Tuning Advisor and SQL Access Advisor can make various types of recommendations such as creating SQL profiles restructuring SQL statements creating additional indexes or materialized views and refreshing optimizer statistics. Additionally Oracle Enterprise Manager enables you to accept and implement many of these recommendations in very few steps.


Hope you're clear now.


 
Is this answer useful? Yes | No

 Related Questions

 A  database  instance  (Server) is a set of memory structure and background processes that access a set of database files. The process can be shared by all users. The  
Latest Answer : Database instance(server) is the combination of memory structure and background process. It's a way to connect to the oracle database. ...

 Multiple   instances   accessing  the  same  database  (Only  In  Multi-CPU environments)  
Latest Answer : Very true---Multiple instances uses by single database files is called parallel server. in this condition database files act as a server and connected with differenet instances.But each instances can use database files in same time.So the database file ...

An  index  is a database structure used by the server to have direct access of a row in a table. An  index  is automatically created when a unique of primary key constraint clause 
Latest Answer : Indexes are used both to improve performence and to ensure uniquness of a column. Oracle automatically creates an index when a UNIQUE or PRIMARY key constarints clause is specified in a create table command.We can manually create our own indexes via the ...

 It consists ofone or more data files.one or more control files.two or more redo log files.The Database containsmultiple users/schemasone or more rollback segmentsone or more tablespacesData dictionary 

 Two  processes wating to update the rows of a table which are locked by the other process then deadlock arises. In  a  database  environment  this will often happen 
Latest Answer : Oracle automatically detect deadlock , but not occar ...

Answer for this questions is NO. Standby database must be on same version of database and same version of Operating system. 
Latest Answer : Yes you can configure your stand by server with Advance Replication provided by Oracle 8i onwards on different OS. But the Oracle version should be same.  My Current senario Primary DB is on Unix and Secondary DBs are on Windows.  ...

Latest Answer : Additionally,PGA_Aggregate_target set when Work_area_policy is set to auto and FAST_START_MTTR_Target set may also affect d/b performance ...

Enqueues are another type of locking mechanism used in Oracle. An enqueue is a more sophisticated mechanism which permits several concurrent processes to have varying degree of sharing of "known" 
Latest Answer : An enqueue is a sophisticated locking mechanism that permits several concurrent processes to share known resources to varying degrees. Any object that can be used concurrently can be protected with enqueues. For example, Oracle allows varying levels of ...

Thhere are 3 different ways :-1) SELECT name, value FROM v$parameter WHERE name = 'spfile'; //This query will return NULL if you are using PFILE2) SHOW PARAMETER spfile // This query will returns 
Latest Answer : select * from v$parameter where name='spfile'; ...

Latest Answer : 1. set SHARED_SERVERS=(more than 1) in init.ora2. make changes in tnsnames.ora file to get the connection with DISPATHERS rather than dedicated servers ...


 Sponsored Links

 
Related Articles

Business Intelligence Key Performance Indicators

Business Intelligence Key Performance Indicators What are Key Performance Indicators Key Performance Indicators are also known as Key Success Indicators they help an organization to better define and measure their progress toward professional goals Once an organization has clearly identified its nee
 

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Using Oracle XML DB Repository

Using Oracle XML DB Repository Another variation on accessing and manipulating XML content stored in Oracle database is provided by Oracle XML DB repository which is an essential component of Oracle XML DB mosgoogle NOTE Oracle XML DB repository also known as XML repository is a hierarchically organ
 

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

Performing XSLT Transformations inside the Database

Performing XSLT Transformations inside the Database Now that you have the employees XSL stylesheet stored in the database and the xmlusr schema is permitted to access the hr employees table you can create a script that will instruct the database to build an HTML page based on the data stored in hr e
 

Business Performance Management

Business Performance Management What is Business Performance Management Business Performance Management is most commonly described as a set of processes that help companies or organizations optimize their business performance It is specifically designed to organize automate and analyze business meth
 

Moving All the XML Processing into the Database

Moving All the XML Processing into the Database In the preceding example the database server performs only a part of the XML processing while the rest is still performed by the PHP engine Specifically the database server generates an employees XML document based on the records from the hr employees
 

Performing XML Processing inside the Database

Performing XML Processing inside the Database When building XML enabled applications on top of Oracle there are many advantages to performing the XML processing inside the database when compared to performing it on the client The key advantages to perform XML processing inside the database are as fo
 

XML Processing in PHP and Oracle Applications

Processing XML in PHP Oracle Applications As mentioned there are two alternatives when it comes to performing XML processing in your PHP Oracle application You can perform any required XML processing using either PHP s XML extensions or PEAR XML packages or Oracle s XML features mosgoogle In the fol
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape