![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |

|
| Programming Error ! Programming error messages |
![]() |
|
ORA-06502: PL/SQL: numeric or value error: character string buffer too small when usi
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Administrator
Posts: 18,703
Join Date: Jan 2006
Rep Power: 10
IM:
|
Mostly it works fine. In some cases I got the error in SQLPlus as: ERROR at line 2: ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at "ABC.TEXTRAWIO", line 62 The line 62: 62 hex_data := rawtohex(raw_data); 63 rawlen := length(hex_data); I think this may related to the varchar2 data limit? if so , how can I deal with it ? |
|
|
|
|
|
|
|
|
#2 (permalink) |
|
Administrator
Posts: 18,703
Join Date: Jan 2006
Rep Power: 10
IM:
|
IS raw_data LONG RAW; rawlen NUMBER; hex_data VARCHAR2(32760); --<<---------- Variable to small ? Try: hex_data CLOB char_data VARCHAR2(32760); loop_counter NUMBER; BEGIN -- Get the blob using the rowid passed in. -- Will always retrun only one row. SELECT ole_object_blob INTO raw_data FROM tidblob WHERE v_object_id = rowid; -- Convert the raw data to hex. hex_data := rawtohex(raw_data); rawlen := length(hex_data); --<<------ DBMS_LOB.GET_LENGTH instead |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|