Performence Tuning
What is performance tuning in Oracle?
Explain the different types of performance tuning.
Describe the steps in the performance tuning process.
What is the role of the Automatic Workload Repository (AWR)?
How do you generate an AWR report?
What is the Automatic Database Diagnostic Monitor (ADDM)?
Explain the role of ADDM in performance tuning.
What is a SQL Tuning Advisor?
How does the SQL Tuning Advisor work?
What is the SQL Access Advisor?
Describe how to use the SQL Access Advisor.
What are SQL profiles?
How do you create and use SQL profiles?
What is the purpose of statistics in Oracle?
How do you gather optimizer statistics?
Explain the difference between dynamic sampling and regular statistics gathering.
What is a histogram in Oracle?
How do you create histograms?
What are execution plans?
How do you view execution plans?
What is the role of the optimizer in Oracle?
Describe the different types of optimizers.
What is a cost-based optimizer (CBO)?
Explain the rule-based optimizer (RBO).
What is a hint in Oracle?
How do you use hints to influence the optimizer?
What is a SQL plan baseline?
How do you create a SQL plan baseline?
What is adaptive query optimization?
Explain the concept of adaptive execution plans.
What are bind variables?
Why are bind variables important for performance?
What is a hard parse and a soft parse?
How do you minimize hard parsing?
What is latching and why is it important?
Describe the concept of wait events in Oracle.
How do you analyze wait events?
What is the role of the Database Resource Manager (DBRM)?
How do you configure the DBRM?
What is parallel execution in Oracle?
Explain the concept of parallel query.
How do you configure parallel execution?
What is partitioning in Oracle?
Describe the different types of partitioning.
How does partitioning improve performance?
What is index-organized table (IOT)?
How do you create and manage IOTs?
What is materialized view?
Explain the benefits of using materialized views.
How do you refresh materialized views?
L1 Level Questions
What is performance tuning in Oracle?
Explain the concept of performance tuning and its importance in Oracle databases.
What are some common performance issues in Oracle databases?
List typical performance problems such as slow queries, high CPU usage, and contention.
What is the role of the Oracle Optimizer?
Describe how the Oracle Optimizer works and its purpose in query performance.
What are Execution Plans and how do you obtain them?
Explain what an execution plan is and how to obtain it using EXPLAIN PLAN or DBMS_XPLAN.DISPLAY.
What is an index and how does it improve query performance?
Define an index and explain how it can enhance the performance of queries.
What are some types of indexes in Oracle?
List and describe different types of indexes such as B-tree, Bitmap, and Function-based indexes.
How do you gather statistics in Oracle?
Explain the purpose of gathering statistics and the basic command to gather statistics on a table.
What is the purpose of the tkprof utility?
Describe what tkprof is and how it is used in performance tuning.
How do you monitor the performance of an Oracle database?
Discuss basic tools and views such as AWR, ADDM, and V$ views used for monitoring performance.
What is a SQL trace and how do you enable it?
Explain what SQL tracing is and provide the basic commands to enable and disable it.
L2 Level Questions
How do you interpret an execution plan?
Describe how to read and understand the output of an execution plan.
What is the difference between soft parsing and hard parsing in Oracle?
Explain the concepts of soft parsing and hard parsing and their impact on performance.
What are bind variables and why are they important?
Define bind variables and discuss their benefits in preventing SQL injection and improving performance.
How do you use the Automatic Workload Repository (AWR) for performance tuning?
Describe the purpose of AWR and how to use it for identifying performance issues.
What is the Automatic Database Diagnostic Monitor (ADDM) and how does it assist in performance tuning?
Explain what ADDM is and how it provides recommendations for tuning.
How do you optimize a query that performs poorly?
Discuss the steps and considerations involved in optimizing a poorly performing query.
What are some common wait events and how do you address them?
List common wait events and describe strategies to mitigate them.
How do you manage and tune memory components in Oracle?
Explain how to configure and optimize memory components such as the SGA and PGA.
What is partitioning and how can it improve performance?
Describe the concept of partitioning and its benefits for query performance.
How do you use the SQL Performance Analyzer (SPA)?
Explain the purpose of SPA and the steps to use it for tuning SQL performance.
L3 Level Questions
Explain the impact of parallel execution on performance and how to configure it.
Discuss how parallel execution works and the considerations for configuring it to improve performance.
How do you perform advanced troubleshooting using ASH (Active Session History)?
Describe the use of ASH for in-depth performance analysis and troubleshooting.
What are histograms and how do they affect query optimization?
Explain the purpose of histograms in Oracle statistics and how they influence the optimizer.
How do you approach performance tuning in a multi-tenant (CDB/PDB) environment?
Discuss the challenges and strategies for performance tuning in a multi-tenant architecture.
What are materialized views and how do they help in performance tuning?
Define materialized views and explain how they can be used to improve query performance.
How do you tune a RAC (Real Application Clusters) environment for optimal performance?
Describe the specific considerations and techniques for tuning performance in an Oracle RAC environment.
How do you use Oracle Enterprise Manager for performance tuning?
Explain how Oracle Enterprise Manager can be leveraged for monitoring, diagnosing, and tuning database performance.
What are adaptive query optimization features in Oracle, and how do they enhance performance?
Discuss adaptive features like adaptive plans, adaptive statistics, and their impact on query performance.
How do you handle and optimize large data loads in Oracle?
Provide strategies for efficiently loading and processing large volumes of data, including the use of direct path loads and parallel processing.
What are some best practices for indexing strategy in a high-transactional database?
Outline best practices for creating and managing indexes in a database with high transaction rates to maintain optimal performance.