Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

History -> Active Sessions

Active Sessions Form

You must choose the database for which to display samples. This is done in the first column using fields:

  • Database - for which database to display the sampled data
  • Instance - for which instance to display sampled data (only relevant for RAC setups)
  • From and To - for which period to display sampled data (it defaults to last hour)

In second column of fields, you can choose which database/period you want to compare the results of first column to:

  • Compare Database - which database to compare results to
  • Compare Instance - which instance to compare results to (only relevant for RAC setups)
  • Compare From and Compare To - which period to compare to (it defaults to last hour)

In third column of fields, you can fine-tune what/how is displayed:

  • Refresh Interval - If enabled, the results are refreshed every n seconds (and timestamp forwarded).
  • Chart Group By - Count amount of active sessions by this field (by default a Wait Class, but it’s interesting to see other results such as username or instance; all of them refer to columns from v$session.
  • Chart Sample By - Amount of average sessions are averaged by this field (by minute, hour, or day).
  • Top Table For - What to display in Top Table table bellow. Among the most interesting fields (other than Session which is default) are
    • SQL - which displays most resource-consuming SQL-s
    • PLAN - which displays most resource-consuming Execution Plans.
    • SQL (per execution) and PLAN (per execution) are different in that they display amount of resources consumed on average by single execution of SQL or it’s PLAN.
  • Top Table Rows - Amount of rows displayed in Top Table
  • Compare Outer Join - Only relevant when Compare Database is selected; It determines whether or not to display rows that are specific to either on or the other database (Database and Compare Database).

Buttons are used to move through time more quickly - alternative would be to manually insert different dates into From and To fields.

Charts

ASH

ASH Chart

Legend displays what was selected in Chart Group By column. On Y axis is the number of concurrently active sessions. Data comes from samples of v$session view.

Undo

Undo Chart

Displays amount of UNDO used in MB (megabytes). Data comes from samples of v$transaction.

PGA

PGA Chart

Displays amount of PGA used in MB (megabytes). Data comes from samples of v$process.

Temp

Temp Chart

Displays amount of TEMP space usage (by temp tablespaces).

Top table

Top Table Sessions

Top Table SQL

Top Table Plan

Top table displays what was selected in Top Table For field. Examples above are for Sessions, SQL and PLAN. You can click on specific sql_id or specific plan_hash_value to see details of selected SQL or Plan.

Activity column displays how many times this object was seen in regard to the object displayed in first row. Duration column displays amount of times (=seconds) such object was seen as ACTIVE in v$session.

Last

Last

This section displays last non-aggregated samples which were collected at time less or equal to To field.

For definition of each column please refer to:

  • Sessions
  • Transactions
  • Longops