BC remote Oracle DBA - Call (800) 766-1884  
Oracle Consulting Oracle Training Development

Remote DBA

Remote DBA Plans  

Remote DBA Service

Remote DBA RAC

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





   

 

 

 

Remote DBA services

Remote DBA Support

Remote DBA RAC

Remote DBA Reasons

Remote Oracle Tuning

Remote DBA Links

Oracle DBA Support

Oracle DBA Forum

Oracle Disaster

Oracle Training

Oracle Tuning

Oracle Training

 Remote DBA SQL Server

Remote MSSQL Consulting

Oracle DBA Hosting

Oracle License Negotiation

 

 


 

 

 

 

 
 

Automating Oracle

Oracle Tips by Mike Ault

  Automated Statistics Gathering

       OPEN get_stat(stat_name);
      FETCH get_stat INTO temp_name, r_calls;
       CLOSE get_stat;
 EXCEPTION
    WHEN NO_DATA_FOUND THEN
 CLOSE get_stat;
 END;
.
.
.
BEGIN
    calls_u := (r_calls/u_calls);
    h_ratio := ((db_gets+con_gets)/(db_gets+con_gets+p_reads));
    suhw_cont  := (suh_waits/(db_gets+con_gets)*100);
    subw_cont  := (sub_waits/(db_gets+con_gets)*100);
    uhw_cont  := (uh_waits/(db_gets+con_gets)*100);
    ubw_cont  := (ub_waits/(db_gets+con_gets)*100);
   stat_name := 'RECURSIVE CALLS PER USER';
       OPEN get_delta(calls_u,stat_name,comp_date);
       FETCH get_delta INTO delta;
       CLOSE get_delta;
         write_out
(stat_name,calls_u,3,meas_date,delta,is_interactive);
      stat_name := 'CUMMULATIVE HIT RATIO';
         write_out
(stat_name,h_ratio,3,meas_date,0,is_interactive);
         stat_name := 'SYS UNDO HDR WAIT CONTENTION';
         write_out
(stat_name,suhw_cont,3,meas_date,0,is_interactive);
         stat_name := 'SYS UNDO BLK WAIT CONTENTION';
         write_out
(stat_name,subw_cont,3,meas_date,0,is_interactive);
         stat_name := 'UNDO HDR WAIT CONTENTION';
         write_out
(stat_name,uhw_cont,3,meas_date,0,is_interactive);
         stat_name := 'UNDO BLK WAIT CONTENTION';
         write_out
(stat_name,ubw_cont,3,meas_date,0,is_interactive);
  stat_name := 'freelist';
       OPEN get_count(stat_name);
       FETCH get_count INTO temp_name, stat_val;
       CLOSE get_count;
  stat_name := 'Free List Contention Ratio';
         write_out
(stat_name,stat_val,4,meas_date,0,is_interactive);

SEE CODE DEPOT FOR FULL SCRIPTS


   

Expert Remote DBA

BC is America's oldest and largest Remote DBA Oracle support provider.  Get real Remote DBA experts, call
BC Remote DBA today.

 

 

 
 
 
Get the Complete
Oracle Streams Details 

The landmark book "Oracle Streams High Speed Replication and Data Sharing " is packed with scripts and tools that explain expert secrets for high speed data replication and you can buy it for 30% off directly from the publisher.
 

 

Remote DBA Service
 

Oracle Tuning Book

 

Advance SQL Tuning Book 

BC Oracle support

Oracle books by Rampant

Oracle monitoring software

 

 

 

 

 

 

BC Remote Oracle Support

Remote DBA

Remote DBA Services

Copyright © 1996 -  2013 by Burleson. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.



Hit Counter