سبق 1Wait events, latches ਅਤੇ enqueues: top waits classify ਕਰਨਾ (I/O, CPU, network, concurrency), buffer busy waits, library cache latches, ਅਤੇ enqueue waits diagnose ਕਰਨਾOracle wait events, latches, ਅਤੇ enqueues ਸਮਝੋ, top waits ਨੂੰ type ਨਾਲ classify ਕਰੋ, ਅਤੇ dynamic views ਅਤੇ AWR reports ਵਰਤ ਕੇ buffer busy waits, library cache contention, ਅਤੇ enqueue conflicts ਵਰਗੀਆਂ ਆਮ ਮੁਸ਼ਕਲਾਂ diagnose ਕਰੋ।
Reading wait class breakdownsTop foreground and background waitsDiagnosing buffer busy waitsLibrary cache latches and mutexesCommon enqueue types and blockersUsing ASH and AWR for wait analysisسبق 2SQL plan change management: SQL Plan Baselines, SQL Profiles, ਅਤੇ plan freezing approaches ਵਰਤੋਂSQL Plan Baselines, SQL Profiles, ਅਤੇ plan freezing techniques ਵਰਤ ਕੇ SQL performance stabilize ਕਰਨਾ ਸਿੱਖੋ, capture, evolve, ਅਤੇ verify workflows ਸਮੇਤ, ਜਦੋਂ ਚੁਣਿਆ ਹੋਇਆ plan degrade ਹੋ ਜਾਵੇ ਤਾਂ safe rollback strategies ਨਾਲ।
Detecting unstable SQL plansCreating and loading SQL Plan BaselinesEvolving and accepting baseline plansUsing SQL Profiles effectivelyPlan freezing and controlled overridesMonitoring and rolling back changesسبق 3Optimizer statistics ਅਤੇ histograms: DBA_TAB_STATISTICS ਨਾਲ ਚੈੱਕ, DBMS_STATS procedures, stale stats ਪਛਾਣ ਅਤੇ gathering strategiesDBA_TAB_STATISTICS review ਕਰਕੇ, DBMS_STATS procedures ਵਰਤ ਕੇ optimizer statistics management master ਕਰੋ, stale ਜਾਂ missing stats ਪਛਾਣੋ, preferences configure ਕਰੋ, ਅਤੇ critical systems ਲਈ safe gathering strategies design ਕਰੋ।
Inspecting table and index statisticsDBMS_STATS core proceduresDetecting stale and missing statisticsSetting global and table preferencesCreating and managing histogramsScheduling and validating stats jobsسبق 4Top SQL ਪਛਾਣਨਾ: AWR sections, V$SQL, DBA_HIST_SQLSTAT, prioritize ਕਰਨ ਲਈ metrics (DB time, CPU, elapsed, buffer gets)AWR, V$SQL, ਅਤੇ DBA_HIST_SQLSTAT ਵਰਤ ਕੇ high-impact SQL ਪਛਾਣਨਾ ਸਿੱਖੋ, DB time, CPU, elapsed time, ਅਤੇ buffer gets ਨਾਲ statements rank ਕਰੋ ਤਾਂ ਜੋ most beneficial candidates ਤੇ tuning prioritize ਕਰੋ।
Key AWR report sections for SQLUsing V$SQL for real-time hotspotsMining DBA_HIST_SQLSTAT historyRanking by DB time and CPU usageEvaluating logical and physical readsBuilding a repeatable tuning backlogسبق 5Execution plan ਵਿਸ਼ਲੇਸ਼ਣ: DBMS_XPLAN.DISPLAY_CURSOR ਅਤੇ DISPLAY_AWR ਵਰਤੋਂ, operations ਵਿਆਖਿਆ (TABLE ACCESS, INDEX RANGE SCAN, NESTED LOOPS, HASH JOIN)DBMS_XPLAN ਵਰਤ ਕੇ Oracle execution plans ਪੜ੍ਹਨਾ ਸਿੱਖੋ, table ਅਤੇ index access, joins, ਅਤੇ filters ਵਰਗੇ key operations ਸਮਝੋ, ਅਤੇ production workloads ਵਿੱਚ ਵੇਖੇ गए actual performance symptoms ਨਾਲ plan steps correlate ਕਰੋ।
Generating plans with DISPLAY_CURSORReading plan rows, IDs, and predicatesUnderstanding TABLE and INDEX access pathsNested Loops, Hash Join, and Merge JoinUsing DISPLAY_AWR for historical plansInterpreting cardinality and costسبق 6Index design ਅਤੇ ਵਰਤੋਂ: missing ਜਾਂ unused indexes ਪਛਾਣ, index bloat ਅਤੇ ਤਰਕ suitability (B-tree, bitmap, function-based)Missing ਅਤੇ unused indexes ਪਛਾਣ ਕੇ, index bloat ਮੁਲਾਂਕਣ ਕਰਕੇ robust index strategies ਵਿਕਸਿਤ ਕਰੋ, ਅਤੇ workload patterns ਨਾਲ aligned B-tree, bitmap, ਅਤੇ function-based indexes ਵਰਗੇ suitable index ਤਰਕ ਚੁਣੋ।
Finding missing index opportunitiesDetecting unused and redundant indexesRecognizing and fixing index bloatChoosing B-tree versus bitmap indexesDesigning function-based indexesIndex maintenance and rebuild criteriaسبق 7Practical tuning techniques: SQL rewrite, statistics-based fixes, optimizer hints, full scans ਘਟਾਉਣ ਲਈ partitioning strategiesQuery rewrites, join ਅਤੇ filter reordering, statistics-driven fixes, hints ਦੀ appropriate ਵਰਤੋਂ, ਅਤੇ full scans ਘਟਾਉਣ ਵਾਲੀਆਂ partitioning strategies ਸਮੇਤ practical SQL tuning methods ਖੋਜੋ ਜੋ overall resource efficiency ਵਧਾਉਂਦੀਆਂ ਹਨ।
Identifying anti-patterns in SQLRewriting queries for better access pathsUsing statistics to guide tuningSafe and unsafe optimizer hintsPartition pruning and partition-wise joinsValidating gains with SQL Monitorسبق 8Bind variable ਮੁਸ਼ਕਲਾਂ ਅਤੇ adaptive cursor ਵਿਵਹਾਰ: bind peeking, bind-sensitive plans, adaptive cursor sharing ਅਤੇ ਇਲਾਜ (CURSOR_SHARING, SQL plan baselines)Bind variables cursor sharing ਅਤੇ plan selection ਨੂੰ ਕਿਵੇਂ ਪ੍ਰਭਾਵਿਤ ਕਰਦੇ ਹਨ ਵੇਖੋ, bind peeking, bind-sensitive ਅਤੇ bind-aware cursors, adaptive cursor sharing, ਅਤੇ skewed data ਲਈ configuration ਜਾਂ design remedies ਸਮੇਤ।
Bind peeking and first-execution riskBind-sensitive and bind-aware cursorsAdaptive cursor sharing mechanicsCURSOR_SHARING configuration choicesHandling skew with histograms and bindsUsing baselines to stabilize bind plans