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

Skip to content

Failed to write to dbms_output (Oracle 11g) #273

@dmlvc

Description

@dmlvc

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
NLS_CHARACTERSET AL32UTF8
NLS_LANGUAGE RUSSIAN
NLS_LENGTH_SEMANTICS CHAR

SQL> call ut.run('my_schema');
call ut.run('my_schema')
     *
Ошибка в строке 1:
ORA-22813: значение операнда превышает системный лимит ORA-06512: на
"UT3.UT_OUTPUT_BUFFER", line 93
ORA-06512: на  "UT3.UT_OUTPUT_BUFFER", line 103
ORA-06512: на  "UT3.UT", line 158
ORA-06512: на  "UT3.UT", line 164
ORA-06512: на  line 1

I fixed it for myself by changing the return type of the function get_lines to limited one:

create or replace type ut_varchar2_rows as table of varchar2(4000)
...
ut_output_buffer: 
function get_lines(a_reporter_id varchar2, a_timeout_sec naturaln := gc_max_wait_sec) return ut_varchar2_rows pipelined;

Could you accept this fix?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions