iSelfSchooling.com - Copyright © 1999-2009  References  |  Job Openings  | Login (Staff | Members)
    Home  | Search more...  | Community of Sharing Knowledge (with FREE Online Video Training)
    Oracle Syntax  | Suggestions  | Private Tutoring  | Member Collaboration  | Get Translations...

  Copyright & User Agreement

    Email2aFriend  | Homepage us! |  Bookmark

Services

 Vision/Mission

 Services

 Biography

 Contact Us

 

 FREE Training

 SQL

 PL/SQL

 Forms 

 Reports

 Other TOOLS

 Fundamentals

 Performance

 OEM

 Application Server

 Grid Control

 Articles

 Prepare for OCP

 

More to know...

Acknowledgement___

 Who is who

 University Directory

 Links...

 

 

 

 

FREE Online Oracle Training for beginners and advanced - The most comprehensive Oracle tutorial

The authors do not guarantee or take any responsibility for the accuracy, or completeness of the information.

BASICS

SQL | PL/SQL

DEVELOPERS

FORMS 2 | REPORTS | Other TOOLS

DBAs

FUNDAMENTALS 2 | PERFORMANCE | OEM

ADVANCE

APPLICATION SERVER | GRID CONTROL | ARTICLES 2 3 4

Advanced - Articles I

Lesson 01 | Lesson 02 | Lesson 03 | Lesson 04 | Lesson 05 | Lesson 06 | Lesson 07 | Lesson 08 | Lesson 09 | Lesson 10 | Lesson 11 | Lesson 12 | Lesson 13 | Lesson 14 | Lesson 15 | Lesson 16 | Lesson 17 | Lesson 18 | Lesson 19 | Lesson 20 | Lesson 21 | Lesson 22 | Lesson 23 | Lesson 24 | Lesson 25 | Lesson 26 | Lesson 27 | Lesson 28 | Lesson 29 | Lesson 30 | Lesson 31 | Lesson 32 | Lesson 33 | Lesson 34 | Lesson 35 |

Lesson 31

"It is a wholesome and necessary thing for us to turn again to the earth and in the contemplation of her beauties to know of wonder and humility." 

-Rachel Carson (1907-1964)

SQL Trace is writing 100s of trace or dump files into user dump directory. How can I stop it?

 

When you open a trace file, it does show that the sql tracing at the session level is being enabled with the command "alter session set sql_trace true"

 

The trace includes the session id and serial number

SESSION ID:(39.922)

sid 39 serial# 922

 

Look at the trace files to see if they all have the same sid and serial#

 

If so then this might be set at the session level by single user. If the sid and serial# are different, then may be set in the code itself. You can turn off trace for a sid,serial# using the following package

DBMS_SUPPORT.STOP_TRACE_IN_SESSION( sid , null );

If you have too many sessions to stop this could be a lot of work and if sqltrace is in the code, then tracing may start again. Using this sid, serial# information you can look at the views v$session and v$process to get info on the oracle user and maybe even more info on osuser, application and terminal. As a temp fix to prevent the filling of diskspace you can set the parameter MAX_DUMP_FILE_SIZE =0 or a small value to prevent large files.

ALTER SYSTEM SET max_dump_file_size=0;

Also, the sql trace requires the privilege Alter session. You could revoke that privilege to prevent the tracing. This will also prevent other alter session commands.

REVOKE alter session FROM dmadmin;

Otherwise, no easy method to turn off the session sql tracing.

 

 

 
 
Google
 
Web web site