Unix Technical Forum

Generating trc file for TKPROF

This is a discussion on Generating trc file for TKPROF within the Oracle Database forums, part of the Database Server Software category; --> Hi, Am doing the following to try and generate a trc file for analysing with TKPROF. ALTER SESSION SET ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2008, 04:21 AM
Miggins
 
Posts: n/a
Default Generating trc file for TKPROF

Hi,

Am doing the following to try and generate a trc file for analysing
with TKPROF.

ALTER SESSION SET TIMED_STATISTICS=TRUE;

Then run the code i want to analyse

ALTER SESSION SET TIMED_STATISTICS=FALSE;

I check the destination of the file by the following

select value
from v$parameter
where name = 'user_dump_dest';

However i am not getting anything generated.

Am i missing something out?

Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-25-2008, 04:21 AM
sybrandb
 
Posts: n/a
Default Re: Generating trc file for TKPROF

alter session set sql_trace = true

However without timed_statistics=true a trace file is pretty useless.

--
Sybrand Bakker
Senior Oracle DBA

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-25-2008, 04:21 AM
bdbafh@gmail.com
 
Posts: n/a
Default Re: Generating trc file for TKPROF

what version?
there are at least 4 different methods of generating trace of a user's
session.

-bdbafh

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:22 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com