怎样去 trace sql*net
短信预约 -IT技能 免费直播动态提醒
怎样去 trace sql*net
在sqlnet.ora中添加如下参数
TRACE_LEVEL_CLIENT=16
TRACE_DIRECTORY_CLIENT=/oracle/app/product/11.2.0/db/network/admin
TRACE_FILE_CLIENT=client
TRACE_UNIQUE_CLIENT=ON
TRACE_TIMESTAMP_CLIENT=ON
产生的文件位于
$ORACLE_BASE/diag/client/user_oracle/host_$NUMBER/trace
使用trcasst 分析sql*net的trace文件
[oracle@11g trace]$ trcasst -h
Trace Assistant Utility: Version 11.2.0.3.0 Production on March 2, 2019 12:11:11 AM
Copyright (c) 2001, 2011, Oracle. All rights reserved.
TNS-04301: Trace Assistant Usage error: Invalid options.
Usage : trcasst [options] <filename>
[options] default values are -odt -e0 -s
<filename> always last argument
-o[c|d][u|t][q] Net Services and TTC information
[c] Summary of Net Services information
[d] Detailed Net Services information
[u] Summary of TTC information
[t] Detailed TTC information
[q] SQL commands (used together with u)
-s Statistics
-e[0|1|2] Error information, default is 0
[0] Translate NS error numbers
[1] Error translation
[2] Error numbers without translation
-l[a|i <connection_id>] Connection information
[a] List all connections in a trace file
[i <connection_id>] Decode a specified connection
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341