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

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


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


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

database_trace_enable tips

Oracle Database Tips by Donald BurlesonFebruary 21, 2015

Question:  How does the database_trace_enable procedure of dbms_monitor work?

Answer:  The database_trace_enable parameter procedure is used as part of the dbms_monitor package  to trace for a specific instance activity.

alter session set tracefile_identifier = 'dbms_monitor';
 
exec dbms_monitor.database_trace_enable (instance_name=>'MYINST',binds=>true);
 
exec dbms_monitor.database_trace_enable (instance_name=>'MYINST',waits=>true);

exec dbms_monitor.database_trace_enable(waits => true, binds => false, instance_name => 'MYINST');

To turn off database tracing, issue this command:

exec dbms_monitor.database_trace_disable;
 
Also see my notes on the session_trace_enable procedure.

You can query the tracing with the dba_enabled_traces view and see the trace file location with these queries:
 
select
   trace_type,
   primary_id,
    waits,
   binds
from
   dba_enabled_traces;

select
   value
from
   v$diag_info
where
   name ='default trace file';

The database_trace_enable is a procedure that enables or turns tracing for the specified instance. The plan stat parameter valid values are NEVER, FIRST_EXECUTION (same as NULL) and ALL_EXECUTIONS.

Also see my notes on how to find  find an Oracle trace file script.

Warning:  Using dbms_monitor.database_trace_enable may generate zillions of trace files and could fill-up your trace directory with xxx.trc files.  It is a very rare case when you want to trace all activity within a running database istance.

 
 
 
Inside the DBMS Packages

The DBMS packages form the foundation of Oracle DBA functionality.  Now, Paulo Portugal writes a landmark book Advanced Oracle DBMS Packages:  The Definitive Reference

This is a must-have book complete with a code depot of working examples for all of the major DBMS packages.  Order directly from Rampant and save 30%. 
 


 

 

Burleson is the American Team

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

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by Conversational

 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster