Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Uninstall script: buffer overflow error #1220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kukimik opened this issue Jul 28, 2022 · 1 comment · Fixed by #1221
Closed

Uninstall script: buffer overflow error #1220

kukimik opened this issue Jul 28, 2022 · 1 comment · Fixed by #1221

Comments

@kukimik
Copy link
Contributor

kukimik commented Jul 28, 2022

Describe the bug

While using the uninstall.sql script I got the following error:

ORA-20000: ORU-10027: buffer overflow, limit of 2000 bytes

This happened in the "Dropping synonyms pointing to non-existing objects in schema UT3" part of the script (see source/unistall_synonyms.sql). The exception handler does not handle this gracefully, as it tries to write to the buffer which is already overflown:

    begin
      execute immediate 'drop '||syn.syn_name;
      dbms_output.put_line('Dropped '||syn.syn_name||' for object '||syn.for_object);
      exception
      when others then
      dbms_output.put_line('FAILED to drop '||syn.syn_name||' for object '||syn.for_object);
    end;

So the block exits and not all of the synonyms are dropped.

Provide version info
Oracle 12.1.0.2.0
utPLSQL v3.1.11

Information about client software
A rather old version of SQL*Plus

Expected behavior
All the synonyms are dropped and all the messages are logged.

@jgebal
Copy link
Member

jgebal commented Jul 28, 2022

Thank you for reporting

jgebal added a commit that referenced this issue Jul 28, 2022
Fixing problem with uninstall script buffer overflow on DBMS_OUTPUT.
Reolves: #1220
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants