In Oracle 19c I created the table:
create table SAMPLE_TABLE (
id NUMBER not null,
display_name NVARCHAR2(4000), )
When I run the script:
declare
i integer;
p_tmp_clob clob;
begin
select JSON_ARRAYAGG(JSON_OBJECT(t.* )) into p_tmp_clob from SAMPLE_TABLE t;
end;
I am getting the following ORA-40478 exception. ORA-40478: output value too large (maximum: 4000)