Skip to Main Content

SQL & PL/SQL

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!

Unable to convert JSON into CLOB

User_CI7SYNov 15 2021

Hi Team,
I have huge data in one JSON_OBJECT_T and I use to_clob function to voncert it into clob and send it as clob out parameter from Procedure. But it fails. Please help. Also it is wierd to get this numeric error. In addition I have got one more error for the same code.
p_doc_out := final_o.to_clob;
Error:
Error report -
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at line 1413
06502. 00000 - "PL/SQL: numeric or value error%s"
*Cause: An arithmetic, numeric, string, conversion, or constraint error
occurred. For example, this error occurs if an attempt is made to
assign the value NULL to a variable declared NOT NULL, or if an
attempt is made to assign an integer larger than 99 to a variable
declared NUMBER(2).
*Action: Change the data, how it is manipulated, or how it is declared so
that values do not violate constraints.

Error 2:
. SQL Error Code 40478, Error Message: ORA-40478: output value too large (maximum: 4000)\nORA-06512: at \"DISTINV.CALC_DISTINV_RANK\", line 74\nORA-06512: at \"DISTINV.CALC_DISTINV_RANK\", line 375\nORA-06512: at line 4\n",

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 14 2021
Added on Nov 15 2021
2 comments
976 views