In Oracle, ASH stands for Active Session History. An ASH report details statistics from the inmemory performance monitoring tables. The report provides:
Top Queries
Top Sessions
Top DB Objects (Note: be wary of the QRTZ_LOCKS result. This table is what Quartz,
our third-party Java scheduler, uses as a locking mechanism. As a result, any contention
is intentional and will not affect performance).
The simplest way to generate this report is through the Oracle Enterprise Manager tool (OEM);
however, there are times when this tool is not available. On those occasions, the DBA user can
generate the report from the machine hosting Oracle, as described in the steps below.
ASH resides in the SGA and its size is calculated by the lesser of:
5% of shared pool
SQL_ID
SID
V$ACTIVE_SESSION_HISTORY
V$SESSION
this view holds all the sessions information (72 columns of info
DBA_HIST_ACTIVE_SESSION_HISTORY
ASH Report
It is possible to run a report on the ASH data collected, the report generates information about
SQL that ran during the time you specify and it includes blocking and wait details.
ashrpt.sql
information on SQL which includes blocking and wait details, the script will ask what yo
specify a time and if the report is to be generated in text to html.