配置SQLNET.ORA文件跟踪客户端连接

在$ORACLE_HOME/network/admin/sqlnet.ora文件添加如下跟踪参数:
TRACE_LEVEL_CLIENT=16
TRACE_FILE_CLIENT=CLIENT
TRACE_TIMESTAMP_CLIENT=ON
trace_directory_client=/home/oracle

[oracle@xuh ~]$ pwd
/home/oracle
[oracle@xuh ~]$ ls -l client*
-rw-r----- 1 oracle oinstall   130488 Jan 11 20:29 client_6966.trc
-rw-r----- 1 oracle oinstall    28096 Jan 11 20:51 client_7065.trc
-rw-r----- 1 oracle oinstall    28118 Jan 11 20:51 client_7068.trc
-rw-r----- 1 oracle oinstall 11956846 Jan 11 20:53 client_7098.trc
-rw-r----- 1 oracle oinstall   142884 Jan 11 20:57 client_7115.trc
-rw-r----- 1 oracle oinstall   142884 Jan 11 20:57 client_7120.trc
-rw-r----- 1 oracle oinstall   147248 Jan 11 21:20 client_7190.trc
[oracle@xuh admin]$ sqlplus system/oracle@mrhua   #客户端发起一次连接,就会产生一个跟踪文件
SQL*Plus: Release 10.2.0.5.0 - Production on Mon Jan 11 20:29:34 2016
Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
ERROR:
ORA-12537: TNS:connection closed
Enter user-name:
[oracle@xuh ~]$ more client_6966.trc
...skipping
[11-JAN-2016 20:29:17:908] niomapnserror: entry
[11-JAN-2016 20:29:17:908] niqme: entry
[11-JAN-2016 20:29:17:908] niqme: reporting NS-12537 error as ORA-12537
[11-JAN-2016 20:29:17:908] niqme: exit
[11-JAN-2016 20:29:17:908] niomapnserror: exit
[11-JAN-2016 20:29:17:908] niotns: Couldn't connect, returning 12537
[11-JAN-2016 20:29:17:909] niotns: exit
[11-JAN-2016 20:29:17:909] nigcui: entry
[11-JAN-2016 20:29:17:909] nigcui: Clr User Interrupt: hdl=1, prc=0x8c044618, ctx=0x5994870.
[11-JAN-2016 20:29:17:909] nigcui: exit (0)
[11-JAN-2016 20:29:17:909] nsbfrfl: entry
[11-JAN-2016 20:29:17:909] nsbrfr: entry
[11-JAN-2016 20:29:17:909] nsbrfr: nsbfs at 0x59abf20, data at 0x59abfd0.
[11-JAN-2016 20:29:17:909] nsbrfr: normal exit
[11-JAN-2016 20:29:17:909] nsbrfr: entry
[11-JAN-2016 20:29:17:909] nsbrfr: nsbfs at 0x59ac7f0, data at 0x59ac8a0.
[11-JAN-2016 20:29:17:909] nsbrfr: normal exit
[11-JAN-2016 20:29:17:909] nsbrfr: entry
[11-JAN-2016 20:29:17:909] nsbrfr: nsbfs at 0x59a80d0, data at 0x59a8180.
[11-JAN-2016 20:29:17:909] nsbrfr: normal exit
[11-JAN-2016 20:29:17:909] nsbfrfl: normal exit
[11-JAN-2016 20:29:17:909] nttdisc: entry
[11-JAN-2016 20:29:17:909] nttdisc: Closed socket 8
[11-JAN-2016 20:29:17:909] nttdisc: exit
[11-JAN-2016 20:29:17:909] nigtrm: Count in the NI global area is now 1
[11-JAN-2016 20:29:17:909] nigtrm: Count in the NL global area is now 1
[11-JAN-2016 20:29:19:235] nigini: entry
[11-JAN-2016 20:29:19:235] nigini: Count in the NL global area is now 2
[11-JAN-2016 20:29:19:235] nigini: Count in NI global area now: 2
[11-JAN-2016 20:29:19:235] nigini: exit
[11-JAN-2016 20:29:19:235] nigconcbs: entry
[11-JAN-2016 20:29:19:235] nigconcbs: exit
[11-JAN-2016 20:29:19:235] niotns: entry
[11-JAN-2016 20:29:19:235] niotns: niotns: setting up interrupt handler...
[11-JAN-2016 20:29:19:235] nigsui: entry
--More--(21%)

通过分析跟踪文件,以便我们更好的锁定问题、分析问题、解决问题!

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30310891/viewspace-1974811/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/30310891/viewspace-1974811/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值