SQLPlus Session Session Appears to be Hung when Debugging with DBMS_DEBUG (Doc ID 789613.1)

Last updated on JULY 05, 2017

Applies to:

PL/SQL - Version 11.1.0.6 and later
Information in this document applies to any platform.
***Checked for relevance on 22-Oct-2012***


Symptoms

SQLPlus Session Session Appears to be Hung when Debugging with DBMS_DEBUG

This code reproduces the problem:

Session 1 - session that is running the function we want to debug.

Session 2 - session that running the debugger.

Step 1 - Session 1:

 

In Oracle 10g Session 1 returns to the prompt with ORA-00900 (as expected)

/*
declare
*
ERROR at line 1:
ORA-00900: invalid SQL statement
ORA-06512: at "SYSTEM.LOOP_TESTER2", line 8
ORA-06512: at line 5
*/

Session 2 returns to prompt as well. 

In Oracle 11g Session 1 still hangs, and nothing happens.

Session 2 returns to the prompt.

Cause

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