gpt4 book ai didi

oracle - 如何使用 TKPROF 实用程序以及语法和参数?

转载 作者:行者123 更新时间:2023-12-04 17:59:01 24 4
gpt4 key购买 nike

如何使用 TKPROF 实用程序以及语法和参数?

最佳答案

如果您只是在操作系统命令提示符下键入“tkprof”,它会列出其参数及其含义,如下所示:

> tkprof
Usage: tkprof tracefile outputfile [explain= ] [table= ]
[print= ] [insert= ] [sys= ] [sort= ]
table=schema.tablename Use 'schema.tablename' with 'explain=' option.
explain=user/password Connect to ORACLE and issue EXPLAIN PLAN.
print=integer List only the first 'integer' SQL statements.
aggregate=yes|no
insert=filename List SQL statements and data inside INSERT statements.
sys=no TKPROF does not list SQL statements run as user SYS.
record=filename Record non-recursive statements found in the trace file.
waits=yes|no Record summary for any wait events found in the trace file.
sort=option Set of zero or more of the following sort options:
prscnt number of times parse was called
prscpu cpu time parsing
prsela elapsed time parsing
prsdsk number of disk reads during parse
prsqry number of buffers for consistent read during parse
prscu number of buffers for current read during parse
prsmis number of misses in library cache during parse
execnt number of execute was called
execpu cpu time spent executing
exeela elapsed time executing
exedsk number of disk reads during execute
exeqry number of buffers for consistent read during execute
execu number of buffers for current read during execute
exerow number of rows processed during execute
exemis number of library cache misses during execute
fchcnt number of times fetch was called
fchcpu cpu time spent fetching
fchela elapsed time fetching
fchdsk number of disk reads during fetch
fchqry number of buffers for consistent read during fetch
fchcu number of buffers for current read during fetch
fchrow number of rows fetched
userid userid of user that parsed the cursor

一个典型的用法是:
tkprof tracefile.trc myoutputfile.txt explain=myschema/password sys=no sort=exeela

有关更多信息,请参阅 Performance Tuning Guide .

关于oracle - 如何使用 TKPROF 实用程序以及语法和参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2408635/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com