Print Thread
Execute SQL in debug window can fail and can end in a state where session can not be terminated
#63810 04/12/22 01:49 PM
Joined: Dec 2005
Posts: 2,004
Roima Denmark
Member
OP Offline
Member
Joined: Dec 2005
Posts: 2,004
Roima Denmark
This is a repost from the beta 15 forum.

When executing SQL in debug window, you can easily end in a state, where the SQL can not be executed and sometimes the session can not be terminated.

Steps to reproduce:

I have a test window containing the example code:
Code
begin
  null;
end;

I press F9 to debug and Ctrl-O to enter the code block.

I press the button 'Execute SQL in debug session...'

I enter the query:
SQL Query
SELECT * FROM v$session

and get the error:
Quote
ORA-06558: buffer in dbms_pipe package is full. No more items allowed
ORA-06512: at "SYS.PBREAK", line 1513
<...>

This, I believe, is by "design" and is a known limitation in the database.


I open the debug session SQL window again and rewrite my SQL into:
SQL Query
SELECT v$session.sid FROM v$session

and get the error:
Quote
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
ORA-06512: at "SYS.PBREAK", line 1363

I try again and get the error:
Quote
ORA-00900: invalid SQL statement

Sometimes I also get the error:
Quote
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "SYS.PBRPH", line 905
ORA-06512: at "SYS.DBMS_DEBUG", line 801

In version 14 and older it has sometimes helped to put a semicolon (;) at the end of the select to terminate the statement, but that does not help either.

This all ends in a loop that sometimes can not be terminated.

I can not break the debugger and eventually you will have to terminate PL/SQL developer via task manager to e.g. be able to compile program window.


Please fix or at least improve this.

Re: Execute SQL in debug window can fail and can end in a state where session can not be terminated
Claus Pedersen #63814 04/12/22 02:20 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
Remaining 15.0 Beta issues will be resolved in a future patch release.


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.027s Queries: 14 (0.008s) Memory: 2.5047 MB (Peak: 3.0427 MB) Data Comp: Off Server Time: 2024-05-17 07:01:07 UTC
Valid HTML 5 and Valid CSS