How to Perform the Equivalent of SQL*Net Client Tracing with Oracle JDBC Thin Driver
(Doc ID 793415.1)
Last updated on NOVEMBER 23, 2021
Applies to:JDBC - Version 10.2.0.1 and later
Information in this document applies to any platform.
The Oracle JDBC thin driver uses a java based implementation of the SQLNET protocol (JavaNet layer).
Unlike the JDBC OCI driver, the SQLNET trace is not available with the JDBC thin driver at the client side for Oracle JDBC Driver versions < 11.2. Therefore, to diagnose JDBC connection or other database related error conditions, only the SQLNET server side trace is available. As a result, it can be difficult to get a good understanding of the problem with only one end of the equation.
This article describes how to enable a similar sqlnet client trace with the JDBC thin driver. This can be done by using a new utility (packaged as a JAVA jnettrace.jar library), the JavaNet utility, which allows tracing of the JavaNet layer.
This utility, attached to the article, is available on OTN:
From release 11.2 and forward , the JDBC Thin Driver includes a network trace capability. Please refer to <Document: 1050942.1> How to Trace the Network Packets Exchanged Between JDBC and the RDBMS.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document