Listener and sqlnet trace

简介:

Listener and sqlnet trace

Posted by decipherinfosys on June 5, 2007

At times, when troubleshooting connectivity issues or performance issues, you might need to run listener trace (server side) and/or a sqlnet trace (client side trace).  Oracle support staff will also ask for these files when you enlist their help in troubleshooting these issues.  Here are the steps on how you can do that:

To enable sqlnet trace (client side trace):

Add the following to the sqlnet.ora file on the application server(s) from where the connections are being made to the Oracle database:

Trace_level_client=16
Trace_directory_client=<path_to_the_trace_directory> # use the full path to the trace directory
Trace_unique_client=on
Trace_timestamp_client=on

To enable listener trace (server side):

Add the following to the listener.ora file on the db server before starting the listener:

TRACE_TIMESTAMP_<listener_name>=on
TRACE_DIRECTORY_< listener_name>=<path_to_the_trace_directory>

Here <listener_name> is the name of the listener. Then run lsnrctl to turn on the listener trace:

lsnrctl> set current_listener <listener_name>
lsnrctl> set trc_level support

You can run both trace at the same time for 15 minutes or so in order to get some meaningful data set.

To stop the sqlnet trace:

Remove the following entries from sqlnet.ora or comment them out by using the # sign:

Trace_level_client=16
Trace_directory_client=<path_to_the_trace_directory> # use the full path to the trace directory
Trace_unique_client=on
Trace_timestamp_client=on

To stop the listener trace:

lsnrctl> set trc_level off

For getting more information on the trace levels and the different parameters for these traces, please refer metalink or otn.

本文转自海天一鸥博客园博客,原文链接:http://www.cnblogs.com/sgsoft/archive/2010/11/23/1885852.html,如需转载请自行联系原作者
相关文章
|
Oracle 网络协议 关系型数据库
Oracle会话超时设置1:在sqlnet.ora和listener.ora中设置
这篇文章是Oracle会话超时设置的第一个文章,简述和Oracle 数据库 net services有关的会话超时管理。
1364 0
Oracle会话超时设置1:在sqlnet.ora和listener.ora中设置
|
6月前
|
Oracle 关系型数据库 Java
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
1276 0
|
Oracle 关系型数据库 数据库
ORA-12541:TNS:no listener
PLSQL作为一个专门开发面向Oracle数据库的应用,那登录时肯定和Oracle息息相关了。那面对出现“ORA-12541:TNS:no listener”时应该怎么办呢?我分为了三个步骤:“确保Oracle连接成功”和“Oracle的Net Configuration Assistant的配置”和“重新启动Oracle服务”。
ORA-12541:TNS:no listener
|
XML Oracle 关系型数据库
Oracle-Listener log解读
Oracle-Listener log解读
203 0
|
SQL Oracle 网络协议
Oracle的网络三大配置文件sqlnet.ora、tnsnames.ora、listener.ora
Oracle的网络三大配置文件sqlnet.ora、tnsnames.ora、listener.ora
770 0
|
Oracle 网络协议 关系型数据库
Oracle环境变量、监听listener.ora、tnsnames.ora、sqlnet.ora配置
Oracle环境变量、监听listener.ora、tnsnames.ora、sqlnet.ora配置 点击(此处)折叠或打开 NLS_DATE_FORMAT=YYYY-MM-DD HH24:mi:ss NLS_LANG=AMERICAN_CHINA.
1058 1
|
Oracle 关系型数据库