JVM Diagnostics (built into WebLogic), does that for you. Watch this 6 minute video: Oracle Enterprise Manager 12c: How to Use JVM Diagnostics to Find the Root Cause of Lock Threads | | | | | | | | | | | Oracle Enterprise Manager 12c: How to Use JVM Diagnos... | | | | View on www.youtube.com | Preview by Yahoo | | | | | at the 4:30 mark they drill from the java thread and down to the line in the code into the DB Wait -> SQL Job From: Jeffrey Beckstrom <JBECKSTROM@xxxxxxxxx> To: oracle-l-freelists <oracle-l@xxxxxxxxxxxxx>; oracle-db-l <oracle-db-l@xxxxxxxxxxxxxxxxxxxx> Sent: Thursday, January 15, 2015 3:02 PM Subject: Oracle java thread mapping How can I map a Java JDBC connection to a JAVA thread?.