how do you tune the slow running queries in oracle db , explain the methodology
Answer Posted / Shyam Ji Mishra
Tuning slow running queries in an Oracle database involves optimizing SQL statements to improve performance. Here's a general methodology:nn1. Identify Slow Queries: Use performance monitoring tools like Oracle Enterprise Manager (EM), AWR reports, or SQL Tuning Advisor to identify queries that are taking longer than expected.nn2. Analyze Query Execution Plan: Examine the execution plan of the slow query to find bottlenecks, such as full table scans or suboptimal join methods.nn3. Rewrite Queries: Modify the SQL statements to remove unnecessary operations and improve efficiency, for example, by using indexes, partitioning, or JOIN rewriting techniques.nn4. Use SQL Tuning Advisor: Oracle's SQL Tuning Advisor analyzes your queries and provides recommendations for improving their performance.nn5. Monitor and Evaluate: After implementing changes, monitor the system to ensure that query performance has improved and make further adjustments as necessary.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I remove duplicates in two columns?
how to start mysql server? : Sql dba
Can delete statement be rollbacked?
Is primary key always clustered index?
how to use regular expression in pattern match conditions? : Sql dba
What is your daily office routine?
what is bcp? When does it used? : Sql dba
how to escape special characters in sql statements? : Sql dba
what is schema? : Sql dba
What is the best sql course?
What is the current version of sql?
Is primary key clustered index?
Can we use distinct and group by together?
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
what is dbms? : Sql dba