How to Determine Which Database Session ID is Associated With a JDBC Connection

(Doc ID 1014494.102)

Last updated on SEPTEMBER 12, 2017

Applies to:

JDBC - Version 8.0.6.0 and later
Information in this document applies to any platform.
***Checked for relevance on 26-Jan-2010***


Goal

You are running a JDBC application or applet and would like to obtain the session id for the database session associated with your current JDBC connection.

This may be desirable in cases where you are debugging and need to be able to associate a particular client application with a specific database session.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms