Art of Tuning

Art and Science of Tuning Oracle SQL and Database

Skip to content
  • Welcome
  • Post Index
  • Contact

Diagnostic Scripts

gc buffer busy acquire .. and release

VarugheseSeptember 17, 2016September 17, 2016

RAC Wait event gc buffer busy acquire indicates that the session experiencing this event is waiting on another session on the same instance to release the block. Basically the waiting session is not able to pin a block, and will wait on this event until it can pin the block. (gc buffer busy release means […]

Diagnostic Scripts, Waits 3,297

Waits in a SQL

VarugheseJanuary 30, 2015September 17, 2016

When a SQL runs, the time it takes to run is basically come from the CPU time needed plus the time for waits. The following SQL looks into gv$active_session_history and finds the time the SQL spends on each wait event or CPU The Script — — — sqlwaits.sql — Parameters – none — — Purpose: […]

Diagnostic Scripts, Waits 2,957

Finding Top SQLs from Package Execution

VarugheseJanuary 22, 2015January 22, 2015

Package calls are very common. It will be helpful if we can find out the top SQLs from such a call The following script is written for that purpose. It basically looks into the AWR and pulls all SQLs that were run as part of a package call. Please note: The script assumes a package […]

Diagnostic Scripts, Tips and Tricks 303

How to Identify All SQLs That are Running Currenly

VarugheseJanuary 8, 2015January 8, 2015

It is useful to be able to see all SQLs that are running along with how long it has been running, and the number of parallel sessions opened by the session running it etc. The following script can do the job. Some of the columns are self explanatory. For other columns , a brief explanation is […]

Diagnostic Scripts 229

Evaluate the Impact of a SQL on the Database

VarugheseJanuary 3, 2015January 8, 2015

Often, to evaluate a SQL, we need to examine how it performed in the past. Few things are important here: 1. Average elapsed time 2. Buffer gets per execution 3. Frequency of execution (how many times it executes on an hourly/daily basis) The following script can be used to generate this information from AWR. The script […]

Diagnostic Scripts 628

Recent Posts

  • SQL Plan Comparison
  • RAC Dynamic Remastering (DRM) Freeze Waits (11g)
  • gc buffer busy acquire .. and release
  • What is Tuning?
  • Waits in a SQL
  • Finding Top SQLs from Package Execution
  • Tuning Scalar Subquery with Rewrite
  • How to Identify All SQLs That are Running Currenly
  • Evaluate the Impact of a SQL on the Database
  • Calculating Percentage Gain/Improvement from Tuning

Recent Comments

  • JoJohuaTrutt on SQL Plan Comparison
  • Teresaweist on SQL Plan Comparison
  • inernetkrddiumb on SQL Plan Comparison
  • Cazrnvx on SQL Plan Comparison
  • EmilyMes on SQL Plan Comparison

Archives

  • September 2016
  • January 2015
  • December 2014

Categories

Theme: FlatBox by Jack, Powered by WordPress

Theme Layout

Color Scheme