Disclaimer

Saturday, 10 July 2021

Oracle 19c SQL Tuning Advisor

 

Oracle 19c SQL Tuning Advisor

Oracle 19c SQL Tuning Advisor. Analyze the SQL Tuning Set and generate recommendations

A complete script is provided: sta_cc.sql.
SQL Tuning Advisor (STA)The Script will:

  • Generate a tuning task with the SQL Tuning Set 
  • Run a tuning task where the SQL Tuning Advisor simulates the execution
  • Generate a result report in TEXT format
  • Generate statements to implement the findings
@/home/oracle/scripts/sta_cc.sql

Using Oracle 19c SQL Tuning Advisor, Fix everything

Execute all the recommendations from the Advisor:

Afterwards repeat the SQL Performance Analyzer runs from the previous exercise and verify the results:

@/home/oracle/scripts/spa_cpu.sql
@/home/oracle/scripts/spa_report_cpu.sql
@/home/oracle/scripts/spa_elapsed.sql
@/home/oracle/scripts/spa_report_elapsed.sql
exit

Compare the two resulting reports again – and compare them to the examples from the previous run.

No comments:

Post a Comment

How to recovery PDB when PDB database is dropped in Oracle

  How to recovery PDB when PDB database is dropped :) [oracle@rac01 ~]$ sqlplus '/as sysdba' SQL*Plus: Release 21.0.0.0.0 - Product...