ora-06502

Getting an Error “ORA-06502: PL/SQL: numeric or value error: character string buffer too small”

风格不统一 提交于 2019-12-25 08:52:38
问题 I have a below Package which is giving error ORA-06502: PL/SQL: numeric or value error: character string buffer too small Please let me know what is going wrong here. CREATE OR REPLACE PACKAGE BODY PKG_H IS PROCEDURE PROC_SUBMIT_H ( Pout_Rqst_Id OUT NVARCHAR2, Pout_err_cd OUT VARCHAR2, Pout_err_msg OUT VARCHAR2, Pin_Rqst_Type_Id IN NUMBER, Pin_Attachment IN NVARCHAR2, Pin_Brand_Id IN NVARCHAR2, Pin_Prop_Id IN NVARCHAR2, -- Pin_Htl_Stat_Rqst_Typ_ID IN NUMBER, Pin_Orcl_Acct_Num IN NVARCHAR2, --

How to resolve: CallableStatement executing returns error “ORA-06502: PL/SQL: numeric or value error: character to number conversion error”?

两盒软妹~` 提交于 2019-12-11 14:20:03
问题 I try to put data from string filed of one table to number field of another table. If I do this in some IDE like Oracle SQL Developer or Toad it works fine, but if I do this in my java code I got error. How to resolve it? There is my example below. database: I create two tables - t_num with number field and t_str with varchar2 field - and put values to second table t_str drop table t_num; create table t_num(num number(10,2)); drop table t_str; create table t_str(str varchar2(10)); insert into

How to query a CLOB column in Oracle

房东的猫 提交于 2019-11-26 18:54:35
I'm trying to run a query that has a few columns that are a CLOB datatype. If i run the query like normal, all of those fields just have (CLOB) as the value. I tried using DBMS_LOB.substr(column ) and i get the error ORA-06502: PL/SQL: numeric or value error: character string buffer too small How can i query the CLOB column? mrjohn When getting the substring of a CLOB column and using a query tool that has size/buffer restrictions sometimes you would need to set the BUFFER to a larger size. For example while using SQL Plus use the SET BUFFER 10000 to set it to 10000 as the default is 4000.

How to query a CLOB column in Oracle

女生的网名这么多〃 提交于 2019-11-26 06:40:44
问题 I\'m trying to run a query that has a few columns that are a CLOB datatype. If i run the query like normal, all of those fields just have (CLOB) as the value. I tried using DBMS_LOB.substr(column ) and i get the error ORA-06502: PL/SQL: numeric or value error: character string buffer too small How can i query the CLOB column? 回答1: When getting the substring of a CLOB column and using a query tool that has size/buffer restrictions sometimes you would need to set the BUFFER to a larger size.