how to turn on the tracing?
[Oracle @ test admin] $ lsnrctl status testdb
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 06-AUG-2009 01:27:27
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION = (SID_NAME = testdb) (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROCTEST)))
STATUS of the LISTENER
------------------------
Alias testdb
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 05-AUG-2009 05:49:53
Uptime 0 days 19 hr. 37 min. 33 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File / u01/app/oracle/oracle/product/10.2.0/db_3/network/admin/listener.ora
Listener Log File / u01/app/oracle/oracle/product/10.2.0/db_3/network/log/testdb.log
Listening Endpoints Summary ...
(DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROCTEST)) (SID_NAME = testdb))
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = 127.0.0.1) (PORT = 1666)) (SID_NAME = testdb))
The listener supports no services
The command completed successfully
[Oracle @ test admin] $ tail -15 sqlnet.log
Fatal NI connect error 12514, connecting to:
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 127.0.0.1) (PORT = 1666)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = testdb) (CID = (PROGRAM = sqlplus @ test) (HOST = test) (USER = oracle))))
VERSION INFORMATION:
TNS for Linux: Version 10.2.0.1.0 - Production
TCP / IP NT Protocol Adapter for Linux: Version 10.2.0.1.0 - Production
Time: 05-AUG-2009 05:07:10
Tracing not turned on .-------> how to turn on this tracing ?-----------------
Tns error struct: |
ns main err code: 12564 |
TNS-12564: TNS: connection refused |
ns secondary err code: 0 |
nt main err code: 0 |
nt secondary err code: 0 |
nt OS err code: 0
|
-------> Way: vi sqlnet.ora, add the following red part of the configuration:
[oracle @ test admin] $ cat sqlnet.ora # sqlnet.ora Network Configuration File: / u01/app/oracle/oracle/product/10.2.0/db_3/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH = (TNSNAMES, hostname)
trace_level_client = 16
trace_timestamp_client = true
trace_unique_client = on
trace_level_client This parameter Indicates the level at which the client program is to be traced.
# Available Values:
# 0 or OFF - No Trace output
# 4 or USER - User trace information
# 10 or ADMIN - Administration trace information
# 16 or SUPPORT - Worldwide Customer Support trace information
###########################
# trace_unique_client = ON
###########################
#
# Possible values: (ON, OFF)
# Default: OFF
#
# Purpose: Used to make each client trace file have a unique name to
# Prevent each trace file from being overwritten by successive
# Runs of the client program
See you again sqlnet.log:
[oracle @ test admin] $ tail -15 sqlnet.log
Fatal NI connect error 12505, connecting to:
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 127.0.0.1) (PORT = 1666)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = testdb) (CID = (PROGRAM = sqlplus @ test) (HOST = test) (USER = oracle))))
VERSION INFORMATION:
TNS for Linux: Version 10.2.0.1.0 - Production
TCP / IP NT Protocol Adapter for Linux: Version 10.2.0.1.0 - Production
Time: 06-AUG-2009 02:45:00
Tracing to file: / u01/app/oracle/oracle/product/10.2.0/db_3/network/admin/cli_1861.trc
Tns error struct:
ns main err code: 12564
TNS-12564: TNS: connection refused
ns secondary err code: 0
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Perhaps the analysis of trace log will provide you some clues.
It is worth noting that even when you are a DB, it will produce a trace log file, so, when you will find and solve the problem, you can turn off the tracing log, or will have a lot of log file.
Related Posts of how to turn on the tracing?
-
Oracle connect DB2
DB2 connect Oracle database through Transparent Gateway (Transparent Gateway) to achieve. To Oracle server at the following local, DB2 on the remote server as an example. The local version of Oracle server 9.2.0.1.0 version, the default client instal ...
-
Oracle10g Network Configuration
1.Oracle Net Listener configuration listener configuration file is $ ORACLE_HOME / network / admin / listener.ora: The following format: (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = <IP/dbserver_name>) (PORT = 1521))) 2. Client <br /&g ...
-
Rownum about a small test
1. Problem Description Colleagues have a test today, rownum, found a small problem with my understanding of the past not the same. I have always thought that rownum is a tag, is the order of query result set to the tag. So should be the first impleme ...
-
Oracle9i database manually create specific steps
Oracle9i database manually create specific steps Article from the Internet, thanks to the author! At the operating system on linux, oracle user name to log in 1, and stop running linux on the database instance 2, change the ORACLE_SID environment par ...
-
setting to discuss filing oracle10g
Oracle Database 10g Enterprise Edition Release 10.2.0 .4.0 - Prod PL / SQL Release 10.2.0 .4.0 - Production IXDBA.NET Community Forums CORE 10.2.0 .4.0 Production TNS for Solaris: Version 10.2.0 .4.0 - Production NLSRTL Version 10.2.0 .4.0 - Producti ...
-
SQL optimization (4) - Table of the three connections
Test the following three commonly used connection between the table: Sort - merge connected (sort-merge join, SMJ) Nested loops (nested loop, NL) Hash connection (hash join, HASH) 1. To create the test table SQL> select * from v $ version; BANNER ...
-
AX3.0 + Oracle 10G RAC installation
During these two days, you installed RAC, in a virtual machine inside, with a full day, there have been some questions on his way. Now have their own solution. In fact, it is loaded, it is easy, as long as planned, carefully point on OK, the trouble ...













Leave a Reply