BC remote Oracle DBA - Call (800) 766-1884
Free Oracle Tips

Oracle Consulting Oracle Training Development
Oracle Training
SQL Tuning Consulting
Oracle Tuning Consulting
Data Warehouse Consulting
Oracle Project Management
Oracle Security Assessment
Unix Consulting
Burleson Books
Burleson Articles
Burleson Web Courses
Burleson Qualifications
Oracle Internals Magazine
Oracle Links
Oracle Monitoring
Remote Support Benefits
Remote Plans & Prices
Our Automation Strategy
What We Monitor
Oracle Apps Support
Print Our Brochure
Contact Us (e-mail)
Oracle Job Opportunities
Oracle Consulting Prices





   

 

 

 

 

 

Oracle Space and Storage Management Enhancements

Oracle Tips by Burleson Consulting

This is an excerpt from "Oracle 10g New Features for Administrators" by Ahmed Baraka.

Proactive Tablespace Management

• In Oracle Database 10g, by default, all tablespaces have built-in alerts that   notify you when the free space in the tablespace goes below a certain   predetermined threshold level.

• By default, Oracle sends out a warning alert when your tablespace is 85   percent full and a critical alert when the tablespace is 97 percent full. This   also applies in the undo tablespace.

• If you are migrating to Oracle Database 10g, Oracle turns off the   automatic tablespace alerting mechanism by default.

Tablespace Alerts Limitations

• You can set alerts only for locally managed tablespaces.

• When you take a tablespace offline or make it read-only, you must turn the    alerting mechanism off.

• You will get a maximum of only one undo alert during any 24-hour period.

Using the Database Control to Manage Thresholds

Manage Metrics link | click the Edit Thresholds button

Using the DBMS_SERVER_ALERT Package

You can use the procedures: SET_THRESHOLD and GET_THRESHOLD in the DBMS_SERVER_ALERT package to manage database thresholds.

Examples:

To set your own databasewide default threshold values for the Tablespace Space Usage metric:

EXECUTE DBMS_SERVER_ALERT.SET_THRESHOLD(
METRICS_ID=>dbms_server_alert.tablespace_pct_full,
WARNING_OPERATOR=>dbms_server_alert.operator_ge,
WARNING_VALUE=>80,
CRITICAL_OPERATOR=>dbms_server_alert.operator_ge,
CRITICAL_VALUE=>95,
OBSERVATION_PERIOD=>1,
CONSECUTIVE_OCCURRENCES=>1,
INSTANCE_NAME=>NULL,
OBJECT_TYPE=>dbms_server_alert.object_type_tablespace,
OBJECT_NAME=>NULL)

To set a warning threshold of 80% and a critical threshold of 95% on the EXAMPLE tablespace, use the same previous example except OBJECT_NAME parameter should take value of

'EXAMPLE'

To turn off the space-usage tracking mechanism for the EXAMPLE tablespace:

EXECUTE DBMS_SERVER_ALERT.SET_THRESHOLD(
METRICS_ID=>dbms_server_alert.tablespace_pct_full,
WARNING_OPERATOR=>dbms_server_alert.operator_do_not_check,
WARNING_VALUE=>'0',
CRITICAL_OPERATOR=>dbms_server_alert.operator_do_not_check,
CRITICAL_VALUE=>'0',
OBSERVATION_PERIOD=>1,
CONSECUTIVE_OCCURRENCES=>1,
INSTANCE_NAME=>NULL,
OBJECT_TYPE=>dbms_server_alert.object_type_tablespace,
OBJECT_NAME=>'EXAMPLE')

 

If you like Oracle tuning, see the book "Oracle Tuning: The Definitive Reference", with 950 pages of tuning tips and scripts. 

You can buy it direct from the publisher for 30%-off and get instant access to the code depot of Oracle tuning scripts.


Download your Oracle scripts now:

www.oracle-script.com

The definitive Oracle Script collection for every Oracle professional DBA

 

 


 

Free Oracle dictionary reference poster

BC Oracle support

Oracle books by Rampant

Oracle monitoring software

North Carolina Oracle Users Group

 

 Arabian horse breeder

Seeing eye horses

 

 

BC Remote Oracle Support
P.O. Box 511 • Kittrell, NC, 27544

Copyright © 2007 by Burleson Enterprises, Inc. All rights reserved.

Hit Counter