Query Slowness

FacebookXFlipboardEmailShare

In the DBA career the most prominent issue we will face is the issueYesterday this database Query is running fine. But today we have observed database query response time is very slow compare as yesterday” raised from Development Team / Client.

Here are few things you can do, to find the root cause of this issue and solve it.

Note: This article is for someone with basic to intermediateexperience and serves as a checklist for finding solution to SQL “Query Slowness” issue.

From the DBA point of view, the first action should be

1. Take explain plan for database query.

2. Compare the table growth today & old one.

3. Check the statistics gathered for the table or not.

4. Check the connected sessions

5. Check the Physical reads / Logical reads.

6. Check the hit ratio. (Library cache, Data dictionary & Db Cache)

7. Ensure if any init parameter or memory structure changed.

8. Generated trace file for the particular query. (Using TKPROF)

9. OS level any background process taking more CPU utilization belongs to the database. (RMAN backup, EXP/IMP, DB Analyze job, Materialized view refresh job etc)

By performing the above actions one can find the root cause and solution for “Query Slowness” issue.

I Hope this article helped to you.Suggestions are welcome.

FacebookXFlipboardEmailShare
Exit mobile version