Call for Oracle support & training (800) 766-1884
Free Oracle Tips

Home
Corporate Oracle Training
Custom Oracle Training
Oracle New Features Training
Advanced Oracle DBA Classes
Oracle Tuning Courses
Oracle Tips & Tricks
Oracle Training Links
Oracle Training Links
Oracle Training Links

We are top for USA Oracle Training Clients

 

Free Oracle Tips


 
HTML Text AOL

Free Oracle App Server Tips


 
HTML Text

Oracle support

Oracle training

Oracle tuning

Rednecks!

Remote Oracle

Custom Oracle Training

 

   
  Oracle Tips by Burleson

Easy Oracle Automation
Chapter 6 - Automatic System Resource Management

Active Session History

Oracle Database 10g has upgraded its v$session view to include wait events and their durations. However, this view has the values in real time and does not keep track of information to be viewed later. Active Session History (ASH), is very much like AWR, and stores the session performance statistics in a buffer for analysis later. Unlike AWR storage in a table, ASH storage is in memory viewable from v$active_session_history. The data on active sessions is polled every second and the older entries are removed from memory to accommodate the latest ones in a circular manner.

The following query is an example of how to get session information along with time waited on events:

select session_id||' - '||session_serial# SID, v$event_name.name, wait_time, time_waited
from v$active_session_history , v$event_name
SEE CODE DEPOT FOR FULL SCRIPT

The above script provides the name of the event and time spent in waiting.  A sample portion of the lengthy output is as follows:
 


The above text is an excerpt from:

Easy Oracle Automation
Oracle10g Automatic Storage, Memory and Diagnostic Features

ISBN 0-9745993-6-0

by Dr. Arun Kumar R.
 


Download your Oracle scripts now:

www.oracle-script.com

The definitive Oracle Script collection for every Oracle professional DBA

 
 
 

Oracle performance tuning book

 

 

Oracle performance tuning software

 
Oracle performance tuning software
 
Oracle performance Tuning 10g reference poster
 
Oracle training in Linux commands
 
Oracle training Excel
 
 
 
 

 

email BC:


Copyright © 1996 -  2014 by Burleson Inc. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.