Skip to Main Content

SQL Developer for VS Code

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Output - no buffer overflow in vs code

In SQL Developer if you exeed maximum bytes for buffer - you get nice information

Error report -
ORA-20000: ORU-10027: buffer overflow, limit of 1000000 bytes
ORA-06512: at "SYS.DBMS_OUTPUT", line 32
ORA-06512: at "SYS.DBMS_OUTPUT", line 97
ORA-06512: at "SYS.DBMS_OUTPUT", line 112
ORA-06512: at line 7
ORA-06512: at line 7

and script stop

On the other hand, VS Code tries to display everything in the output, and there's no straightforward way to stop it. There are no tasks in the Task Monitor, and you can't cancel the SQL query because it has already finished. Is there (or will there be) a way to stop such "accidental" output streaming?

Example (run at your own risk)

==============================================
set serveroutput on

begin
for z in (with data as (
select level lvl
from dual connect by level <= 5000)
select *
from employees, data )loop
dbms_output.put_line(z.last_name);
end loop;
end;
/

============================================

This post has been answered by thatJeffSmith-Oracle on Dec 6 2024
Jump to Answer
Comments
Post Details
Added on Dec 6 2024
4 comments
66 views