Ora-6502,ora-6512

ora-6502,0ra-6512
report program ( PL/SQL) Throws following error.
PL/SQL Numeric or value error host behind array too small.
what is the possible solution.

http://www.orafaq.com/wiki/ORA-06502
Nicolas.

Similar Messages

  • Oracle Collaborate Suite ORA-6502 error during loging or form submitting

    Hi!
    I had Oracle Collaborate Suite ORA-6502 error during loging or form submitting:
    Internal error (WWC-00006)
    An unexpected error has occurred (WWS-32100)
    ORA-6502: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWC-36000)
    Unexpected error encountered in wwsec_api.person_info (ORA-06502: PL/SQL: numeric or value error: character string buffer too small) (WWC-41417)
    Error (WWS-20000)
    An unexpected error has occurred (WWS-32100)
    ORA-6502: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWC-36000)
    Unexpected error encountered in wwsec_api.person_info (ORA-06502: PL/SQL: numeric or value error: character string buffer too small) (WWC-41417).
    This happened when:
    I was using Russian letters in OCS HTML forms (for example - in Administration provision console or in my own HTML forms)
    and only I work in Linux (with UTF-8 encoding) (in Windows with win1251 encoding all is OK).
    My Database NLS not-null Parameters are:
    NLS_LANGUAGE      - AMERICAN
    NLS_LENGTH_SEMANTICS      - BYTE
    NLS_TERRITORY      - AMERICA
    NLS_CHARACTERSET - AL32UTF8
    NLS_NCHAR_CHARACTERSET - AL16UTF16
    WHAT MUST I DO TO AVOID THIS SITUATION?
    Thank
    Valery

    All,
    It appears that the page Javascript maximum limit size was reached. The error stopped appearing after some of the page Javascript code was removed out to Application Static Files. I wonder if there exists any "direct" indicator by the system whenever the size limit has been reached?
    Again, the run error only occurred when the page was loaded in "Debug" mode.
    Bernard

  • Occasional ora-6502 using forms 6i and 10g

    Hi all.
    We have been experiencing some weird and unexpected ora-6502 errors in some of our forms 6i modules running against 10g (rel 1 or 2).
    Forms modules are correctly functioning and for some reason, one day an ora-6502 error suddenly pops up.
    Now the weirdest thing is that after you put some messages on the trigger, so you can track down where the error is coming from, it disappears.
    I know that this may sound hard to believe, but it has happened several times. All we do is put some message built in, recompile all, and the error is gone (for a while).
    So my questions are:
    - Is this a known issue beween forms 6i and 10g Db?.
    - Is there a patch on Metalink ( we use Forms [32 bits] Versión 6.0.8.26.0 (Producción))
    - A workaround?
    and most important
    - Have anyone been exposed to a similar situation?
    Regards, Luis ...!

    Now the weirdest thing is that after you put some messages on the trigger, so you can track down where the error is coming from, it disappears.Sounds like the form has not been "clean compiled" against the server on which it is running. Try a "Compile All", which causes all previously compiled program units to be compiled fresh.
    Or even better, clean out all the compiled code from your fmb before compiling the fmb on the server where it runs.
    See this topic:   Re: Why does this happen - find ';', replace with ';'?

  • OAS 4.0.8 PL/SQL Catridge exception ORA-6502 (Numeric or value error)

    Hello,
    Out product is using OAS 4.0.8.2 on UNIX running SOlaris. We are using Oracles Web Toolkit for application development and
    presentation. I am basically trying to fill up some HTML form fields and calling
    an HTTP post procedure in response
    to a user clicking a submit button.
    For some reason the PL/SQL cartridge throws an ORA-6502 error(Numeric or value error). Is there any restrictions to the
    string types that can be passed to an HTTP
    post procedure ??
    Any pointers would be greatly appreciated ?
    Thanks,
    Ricko
    null

    We have fixed the problem !!! :-DDD
    Thanks to all Oracle analysts who replied this issue.
    aLeX
    [email protected]

  • -6502 ORA-06502: PL/SQL: numeric or value error when using 'Create CAPI Definition'

    I get an error when I try to create a CAPI definition with Headstart untilities (6i). I use HSU_CAPI revision 6.5.2.0
    The detailed information says the following:
    Message
    BLAPI.OPEN_ACTIVITY
    Start HSU_CAPI.run
    Number of Tables to create CAPI for 1
    Initial checks for table KCS_TENDERS with id 692754610572409851363604771392473242
    HSU_CAPT.initial_checks for table KCS_TENDERS
    HSU_CAPF.initial_checks for table KCS_TENDERS
    HSU_CAPC.initial_checks Custom Services for table KCS_TENDERS
    HSU_CAPB.initial_checks BRDD for table KCS_TENDERS
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDIPLS
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    KCS_TENDERS Business Rule Design Definition BR_TNR001_CEV does not have any Trigger Columns. Rule will fire when any column is updated.
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDIPLS
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    Creating CAPI for table KCS_TENDERS with id 692754610572409851363604771392473242
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Before-Insert-stmt, Open transaction.
    Write Text for element type APPLOG with id 753236628580304413262318236391196826 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580304413262318236391196826 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Before-Update-stmt, Open transaction.
    Write Text for element type APPLOG with id 753236628580332747461215454262479002 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580332747461215454262479002 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Before-Delete-stmt, Open transaction.
    Write Text for element type APPLOG with id 753236628580361081660112672133761178 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580361081660112672133761178 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-After-Insert-stmt, Close transaction.
    Write Text for element type APPLOG with id 753236628580389415859009890005043354 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580389415859009890005043354 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-After-Update-stmt, Close transaction.
    Write Text for element type APPLOG with id 753236628580417750057907107876325530 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580417750057907107876325530 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-After-Delete-stmt, Close transaction.
    Write Text for element type APPLOG with id 753236628580446084256804325747607706 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580446084256804325747607706 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Before-Delete-row, Save old data.
    Write Text for element type APPLOG with id 753236628580474418455701543618889882 - Text type: ALCODE number of text lines = 404 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580474418455701543618889882 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Insert, Call CAPI.
    Write Text for element type APPLOG with id 753236628580568865785358936523163802 - Text type: ALCODE number of text lines = 4 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580568865785358936523163802 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Update, Call CAPI.
    Write Text for element type APPLOG with id 753236628580597199984256154394445978 - Text type: ALCODE number of text lines = 4 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580597199984256154394445978 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Delete, Call CAPI.
    Write Text for element type APPLOG with id 753236628580625534183153372265728154 - Text type: ALCODE number of text lines = 17 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580625534183153372265728154 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-Insert, Call CAPI.
    Write Text for element type APPLOG with id 753236628580653868382050590137010330 - Text type: ALCODE number of text lines = 7 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580653868382050590137010330 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-Update, Call CAPI.
    Write Text for element type APPLOG with id 753236628580682202580947808008292506 - Text type: ALCODE number of text lines = 144 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580682202580947808008292506 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-Delete, Call CAPI.
    Write Text for element type APPLOG with id 753236628580767205177639461622139034 - Text type: ALCODE number of text lines = 282 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580767205177639461622139034 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    HSU_CAPF.create_or_find_capi_pack
    hsu_capi.find_plm (kcs_tnr_capi, 692754610572409851363604771392473242, CAPI).
    capi package found in the context folder
    BLPLM.UPD
    FREE_FORMAT_TEXT_FLAG......... = Y
    IMPLEMENTATION_NAME........... = kcs_tnr_capi
    PLSQL_MODULE_TYPE............. = PACKAGE
    SCOPE......................... = PUBLIC
    COMPLETION_STATUS............. = COMPLETED
    NAME.......................... = kcs_tnr_capi
    PURPOSE....................... = Custom API package for implementing Business Rules and supporting TAPI
    Recreated Package KCS/ KCS_TNR_CAPI, preserving only the Revision History.
    HSU_CAPF.add_tags_er_av
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    HSU_CAPF.create_specification
    HSU_CAPF.create_c_tabalias
    HSU_CAPF.create_c_tabalias_all
    HSU_CAPF.create_aggregate_value
    HSU_CAPF.create_aggregate_value
    HSU_CAPF.create_aggregate_value
    Activity aborted with ORACLE internal errors.
    -6502 ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    What can I do about it???
    Thanks in advance.
    Menno Hoogsteen

    Working on the same project as Menno, I had the time to look into the problem.
    The problem is caused by the creation of the capi-function agregate_char_value in the packages hsu_capf. While creating this function the following code is executed:
    add(' -- allowable values:');
    add(' -- '||l_col_name_list);
    This last statement causes the problem because this table is very big. L_col_name_list contains 2391 characters wich is 393 characters to long. So i changed this code into:
    add(' -- allowable values:');
    add(' -- '||substr(l_col_name_list,1,1990));
    add(' -- '||substr(l_col_name_list,1990));
    and everything works fine. Perhaps something for a patch?
    Kind regards,
    Ruben Spekle

  • ORA-6502: value or numeric error

    Hi all,
    First off all, I am not very good in PL/SQL so please bear with me:
    I have a trigger on a table on after update event. Sample code of the trigger:
    create or replace trigger t1
    on table1
    after update of col1
    for each row
    begin
    for inx in varray1.first .. varray1.last
    loop
    do something;
    end loop;
    end;
    This trigger throws an error saying "ORA-6502: value or numeric error" if I am trying to update anything into that table but the same trigger works fine when I remove "FOR EACH ROW" statement from the trigger. There is absolutely no change except removal of FOR EACH ROW clause.
    I am unable to figure out why. Do anybody?
    Thanks in adnvace.

    Thanks a lot to all of you for taking time to answer my question.
    Again, let me rephrase my question in one single line:
    bold Why does the trigger without FOR EACH ROW works and doesnt work with FOR EACH ROW?
    What I am guessing is , it might be because of the array what we are using inside the trigger. But its just a guess. One more thing to note here, same code with and without FOR EACH ROW works when I am not using any arrays inside the trigger and thats what is the question. WHY cant same code works when used with FOR EACH ROW when arrays are used inside the trigger.
    I am not requesting anybody to write code for me or rectify the problems in the code. All I am interested in is the reason of trigger not working with FOR EACH ROW when arrays are used inside the trigger.
    Thanks

  • ORA-6502 Value or Numeric Error while connecting to Sql-Plus - URGENT

    Hello,
    I am getting ORA-6502 error, "Error accessing Package Dbms_application_info" everytime I connect to Sqlplus. I tried running catproc and catalog but still getting the same message. I dont get this message when I connect to SVRMGR. I am not able to perform export also due to this error. Can anybody help me please??
    Thanks,
    R. Magesh.

    Hello,
    I am getting ORA-6502 error, "Error accessing Package Dbms_application_info" everytime I connect to Sqlplus. I tried running catproc and catalog but still getting the same message. I dont get this message when I connect to SVRMGR. I am not able to perform export also due to this error. Can anybody help me please??
    Thanks,
    R. Magesh. Did you run catproc and catalog as SYS while the database was opened in RESTRICT mode? If not, then do that. Also, do SELECT * FROM dba_objects WHERE status='INVALID'; to see if there are other invalid objects that need to be compiled.

  • Kimyong : 한글 Reqest , Request Set 등에서만 ORA-6502 가 발생할경우

    Purpose
    10G DB에서 한글 Request , Request set이름으로 실행할때 ORA-6502 numeric or value error: character string buffer too small 발생합니다. 이에 대한 조치사항을 안내해 드립니다.
    Explanations
    일단 아래 Pls version이 115.36 이하인지 확인합니다.
    strings -a AFNLMSGB.pls |grep '$Header'
    strings -a AFNLMSGS.pls |grep '$Header'
    115.36이하일 경우 아래 patch를 적용해 주셔야 합니다.
    Patch 6825781
    Reference
    Note 579382.1

  • ORA-6502 - Help!

    I keep receiving this error:
    ORA-6502 - PL/SQL: numeric or value error: character string buffer is too small
    Listed below is the code:
    Error lines are Line 1 and 12.
    create or replace function overpunch (ora_val in varchar2) return varchar2
    is
    result_hold varchar2(12);
    rightmost_digit varchar2(1);
    overpunch_char varchar2(1);
    begin
    Result_hold := to_char( to_number( abs( nvl(ora_val,0) ) ), '000000000009');
    rightmost_digit := substr(result_hold, -1);
    result_hold := substr(result_hold, 1, length(result_hold)-1);
    if ora_val < 0 then
    if rightmost_digit = 0 then
    overpunch_char := '}';
    else
    overpunch_char := chr(ascii(rightmost_digit)+25);
    end if;
    else
    if rightmost_digit = 0 then
    overpunch_char := '{';
    else
    overpunch_char := chr(ascii(rightmost_digit)+16);
    end if;
    end if;
    return result_hold||overpunch_char;
    end;
    This is how it is executed:
    select overpunch(14), overpunch(-14) from dual;
    Any help would be greatly appreciated.

    SQL> create or replace function overpunch (ora_val in varchar2) return varchar2
      2  is
      3  result_hold varchar2(12);
      4  rightmost_digit varchar2(1);
      5  overpunch_char varchar2(1);
      6  begin
      7  Result_hold := to_char( to_number( abs( nvl(ora_val,0) ) ), 'FM000000000009');
      8  rightmost_digit := substr(result_hold, -1);
      9  result_hold := substr(result_hold, 1, length(result_hold)-1);
    10
    11  if ora_val < 0 then
    12  if rightmost_digit = 0 then
    13  overpunch_char := '}';
    14  else
    15  overpunch_char := chr(ascii(rightmost_digit)+25);
    16  end if;
    17  else
    18  if rightmost_digit = 0 then
    19  overpunch_char := '{';
    20  else
    21  overpunch_char := chr(ascii(rightmost_digit)+16);
    22  end if;
    23  end if;
    24
    25  return result_hold||overpunch_char;
    26  end;
    27  /
    Function created.
    SQL> select overpunch(14), overpunch(-14) from dual;
    OVERPUNCH(14)
    OVERPUNCH(-14)
    00000000001D
    00000000001M

  • ORA-6502, "PL/SQL numeric or value error"

    I am having the [ORA-6502, "PL/SQL numeric or value error"] error when I call this procedure in PRE-INSERT trigger.
    CREATE OR REPLACE PROCEDURE L_CHECK_BAL_AMOUNT(P_TXN_CODE IN VARCHAR2,
    P_ABAL_MAIN_ACNT_CODE IN VARCHAR2,
    P_TD_DOC_DRCR_FLAG IN VARCHAR2,
    P_TXN_AMOUNT IN NUMBER) IS
    CURSOR C1 IS
    SELECT TRAN_CASH_BANK_FLAG
    FROM FM_TRANSACTION
    WHERE TRAN_CODE = P_TXN_CODE;
    CURSOR C2 IS
    SELECT nvl(SUM(NVL(ABAL_LC_MTD_DR,0)) - SUM(NVL(ABAL_LC_MTD_CR,0)) + SUM(NVL(ABAL_LC_UNP_DR,0)) - SUM(NVL(ABAL_LC_UNP_CR,0)),0)
    FROM FS_CUR_ACNT_BAL
    WHERE ABAL_MAIN_ACNT_CODE = P_ABAL_MAIN_ACNT_CODE
    AND EXISTS (SELECT 'X' FROM FM_MAIN_ACCOUNT
    WHERE MAIN_ACNT_CATG IN ('CA','BA')
    AND MAIN_ACNT_CODE = ABAL_MAIN_ACNT_CODE)
    GROUP BY ABAL_MAIN_ACNT_CODE;
    M_BAL_AMOUNT NUMBER(20);
    M_CASH_BANK_FLAG OW_FS.FLAG%TYPE;
    BEGIN
    IF P_ABAL_MAIN_ACNT_CODE IS NOT NULL THEN
    insert into temp values('01',P_TXN_CODE);
    insert into temp values('02',P_ABAL_MAIN_ACNT_CODE);
    insert into temp values('03',P_TD_DOC_DRCR_FLAG);
    insert into temp values('04',P_TXN_AMOUNT);
    commit;
    IF NVL(P_TD_DOC_DRCR_FLAG,'X') = 'C' THEN
    insert into temp values('3',P_TD_DOC_DRCR_FLAG);
    commit;
    IF C1%ISOPEN THEN
    CLOSE C1;
    END IF;
    OPEN C1;
    FETCH C1 INTO M_BAL_AMOUNT; --------ERROR HERE-----------
    IF C1%FOUND THEN
    insert into temp values('2','c1 found');
    commit;
    END IF;
    CLOSE C1;
    END IF;
    END IF;
    END;
    can anybody tell me why the error is coming...?
    The value for the CURSOR C2 is (-1335142)
    Thanks

    yes correct. the procedure would have been written like this.(see cursor C1 and C2)
    CREATE OR REPLACE PROCEDURE L_CHECK_BAL_AMOUNT(P_TXN_CODE IN VARCHAR2,
    P_ABAL_MAIN_ACNT_CODE IN VARCHAR2,
    P_TD_DOC_DRCR_FLAG IN VARCHAR2,
    P_TXN_AMOUNT IN NUMBER) IS
    CURSOR C2 IS
    SELECT TRAN_CASH_BANK_FLAG
    FROM FM_TRANSACTION
    WHERE TRAN_CODE = P_TXN_CODE;
    CURSOR C1 IS
    SELECT nvl(SUM(NVL(ABAL_LC_MTD_DR,0)) - SUM(NVL(ABAL_LC_MTD_CR,0)) + SUM(NVL(ABAL_LC_UNP_DR,0)) - SUM(NVL(ABAL_LC_UNP_CR,0)),0)
    FROM FS_CUR_ACNT_BAL
    WHERE ABAL_MAIN_ACNT_CODE = P_ABAL_MAIN_ACNT_CODE
    AND EXISTS (SELECT 'X' FROM FM_MAIN_ACCOUNT
    WHERE MAIN_ACNT_CATG IN ('CA','BA')
    AND MAIN_ACNT_CODE = ABAL_MAIN_ACNT_CODE)
    GROUP BY ABAL_MAIN_ACNT_CODE;
    M_BAL_AMOUNT NUMBER(20);
    M_CASH_BANK_FLAG OW_FS.FLAG%TYPE;
    BEGIN
    IF P_ABAL_MAIN_ACNT_CODE IS NOT NULL THEN
    insert into temp values('01',P_TXN_CODE);
    insert into temp values('02',P_ABAL_MAIN_ACNT_CODE);
    insert into temp values('03',P_TD_DOC_DRCR_FLAG);
    insert into temp values('04',P_TXN_AMOUNT);
    commit;
    IF NVL(P_TD_DOC_DRCR_FLAG,'X') = 'C' THEN
    insert into temp values('3',P_TD_DOC_DRCR_FLAG);
    commit;
    IF C1%ISOPEN THEN
    CLOSE C1;
    END IF;
    OPEN C1;
    FETCH C1 INTO M_BAL_AMOUNT; --------ERROR HERE-----------
    IF C1%FOUND THEN
    insert into temp values('2','c1 found');
    commit;
    END IF;
    CLOSE C1;
    END IF;
    END IF;
    END;
    /

  • 6502 = ORA-06502: PL/SQL: numeric or value error: character string buffer

    i'm getting this error when i try to do the following
    6502 = ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    declare
    str1Query varchar2(32767);
    str2Query varchar2(32767);
    str3Query varchar2(32767);
    str31Query varchar2(32767);
    str32Query varchar2(32767);
    str4Query varchar2(32767);
    desc_t dbms_sql.desc_tab2;
    l_col_cnt integer;
    colvalue varchar(32676);
    cur_rows number;
    repCursor integer;
    begin
    repCursor := dbms_sql.open_cursor;
    dbms_sql.parse(repCursor,str1Query || ' ' || str2Query || ' ' || str3Query || ' ' || str31Query || ' ' || str32Query || str4Query,dbms_sql.native);
    dbms_sql.describe_columns2( repCursor, l_col_cnt, desc_t );
    DBMS_SQL.CLOSE_CURSOR (repCursor);
    end;
    if there is any ideas about what is wrong

    That is not the PL/SQL block that you have run to get that error, right?
    What are the sizes of the individual variables - str1Query, str2Query etc...
    Whay are there so many variables joined together?
    That posted code cannot generate the error you posted:
    SQL> declare
      2
      3  str1Query varchar2(32767);
      4  str2Query varchar2(32767);
      5  str3Query varchar2(32767);
      6  str31Query varchar2(32767);
      7  str32Query varchar2(32767);
      8  str4Query varchar2(32767);
      9  desc_t dbms_sql.desc_tab2;
    10  l_col_cnt integer;
    11  colvalue varchar(32676);
    12  cur_rows number;
    13  repCursor integer;
    14
    15  begin
    16
    17  repCursor := dbms_sql.open_cursor;
    18  dbms_sql.parse(repCursor,str1Query || ' ' || str2Query || ' ' || str3Query || ' ' || str31Query || ' ' || str32Query || str4Query,dbms_sql.native);
    19  dbms_sql.describe_columns2( repCursor, l_col_cnt, desc_t );
    20  DBMS_SQL.CLOSE_CURSOR (repCursor);
    21  end;
    22  /
    declare
    ERROR at line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 826
    ORA-06512: at "SYS.DBMS_SQL", line 39
    ORA-06512: at line 18
    SQL>

  • Ora 6502 error in forms

    hi all,
    in created a insert form ,where in i have over ridden the 'when-button pressed' trigger.
    when the button is pressed all the data from the form is entered into the database.
    I am succeding in transferring the data into the database but ...' get an error message
    unhandled exception ora 6502'.....
    I have provided the max size to the database column account and cust_no column.
    below is my code in the 'when button-pressed trigger'
    insert into customer
    CUSTNO ,
    ACCNO --,
    --CUST_ADD1 ,    
    --CUST_ADD2  ,   
    --CUST_POSTCODE 
    values
    :CUSTNO ,
    :ACCNO -- ,
    --:CUST_ADD1 ,
    --:CUST_ADD2 ,
    --:CUST_POSTCODE
    commit_form;
    exit_form('NO_VALIDATE');
    also my customer table is like below
    SQL> desc customer;
    Name Null? Type
    CUSTNO NUMBER(38)
    ACCNO NUMBER(38)
    CUST_ADD1 VARCHAR2(200)
    CUST_ADD2 VARCHAR2(200)
    CUST_POSTCODE VARCHAR2(50)
    please let me know ...
    rgds
    s

    ORA-6502: PL/SQL: numeric or value error
    there are many problems, which raise this error
    string vs date vs number - problem. Check your datatypes
    strings which are too long - check the size of the inserted data and the length of the columns
    what did you find ?

  • Large Select List fails with ORA-6502

    Creating a large select list with htmldb_item.select_list_from_query_xl causes an ORA-6502 when the resulting select list contents are larger than an arbitrary value.
    For example, if the query for the select list returns a display value of up to 50 characters and a numeric id return value of up to 10 digits, we have to arbitrarily include "where rownum < x" (where x is some arbitrary value) in the query to get results; otherwise when the page is run we get the ORA-6502.
    For regular select lists with long results we can get around the problem using htmldb_item.popup_list_from_query but to generate multiselect lists we have to use the htmldb_item.select_list_from_query_xl an include the attribute "multiple".

    Can we get that added to the API documentation? The spec simply states the function returns a CLOB, implying that it would support the max size of a CLOB supported by the database (4GB in 9iR2 as I recall).
    Granted, one should not expect a 4GB web page to be returned using the function call, but a page larger than 32KB isn't entirely unreasonable, especially since this product is geared towards intranet and departmental apps (ie corporate LAN environment).
    An alternative enhancement would be to implement multiselects via the popup list mechanism, allowing users to select multiple items as they "page" or search thru the values for that field.

  • Copy page will fail with ORA:6502 if summ. length of authschemenames 250

    Hi!
    using APEX 2.2.1 or 3.0 :
    In AppBuilder 4000:627 i get ORA 6502 when trying to copy a page into another app. with multiple existing authorization
    schemes. The errorpoint is at the selection of old and new authorization schemes.
    Our destination app uses 36 authorization-schemes.
    The summarized length of all scheme-names (+CR) is about 560 characters.
    -- Show all scheme-names
    select AUTHORIZATION_SCHEME_NAME from APEX_APPLICATION_AUTHORIZATION
    where APPLICATION_ID=:APP_ID
    -- count the schemes to :ANZ
    select count(*)from APEX_APPLICATION_AUTHORIZATION
    where APPLICATION_ID=:APP_ID
    -- show the summarized length
    select sum(length(AUTHORIZATION_SCHEME_NAME)) + :ANZ from
    APEX_APPLICATION_AUTHORIZATION
    where APPLICATION_ID=:APP_ID
    If the summarized length exceeds 250, the copyprocess will fail!
    All objects on the copied page (often >50) have to be reviewed.
    SR number 6320088.993.
    The problem can be reproduced on htmldb.oracle.com. For details check SR.
    Thanks for help,
    Matthias

    Right.
    There are 3 ways to use CSS:
    Inline: styles applied to the  HTML code between the <body> tags.  This is not usually recommended.
    Embedded:  inside  <style> and </style> tags between the  <head> tags in your HTML document. This code is applied to only one page.
    External: a physical file that contains nothing but CSS code and applies to all site pages that are linked to it.
    If you have a unique style you want to use on a single page, either use embedded CSS (in the HTML document itself) or set up a unique class in your external stylesheet.
    CSS classes:
    .center {text-align:center}
    .right {text-align:right}
    .left {text-align:left}
    HTML:
    <p class="center"> this is centered text</p>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • ORA-6502 Character String buffer too small

    Stored procedure call from C#. Ref cursors are no problem but trying to return Varchar2 is a bit of a puzzle. Just the simple code fragment below blows with ORA-6502.
    PROCEDURE getjdt2 (X OUT VARCHAR2) IS
    BEGIN
    X := 'TEST RETURN VARCHAR2';
    END;
    OracleCommand cmd = new OracleCommand ("GETJDT2", conn);
    cmd.CommandType = CommandType.StoredProcedure;
    cmd.Parameters.Add("param1",OracleDbType.Varchar2);
    cmd.Parameters[0].Direction = ParameterDirection.Output;
    OracleDataReader reader;
    reader = cmd.ExecuteReader();
    reader.Read();
    Console.WriteLine ("Val: {0}", reader.GetString(0));

    Never mind. A bit more research and I figured it out.

Maybe you are looking for