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

OCP Instructors Guide for Oracle DBA Certification

Chapter 8 - Miscellaneous Oracle Information

Monitoring Space Utilization and Performance Statistics Historically

The following statements show you how to create a history table and then insert information into it. Run the insert script on a daily basis. It will give you and idea on how to create and load additional tables for performance stats (and whatever else you decide that is important to track historically). Hint: You may want to write PL/SQL to load some statistics into the performance tracker.

Creating the tracking tables:

create table system.extents_tracker (run_date date, tspace varchar2(30),
segtype varchar2(17), segowner varchar2(30),
segname varchar2(81), segext number, segbytes number,
seginit number, segnext number, segpctinc number)
tablespace tools storage (initial 50K next 50k pctincrease 0);
create table system.space_tracker (run_date date, tspace varchar2(30),
fileid number, maxspace number, minspace number, avgspace number, totspace
number)
tablespace tools storage (initial 50k next 50k pctincrease 0);

Run these statements on a daily basis to update the tables:

insert into system.extents_tracker (run_date, tspace, segtype, segowner, segname, segext, segbytes, seginit, segnext, segpctinc) select sysdate, tablespace_name, segment_type, owner, segment_name, extents, bytes, initial_extent, next_extent, pct_increase from DBA_SEGMENTS where owner not in ('SYS', 'SYSTEM') and extents > 20;
insert into system.space_tracker (run_date, tspace, fileid, maxspace, minspace, avgspace, totspace)
select sysdate, tablespace_name, file_id ,
max (bytes) , min (bytes), avg (bytes), sum (bytes)
from sys.dba_free_space
 


The above text is an excerpt from:


OCP Instructors Guide for Oracle DBA Certification
A Study Guide to Advanced Oracle Certified Professional Database
Administration Techniques

ISBN 0-9744355-3-8

by Christopher T. Foot
 

http://www.rampant-books.com/book_2003_2_OCP_print.htm


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.