Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

Free Oracle Tips

HTML Text

 Home
 E-mail Us
 Oracle Articles



 Oracle Training
 Oracle News

 Oracle Forum
 Class Catalog


 Our Staff
 Our Prices
 Help Wanted!

 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 UNIX
 Oracle UNIX
 Linux
 Oracle Linux
 Monitoring
 Remote help

 Remote plans
 Remote
services
 Oracle C++
 Oracle Java
 Apache
 JDeveloper
 App Server

 Applications
 Oracle Forms
 Oracle Portal
 11i Upgrades
 SQL Server
 Oracle Concepts
 HTML-DB Tips
 Software Help

 Remote Help  
 Development  

 Implementation


 Financials Training
 Oracle 11i
 Oracle Apps 11i
 Oracle Workflow
 Oracle AR 11i Class
 Oracle AP 11i class
 Oracle GL 11i class
 Oracle HR 11i class
 Oracle FA 11i class
 11i Project Mgt
 11i procurement
 11i collections


 Oracle Posters
 Oracle Books

 Oracle Tuning Book
 Oracle RAC Book
 Oracle Security
 Easy Oracle Books
 Oracle Scripts
 SQL Server DBA
 SQL Design Patterns
 WISE
 Excel-DB   


 BC Oracle News


 Rednecks!
 Dress code
 Arabian Stallion

 Burleson Arabians
 Guide Horses
 Don Burleson Blog
 Golf & Travel


 Privacy Policy
 

 

 

 
 

Oracle 10g Predictive Modeling

Oracle Tips by Burleson Consulting

“Predictions are difficult, especially about the future.” — Yogi Berra

One feature that makes Oracle the most powerful database ever created is his ability to create predictive models to assist the DBA.  These powerful predictive models allow Oracle to forecast the benefit of changes to the database:

  • SGA Advisors - Oracle has predictive advisories for the data buffer cache, the shared pool and almost every region within the Oracle RAM heap.  In Oracle 10g automated memory management (AMM), Oracle acts upon the predictions and morphs the SGA automatically.
     

  • Tuning advisors - Oracle's automatic diagnostic database advisor (ADDM) uses artificial intelligence to recommend new materialized views and indexes.  Oracle also has a SQLTuning advisor and a SQLAccess advisor.  These advisors gather real-world empirical execution information from Oracle and recommends actions based upon the execution samples.

Is it possible for Oracle to predict a future problem and prevent it?  The adage "Those who forget the past are condemned to repeat it" is relevant here, and it's only a matter of time before the scientists at Oracle develop a predictive model that will analyze historical patterns and "proactively" change the database BEFORE the problem occurs.

This approach is the same as the Workload Interface Statistics Engine (WISE) analyzer, where historical data from STATSPACK and AWR and analyzed to identify the signatures (repeating patterns), and interface with dbms_scheduler to change the database just-in-time to prevent the future outage.  This revolutionary techniques is the basis of his new book "Oracle Tuning: The Definitive Reference".  

Oracle is listening, and it appears that Oracle will soon leverage upon their wonderful time-series performance repository, the AWR.

In an OracleWorld 2003 presentation titled “Oracle Database 10g: The Self-Managing Database” by Sushil Kumar of Oracle Corporation, Kumar states that the Automatic Maintenance Tasks (AMT) Oracle10g feature will automatically detect and re-build sub-optimal indexes.“

In a superb paper titled “METRIC BASELINES: DETECTING AND EXPLAINING PERFORMANCE EVENTS IN EM 10GR2”, Presented at the RMOUG 2005 Training Days in Denver, John Beresniewicz of Oracle Corporation gives us a great preview into the new predictive modeling tools in Oracle 10g release 2 (10.2).  Beresniewicz told me that the use of "baselines to capture and adapt thresholds to expected time-dependent workload variations" is a core feature of the next release of Oracle: 

The metric baselines introduced in Enterprise Manager 10gR2 statistically characterize specific system metrics over time periods matched to system usage patterns. These statistical profiles of expected metric behavior are used to implement adaptive alert thresholds that can signal administrators when statistically unusual metric events occur.

Assuming that systems are normally stable and performance problems rare, it is reasonable to expect that actual performance events will be highly correlated with observed unusual values in some metric or other. Thus it is hoped that baseline-driven adaptive thresholds will both reduce configuration overhead for administrators and more reliably signal real problems than fixed alert thresholds.

The idea is simple.  Because Automated Workload Repository (AWR, or STATSPACK in 8i and 9i) keeps a historical performance record, Oracle now “knows” when a scheduled task is going to cause a resource shortage, before it happens!  Using the AWR we can analyze statistically valid trends and repeating patterns.  Many databases have “batch job” schedules, implemented via crontabs, dbms_job or dbms_scheduler, and this valuable data can be used to:

  • Automatically morph the Oracle instance to anticipate a daily of weekly batch job.  The most common example of this is a database that runs in OLTP mode during the day (first_rows) and switches to decision support at night (all_rows).
     

  • Predict the reduction in logical I/O and physical I/O from reorganizing a table or index
     

  •  Use linear regression to predict a future time when Oracle will exhaust server resources RAM, CPU)

Beresniewicz also shows the value of “signature analysis” where you average metric values by day-of-the-week and hour-of-the-day, and use the valid trends to create a predictive model for proactive DBA changes:

The baseline period can be divided into sub-intervals of time over which statistical aggregates are computed. These subintervals, or “time partitions” are intended to allow baselines to capture and adapt thresholds to expected time-dependent workload variations.

EM 10gR2 allows for simple time partitioning that can capture common daily or weekly usage/workload cycles. The daily options are:

• By hour of day: aggregate each hour separately, strong variation across hours

• By day and night: aggregate the hours of 7am-7pm as day and 7pm-7am as night

• By all hours: aggregate all hours together, no strong daily cycle

The weekly time partitioning options are: 

• By day of week: aggregate days separately, strong variation across days

• By weekday and weekend: aggregate Mon-Fri together and Sat-Sun together

• By all days: aggregate all days together, no strong weekly cycle

 Time partitioning is fully specified in EM 10gR2 by selecting both daily and weekly partitioning options.

For example, consider an operational system serving many online users working similar daily schedules and running batch jobs in the evening.

In this exciting paper we see that Oracle is planning to adopt the same kind of predictive model that I have espoused for many years.  The basic idea is that historical data will provide valid predictive information that can be used by Oracle to fix a resource issue BEFORE it cripples your performance. 

 
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.


    Need an Oracle Health Check?
  • Do you have bad performance after an upgrade?
     
  • Need to certify that your database follows best practices?

BC Oracle performance gurus can quickly certify every aspect of your Oracle database and provide a complete verification that your database is fully optimized.

 

 

 

 
 
 

Oracle performance tuning book

 

 

Oracle performance tuning software

 
Oracle performance tuning software
 
SearchOracle web site
 
Oracle performance Tuning 10g reference poster
 
Oracle performance tuning webcast
 
Oracle training in Linux commands
 
Oracle training Excel
 
Oracle training & performance tuning books
 
 

 

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals. 
Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  and include the URL for the page.
 
 


Burleson Consulting

The Oracle of database support


 

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

Oracle® is the registered trademark of Oracle Corporation.


Hit Counter