Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
134 views2 pages

Tkprof

TKProf is a tool used to analyze Oracle trace (.trc) files generated from concurrent requests. The document provides instructions on using TKProf to generate reports from trace files, including specifying the source and output files, setting parameters like SYS and sorting, and avoiding writing to shared udump folders due to permission issues. It also provides a SQL query to retrieve metadata about a specific concurrent request like the request ID, trace ID, program name, and file name to help identify the correct trace file.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
134 views2 pages

Tkprof

TKProf is a tool used to analyze Oracle trace (.trc) files generated from concurrent requests. The document provides instructions on using TKProf to generate reports from trace files, including specifying the source and output files, setting parameters like SYS and sorting, and avoiding writing to shared udump folders due to permission issues. It also provides a SQL query to retrieve metadata about a specific concurrent request like the request ID, trace ID, program name, and file name to help identify the correct trace file.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

TKProf

-----
-----
FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559
.1]
How To Trace a Concurrent Request And Generate TKPROF File [ID 453527.1]
1. Command
-------
tkprof vmwdev2_ora_8756_VINAYR_CR57076017.trc kumar_57076017.txt
2.
go to this path: cd /oracle/d1/oracle/vmwdev2appl
3. search for the envronment file as
$ ls - ltr *.env
3.1. Change the command prompt to BASH.
4. find the correct environment file and need to set this environment file as fo
llows:
5. give dot and space and env file name
$ . <env filename>
6. Try to type tkprof it should give some thing
7. Dont use tkprof comand in the udump folder beacuse it is a shared folder and
you dont have the access for read/write permissions.
8. So compay the file to some other directory and use tkprof command.
9. Udump Path:
/oracle/app/oracle/product/10.2.0/db/admin/VMWDEV2_ora-dev2-ebs-d1/udump
--------------------------------------------------------------------------------
------
--------------------------------------------------------------------------------
------

tkprof vmwdev2_ora_10630_VINAYR_CR57076146.trc kumar_57076146.txt
tkprof vmwdev2_ora_10630_VINAYR_CR57076146.trc kumar_57076146.txt

tkprof VMWDEV4_ora_21156_RSAGIRAJU_CR58269200.trc kumar_58269200.txt
tkprof <source.trc> <file.prc> sys=no sort=exeela,fchela,prsela
tkprof vmwdev2_ora_25612_VINAYR_CR57077082.trc new_trance_k2.txt sys=no sort=e
xeela,fchela,prsela
tkprof vmwdev2_ora_25612_VINAYR_CR57077082.trc new_trance_k1.txt
tkprof vmwdev2_ora_25612_VINAYR_CR57077082.trc new_trance_k2.txt SYS=No sort=(pr
sela, exeela, fchela)
tkprof vmwdev2_ora_25612_VINAYR_CR57077082.trc new_trance_k2.txt sort=(prsela, e
xeela, fchela)
tkprof <source.trc> <file.prc> sys=no sort=exeela,fchela,prsela
tkprof vmwdev2_ora_25612_VINAYR_CR57077082.trc new_trance_k3.txt sys=no sort=exe
ela,fchela,prsela
SELECT 'Request id: '||request_id ,
'Trace id: '||oracle_Process_id,
'Trace Flag: '||req.enable_trace,
'Trace Name:
'||dest.value||'/'||lower(dbnm.value)||'_ora_'||oracle_process_id||'.trc',
'Prog. Name: '||prog.user_concurrent_program_name,
'File Name: '||execname.execution_file_name|| execname.subroutine_name ,
'Status : '||decode(phase_code,'R','Running')
||'-'||decode(status_code,'R','Normal'),
'SID Serial: '||ses.sid||','|| ses.serial#,
'Module : '||ses.module
from fnd_concurrent_requests req, v$session ses, v$process proc,
v$parameter dest, v$parameter dbnm, fnd_concurrent_programs_vl prog,
fnd_executables execname
where req.request_id = &request
and req.oracle_process_id=proc.spid(+)
and proc.addr = ses.paddr(+)
and dest.name='user_dump_dest'
and dbnm.name='db_name'
and req.concurrent_program_id = prog.concurrent_program_id
and req.program_application_id = prog.application_id
--- and prog.application_id = execname.application_id
and prog.executable_application_id = execname.application_id
and prog.executable_id=execname.executable_id

You might also like