Get the ORA-01489 "result of concatenating string is too long."

Hello world

Im having problems with updating of a specific field. I got this error after I run my Update statement.

* Cause: Result of concatenation of string exceeds the maximum size.

* Action: Make sure that the result is less than the maximum size.

Here is my script:

declare
cursor material is
    SELECT tt.column2,
           m.name, 
           m.MATERIAL_ID,
           tt.column3,
           tt.column4,
           tt.column5,
           tt.column6,
           tt.column7,
           tt.column8
    FROM material m, tmp_text tt
    WHERE m.NAME like tt.column2 || '%'
    AND tt.column9 = 'SI';
   
            begin

  for u in material loop
   
    update material
    set fields_xml =  '<?xml version="1.0" encoding="UTF-8"?>
                        <fields>
                          <field type="text" name="Size EU" maxlength="200"/>
                         <field type="text" name="Size UK" maxlength="200"/> 
                         <field type="text" name="Weight per size" maxlength="200"/>
                         <field type="text" name="Shaft height" maxlength="200"/>  
                         <field type="textarea" name="Product Description Norwegian" maxlength="2000">' || u.column8 || '</field>
                         <field type="textarea" name="Product Description Swedish" maxlength="2000">' || u.column7 || '</field>
                         <field type="textarea" name="Product Description Danish" maxlength="2000">' || u.column4 || '</field>
                         <field type="textarea" name="Product Description Finnish" maxlength="2000">' || u.column5 || '</field>
                         <field type="textarea" name="Product Description German" maxlength="2000">' || u.column6 || '</field>
                         <field type="textarea" name="Product Description English" maxlength="2000">' || u.column3 || '</field>
                         <field type="text" name="Additional Information" maxlength="200"/>


                         
                        </fields>'
    where material_id = u.material_id;



     end loop;

end;










  

That the script is that it will update the 'FIELD_XML' (CLOB) field in the table "material". I know that it exceeds the maximum size. Is there another way to do this?

I would like to know your opinion... Thank you guys.

Hello

You can try with CLOB variable declaration and concatenate the value you want in it.

For example:

declare
cursor material is
    SELECT tt.column2,
           m.name,
           m.MATERIAL_ID,
           tt.column3,
           tt.column4,
           tt.column5,
           tt.column6,
           tt.column7,
           tt.column8
    FROM material m, tmp_text tt
    WHERE m.NAME like tt.column2 || '%'
    AND tt.column9 = 'SI';

    v_clob CLOB;  

            begin  

  for u in material loop
    v_clob := '
                        
                          
                         
                         
                         
                         ';
    v_clob := v_clob || u.column8 || ' ';
    v_clob := v_clob || '' || u.column7 || ' ';
    v_clob := v_clob || ''  || u.column4 || ' ';
    v_clob := v_clob || '' || u.column5 || ' ';
    v_clob := v_clob || ''  || u.column6 || ' ';
    v_clob := v_clob || '' || u.column3 || ' ';
    v_clob := v_clob || ''
    update material
    set fields_xml =  v_clob
    where material_id = u.material_id;
     end loop;
end;

Cheerz,

Stako

Tags: Database

Similar Questions

  • ORA-01489: result of concatenating string is too long

    Hola a todos, Necesito ayuda, estoy creando UN a plano cual tiene el archivo a linea of 11500 characters largo, pero al building the question me envia el error (ORA-01489) descrito, alguien sabe como avoid than aparezca este error, the idea are what run script desde este an archivo .bat o .sh

    the request are the following

    set pagesize 0

    set linesize 11508

    Go head

    coil prueba_comex.txt;

    Select rpad (nvl (A.SEGMENT1,' '), 100).

    RPAD(A.ORGANIZATION_ID,100) |

    RPAD (' ', 2) |

    RPAD (' ', 2) |

    RPAD (' ', 18).

    RPAD (' ', 47).

    RPAD (nvl (A.PRIMARY_UOM_CODE,' '), 4) |

    RPAD (' ', 10).

    RPAD ('99999999', 8).

    RPAD (' ', 8).

    RPAD (' ', 8).

    RPAD ('0', 47).

    RPAD ('0', 47).

    RPAD (' ', 30).

    RPAD (' ', 14).

    RPAD (' ', 1) |

    RPAD (' ', 1) |

    RPAD (' ', 47).

    RPAD (' ', 18).

    RPAD (' ', 18).

    RPAD (' ', 1) |

    RPAD (' ', 1) |

    RPAD (' ', 1) |

    RPAD (' ', 47).

    RPAD (' ', 47).

    RPAD (' ', 47).

    RPAD (' ', 47).

    RPAD (' ', 47).

    RPAD (nvl (A.DESCRIPTION,' '), 250).

    RPAD (' ', 14).

    RPAD (' ', 1) |

    RPAD (NVL (A.WEIGHT_UOM_CODE, 'KG'), 4) |

    RPAD ('KG', 4) |

    RPAD (' ', 4) |

    RPAD (' ', 4) |

    RPAD (' ', 47).

    RPAD (' ', 47).

    RPAD (' ', 20).

    RPAD (' ', 47).

    RPAD (' ', 4) |

    RPAD (' ', 1) |

    RPAD (' ', 200).

    RPAD (' ', 1) |

    RPAD (' ', 1) |

    RPAD ('P', 20).

    RPAD('N',1) |

    RPAD (' ', 1) |

    RPAD (' ', 80).

    RPAD (' ', 1) |

    RPAD (' ', 1) |

    RPAD (' ', 1) |

    RPAD (' ', 1) |

    RPAD (' ', 1) |

    RPAD (' ', 4) |

    RPAD (' ', 240).

    RPAD (' ', 240).

    RPAD (' ', 240).

    RPAD (NVL (B.LONG_DESCRIPTION, A.Description), 4000)

    tables...

    If you run SQL * Plus in your scripts, then you need to set:

    long value 32000 longc 200

  • error "result of concatenating string is too long" when I try to run the following code. Help me!

    When I try to perform the following PROCEDURE, he throws me an error:

    Error from line: 2 in command.

    BEGIN

    FACT_UPDATE;

    END;

    Error report-

    ORA-01489: result of concatenating string is too long

    ORA-06512: at "AFLOBIDW. FACT_UPDATE', line 22

    ORA-06512: at line 2

    01489 00000 - "result of concatenating string is too long."

    * Cause: Result of concatenation of string exceeds the maximum size.

    * Action: Make sure that the result is less than the maximum size.

    ---------------------------------------------------------------------------

    I can't change the logic of the code since I'm trying to do Informatica at the back done and compare performance between Informatica and Oracle DB. Is there another solution for errors? I add only the SQL query that is part of the PROCEDURE for easy viewing. Please help me. Thank you!

    SELECT "UPDATE XXAFL_MON_FACTS_F SET TASK_WID ='"

    || NVL (TO_CHAR (TASK_WID), 'NULL')

    |', EXECUTION_PLAN_WID ='

    || NVL (TO_CHAR (EXECUTION_PLAN_WID), 'NULL')

    || ', DETAILS_WID ='

    || NVL (TO_CHAR (DETAILS_WID), 'NULL')

    |', SOURCE_WID ='

    || NVL (TO_CHAR (SOURCE_WID), 'NULL')

    |', TARGET_WID = '

    || NVL (TO_CHAR (TARGET_WID), 'NULL')

    || ', RUN_STATUS_WID ='

    || NVL (TO_CHAR (RUN_STATUS_WID), 'NULL')

    |', SEQ_NUM ='

    || NVL (TO_CHAR (SEQ_NUM), 'NULL')

    |', NAME = "'

    || NVL (TO_CHAR (NAME), 'NULL')

    || ' ', NO_POSITION = "'

    || NVL (TO_CHAR (INSTANCE_NUM), 'NULL')

    ||'' ', INSTANCE_NAME = "'

    || NVL (TO_CHAR (INSTANCE_NAME), 'NULL')

    || ' ', TYPE_CD = "'

    || NVL (TO_CHAR (TYPE_CD), 'NULL')

    ||'' ', STATUS_CD = "'

    || NVL (TO_CHAR (STATUS_CD), 'NULL')

    ||'' ', START_TS ='

    || DECODE (START_TS, ",' to_date(''e))

    || To_char (START_TS, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    || ', END_TS ='

    || DECODE (END_TS, ",' to_date(''e))

    || To_char (END_TS, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    |', DURATION = '

    || NVL (TO_CHAR (DURATION), 'NULL')

    |', STATUS_DESC = "'

    || NVL (TO_CHAR (STATUS_DESC), 'NULL')

    || ' ', DBCONN_NAME = "'

    || NVL (TO_CHAR (DBCONN_NAME), 'NULL')

    ||'' ', SUCESS_ROWS ='

    || NVL (TO_CHAR (SUCESS_ROWS), 'NULL')

    || ', FAILED_ROWS ='

    || NVL (TO_CHAR (FAILED_ROWS), 'NULL')

    |', ERROR_CODE = '

    || NVL (TO_CHAR (ERROR_CODE), 'NULL')

    |', NUM_RETRIES ='

    || NVL (TO_CHAR (NUM_RETRIES), 'NULL')

    || ', READ_THRUPUT ='

    || NVL (TO_CHAR (READ_THRUPUT), 'NULL')

    |', LAST_UPD = '

    || DECODE (LAST_UPD, ",' to_date(''e))

    || To_char (LAST_UPD, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    |', RUN_STEP_WID = "'

    || NVL (TO_CHAR (RUN_STEP_WID), 'NULL')

    || ' ', W_INSERT_DT = '

    || DECODE (W_INSERT_DT, ",' to_date(''e))

    || To_char (W_INSERT_DT, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    |', W_UPDATE_DT = '

    || DECODE (W_UPDATE_DT, ",' to_date(''e))

    || To_char (W_UPDATE_DT, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    || ', START_DATE_WID ='

    || NVL (TO_CHAR (START_DATE_WID), 'NULL')

    |', END_DATE_WID = '

    || NVL (TO_CHAR (END_DATE_WID), 'NULL')

    |', START_TIME ='

    || NVL (TO_CHAR (START_TIME), 'NULL')

    |', END_TIME ='

    || NVL (TO_CHAR (END_TIME), 'NULL')

    ||' WHERE INTEGRATION_ID = "'

    || INTEGRATION_ID

    ||''';' AS Column

    OF XXAFL_MON_FACTS_F;

    Hello

    ORA-01489 is one of these error messages that really means what he says. The error message you posted pretty much sums up the situation.

    What version of Oracle are you using?  (You must still include this whenever you have a question.  See the FAQ forum: Re: 2. How can I ask a question on the forums? )

    From 12.1 of the Oracle, there is an option to allow VARCHAR2s in SQL to be as big as 32767octets.  (The default is 4000).

    Otherwise, if you can't change the code, either do not run. or ensure that the concerned channels are quite short so the error does not occur.

  • LISTAGG function: "result of concatenating string is too long."

    Hello

    I use Oracle SQL developer 3.0.04 version. I tried using the LISTAGG function to group the data.
    CREATE TABLE FINAL_LOG AS
    SELECT SESSION_DT, C_IP, CS_USER_AGENT,
    listagg(WEB_LINK, ' ')
         WITHIN GROUP(ORDER BY C_IP, CS_USER_AGENT) "WEB_LINKS"
         FROM webviews
         GROUP BY C_IP, CS_USER_AGENT, SESSION_DT
         ORDER BY SESSION_DT
    However, I get the error message,

    SQL error: ORA-01489: result of concatenating string is too long

    Is it possible to go around it, or are there other alternatives?

    Tim Hall has a page on the various techniques of aggregation of chain that guides you through an example of creating and using a user-defined aggregate.

    On AskTom referenced by Tim page, there is an implementation of an aggregation function of string that returns a CLOB that you can use.

    If you want to understand what makes the user-defined aggregate function, it may look a bit complex, especially if you have never looked at object types in PL/SQL. You don't need to understand all the details of the implementation if you use just the code, however, you can simply create the function and use it as you would with any other aggregate function.

    Justin

  • "ORA - 01489:result of concatenation of string is too long" (the chain is small)

    Hello

    I am using the listagg as follows function but get ORA-01489: result of concatenating string is too long.

    SELECT LOCATIONID, LISTAGG (TO_CHAR (WHICH |)) ',' || (POSITIONY), ',') ADR WITHIN GROUP (ORDER BY SEQUENCENUMBER)
    OF POSITIONPOINTS
    GROUP BY LOCATIONID
    AFTER HAVING COUNT (SEQUENCENUMBER) = 20;

    When I try to run this in Oracle Sql Developer, he shows the lines first in 1550, then reports the error ORA-01489. In total 2612 lines must be returned, all values in ADR having a length of approximately 440 characters. An example of one of the lines that developer Sql is back is:

    22372682 410434.801,551142.885,410434.784,551142.875,410439.801,551141.922,410439.991,551141.795,410439.293,551138.303,410438.531,551137.668,410429.768,551134.302,410427.228,551133.159,410426.212,551132.143,410425.196,551129.667,410421.957,551114.3,410414.972,551081.28,410413.639,551076.136,410412.94,551073.66,410412.94,551072.326,410413.639,551071.628,410415.798,551070.612,410416.369,551069.469,410416.877,551068.834,410433.23,551061.795

    There are a few LocationIDs in table PositionPoints that have more than 20 entries (max is 254), and for these lines, I want the concatenated string more than the maximum of 4000 characters. However, where count (sequencenumber) = 20, the length of the concatenated string would be less than 500. Oracle running concatenations even for places that I've excluded with my HAVING clause and an error on these?

    I tried to run the query at the time Oracle Sql Developer and SQL Plus.

    Would be grateful if someone could shed some light on this issue.

    Thank you

    Ronnie m says:
    Oracle running concatenations even for places that I've excluded with my HAVING clause and an error on these?

    Yes, that's the explanation.
    HAVING is not WHERE it is applied after the grouping is performed.

  • When Remove My Documents & send to the trash and get the error message from file (s) name (s) too long

    the situation: I erase all the contents of Documents and sending them to the Recycle Bin.  This is in preparation for a new backup of Documents to an external hard drive device.
    What continues to be: whenever I press DELETE I get the following error message, "file contains elements whose names are too long for the Recycle Bin." -I combed through all the names in the Documents & shortened all the time, but I always get this error message.
    questions: How can I identify & locate offend him, too long file name of the file or files?  What is the space limit for the length of the file/folder names + character?  is it possible to change the settings to correct this extremely frustrating loop somehow, I'm in?
    I would greatly appreciate any help/tips on the issue.  Thank you!

    Hello

    you keep insisting on 'my

    There is no "My Documents" on Vista

    It's only 'Documents '.

    Windows Vista renames 'My Documents' as, simply, 'Documents '. "My music", "My pictures" and "My videos" have also lost their prefix and moved to directly under the directory (profile).

  • Unexpected error "the result of the concatenation of string is too long."

    Hello

    I use the Oracle 11.2.0 database.

    When querying my database with a common table expression that concatenates strings VARCHAR2, I get an error ORA-01489 even if I suspect that I am concatenating more 4000 characters.

    To be more precise, I have a table entity which basically stores the XML elements, including their parent element and their position of brother among his brothers and sisters. The CREATE statement for this table is listed below.

    CREATE TABLE (entity
    ID NUMBER (10,0) NOT NULL PRIMARY KEY,
    Name VARCHAR2 (100) NOT NULL,
    Parent NUMBER (10,0) REFERENCES Entity (ID),
    Sibling_Pos NUMBER (2.0) DEFAULT 0
    )
    ;

    Now, I would like for all items to be concatenated with their ancestors elements to a structure as follows:

    "(/ root_element(sibling_pos)/.../ancestor_element(sibling_pos)/parent_element(sibling_pos)/current_element(sibling_pos).
    (where root_element, ancestor_element, parent_element and current_element are fair values in the name column of the table of the entity)

    To do this, I use a common table expression that concatenates the values of name and sibling_pos as shown below:

    WITH entity_cte (lvl, id, path) as)
    SELECT 1 AS lvl, id, ' / '. name | ' (0' | sibling_pos |) ')' IN the path
    OF the entity
    WHERE parent IS NULL
    UNION () ALL THE
    SELECT lvl + 1 lvl, e.id, entity_cte.path | '/' || e.Name | ' (': cast (e.sibling_pos AS VARCHAR2 (2)) |) ')' IN the path
    Of entity_cte, e entity
    WHERE entity_cte.id = e.parent
    )
    )
    SELECT lvl, id, path
    Of e entity_cte
    ;

    After the insertion of certain values, I get the error ORA-01489, the result of concatenating string is too long. The maximum is called as 4,000 characters for VARCHAR2 in the oracle documentation and various Web sites. Of course, it is clear to me just by using the common table like that expression, I could run in such an error. However, because of the structure of XML documents, I doubted that channels resulting would be since a long time more than 4000 characters.

    So I reorganized my query to count the characters to concatenate instead of actually concatenate. The query is listed below, that the changes are marked in "BOLD":

    WITH entity_cte (lvl, id, path) as)
    SELECT 1 lvl, id, length ('/ ' | name |)  ' (0' | sibling_pos |) ') IN the path
    OF the entity
    WHERE parent IS NULL
    UNION () ALL THE
    SELECT lvl 1 lvl, e.id, AS entity_cte.path + length ('/ ' | e.name |) ' (': cast (e.sibling_pos AS VARCHAR2 (2)) |) ') IN the path
    Of entity_cte, e entity
    WHERE entity_cte.id = e.parent
    )
    )
    SELECT lvl, id, path
    Of e entity_cte
    Way to ORDER BY DESC
    ;

    The result of the query gives me a maximum length of 319 characters.

    To be sure, I also checked the maximum level (indicated by the column named lvl in the common table expression), which means that the maximum number of items in my way (the concatenated string). The result is 18. As I use VARCHAR2 (100) for the name column and add 5 charcaters in each level, the maximum number of characters expected to 18 levels would be 1890.

    So, now I wonder is the ORA-01489 may have triggered another reason? Or is there something else I'm missing?
    Any help would be appreciated. Other suggestions to track down the error are more than welcome. Thanks in advance.

    I found by trial and error that launch the query anchor seems to work, but I don't know why, then you can try this.

    with entity_cte (lvl, id, path)
    as
        (
        select
            1 lvl,
            id,
            cast('/' || name || '(0' || sibling_pos || ')' as varchar2(4000))  path
        from
            entity
        where
            parent is null
        union all
        select
            lvl + 1 lvl,
            e.id,
            entity_cte.path || '/' || e.name || '(' || cast(e.sibling_pos as varchar2(2)) || ')' path
        from
            entity_cte,
            entity e
        where
            entity_cte.id = e.parent
        )
    select lvl, id, path
    from entity_cte e
    ;
    

    Not tested since no table definitions or examples of data provided.

  • Literal string is too long and too small string buffer

    Hello

    Can someone please explain what the difference is between these two errors.

    The maximum size of the character in SQL is 4000 and PL/SQL its 32 k. So if a string literal exceeds this limit "string literal too long" error message is triggered by oracle.

    Here is an example

    SQL> select 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      2  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     26  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     27  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     28  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     29  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     30  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     31  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' str
     32    from dual;
    select 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
           *
    ERROR at line 1:
    ORA-01704: string literal too long
    

    Now, when you try to set a string variable with a value greater than the defined size, you get "too small character string buffer.

    Here is an example

    SQL> declare
      2    var varchar2(1);
      3  begin
      4    var := 'aa';
      5  end;
      6  /
    declare
    *
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 4
    

    Oracle error message there two of each, one for SQL and one for PL/SQL.

    ORA-19011: character string buffer too small

    Cause : the result of the chain asked is too big to go back

    Action : get the result like a lob instead

    ORA-01704: string literal too long

    Cause : the string literal is longer than 4000 characters.

    Action : use a string literal of more than 4,000 characters. Longer values can only be entered using bind variables.

    PLS-01905: character string buffer too small

    Cause : an error occurred while moving a string from a source to a destination. This error occurs if, for example, an attempt is made to move an a string of 10 characters into a buffer of 1 character. The cause of this error may not always be obvious. For example, the following will cause this error: a varchar2 (1); b the number; b: = 10; a: = b; An error occurs because an implicit conversion causes the number 10 to become the string '10', which does not fit in memory buffer of characters of 1 assigned to the variable.

    Action : first, look for the character string assignment statements where the size of the buffer is incompatible. If there is none found, then consider the case of an implicit conversion shown in the example above.

    PLS-00172: string literal too long

    Cause : the string literal is longer than 32767octets.

    Action : use a string literal of at most 32767octets.

  • CLob update fails with PLS-00172: string literal too long

    I have a clob column that needs updating with a message about message_id

    Description of the table

    SQL > desc cl_message1
    Name Null? Type
    ----------------------------------------- -------- ----------------------------
    MSG_ID(2) NOT NULL NUMBER (10)
    DATA NOT NULL CLOB

    UPDATE statement:
    CLOB variable data1;
    Start
    : data1: ='TESTHDR ^ add ^ 200812310374 ^ 15:53:22.0 2012-08-19 ^.
    TESTHDR ^ add ^ 200812310374 ^ 5652 ^ C0000029 ^ 15:46:49.0 2012-08-19 ^.
    TESTDWN ^ ADD ^ 200812310374 ^ 5652 ^ G ^ 03 ^ 00000999990000722444 ^.
    .....
    ... ----------------------------------------------------------------------------------------- 2376 lines of text-------------------------
    TESTDWN ^ ADD ^ 200812310374 ^ 5674 ^ G ^ 10 ^ 00000999990000743289 ^.
    TESTEND ^ 5674 ^';
    UPDATE cl_message1
    SET DATA =: data1
    WHERE
    msg_id(2) = '989';
    END;
    /

    When I run this statement it fails with


    SQL > @test_clob_insert.sql
    : data1: ='WAVEHDR ^ add ^ 200812310374 ^ 15:53:22.0 2012-08-19 ^.
    *
    ERROR on line 2:
    ORA-06550: line 2, column 10:
    PLS-00172: string literal too long

    According to my understanding of a bind variable can store a maximum of clob. Not sure why it is throwing this error. Help, please

    Concerning

    This column is stored in_row.


    SQL > r
    1 * select table_name, column_name, owner, in_row from dba_lobs where table_name = 'CL_MESSAGE1 '.

    OWNER, TABLE_NAME COLUMN_NAME IN2
    ------------------------------ ------------------------------ ---------------------------------------- ---
    VEERA CL_MESSAGE1 DATA YES

    Published by: 953621 on August 19, 2012 22:34

    Published by: 953621 on August 19, 2012 23:44

    953621 wrote:
    According to my understanding of a bind variable can store a maximum of clob. Not sure why it is throwing this error. Help, please

    Yes, if the binding variable is declared as a clob, so it can store the maximum size of the CLOB, but this isn't your problem.
    Your problem is that you set the clob data using a string literal that is a single quoted string. There is a limit to the size of the string literals, so you will have to accumulate the clob in adding a whole lot string literals instead.

  • Application of THEME - MAPVIEWER - 05517 JDBC string is too long for Oracle cards-

    Hello

    If I need a fairly complex query to add the dynamic JDBC theme I get this error:

    [MAPVIEWER-05517] Ask the string is too long for no AJAX of Oracle remote access cards.

    -Why? I use Oracle Maps API JS isn't remote AJAX or not?
    -What is the limit of a definition of the JDBC theme?

    Kind regards
    Brano

    Put this code after creating object mapviewer.

    MVMapView.enableXMLHTTP (true);

  • Cannot delete a file in windows 7. Indicates the specified file name is not valid or too long.

    Hello everyone, I'm pretty stuck here. I can't delete a file in windows 7 or any other do with it besides. Says "the specified file name is not valid or too long. It has a funny name [~ t] and no extension. The file type, say "file". The properties are all screwed looking with a mistake on the Security tab, a size of 0 k, is a Windows (c) \Windows\en-US.The other files in this folder appear normal. The computer seems to work very well without any obvious problems. The only problem is my anti-virus reports with a kind of syntax for the file error and indicates it cannot parse this file. I do not. I can't do a thing with it either. Cannot open, rename, move, delete, change passwords, properties, permissions, nothing. It may be necessary for a good part with 0kb. According to me, I want to just delete the thing. Please, anyone? Thanks in advance.

    Hey bud, I figured out how fix it earlier. I am so happy. I came to remember a command called chkdsk which worked very well for various issues, that I had since the construction of my old 2000 Professional machine. I think that one was my first NTFS system. I always liked how well he error correction. Seemed a lot better than the old scandisk. Low and behold, I tried and star ANISE, it is went through it, found this file almost from the beginning of the analysis and a few lines later, he said has been removed. Says something about the file being orphaned some time ago. It was a very bad child, that I tell you. I ran it in safe mode command prompt. I guess he would have done the same thing in the normal windows well, but I happened to be in safemode, when it came to me. I used the switch /f with her. Since the C:\ command prompt or any drive letter your operating system is selected, type CHKDSK/F if I remember although the f was to have it automatically CORRECT errors. I hope this info helps others with their file or disk problems. It seems that many people say they get mistakes and cannot delete various files here in these forums. Thanks Sandeep for answering me and try to help. It does not matter whether or not it was the fix, it takes time to post and your helping people learn to be it. The only thing that remains unanswered for me is actually the thing of the answer. I mean I can't say someone at - it really answered my question and do not count me? Maybe I should mark so that people will bother to read it and get the fix. HMMMM... I come back here some time later and see whats up.  SeeYou, EWOO

  • SYS. DBMS_SQL. Version of overload of PARSE CLOB error PLS-00172: string literal too long.

    I have This Oracle 12c Procedure

    CREATE OR REPLACE PROCEDURE LOGINCHECK(stmt IN CLOB)
    AS
      C INTEGER
    ;
      N INTEGER
    ;
      RC SYS_REFCURSOR
    ;
    BEGIN
      C
    := SYS.DBMS_SQL.OPEN_CURSOR;
      SYS
    .DBMS_SQL.PARSE(C,stmt,DBMS_SQL.native);
      N
    := SYS.DBMS_SQL.EXECUTE(C);
      SYS
    .DBMS_SQL.GET_NEXT_RESULT(C,RC);
      SYS
    .DBMS_SQL.RETURN_RESULT(RC);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
      
    NULL;
    when OTHERS then
      RAISE
    ;
    END LOGINCHECK;


    for example, to create an oracle with a xml or clob type IN FastInventory procedure and pass xml from this link https://drive.google.com/file/d/0BwAVQqYmX0-zQ1d1VnNmZndfcVE/view?usp=sharing


    The of the stmt parameter is approximately 50000 characters.


    DBMS_SQL. ANALYSIS gives error PLS-00172: string literal too long.


    I'm passing stmt My .net code as parameter . OracleDbType.Clob then why this error occurring.


    I use Oracle 12 c database. Visual Studio 2012, .net Framework 4;

    OK now I have a response team of oracle.net where it says on tweeter

    @OracleDOTNET team .NET oracle

    Seems to be a bug specific to PL/SQL, because the error occurs on the DBMS_SQL. ANALYZE the call

    Thank you all who have helped and at least tried to solve this problem.

  • Windows 7: delete the file - the specified file name is not valid or too long

    Hi I'm trying to delete some files in vain.  I have two types of error messages.

    (1) could not find this file. It is no longer in C:\Users\...
    Check the location and try again.

    (2) the name that you specified is invalid or too long. Specify a different file name.

    There are 7 files in total.  All these files are left by an old Ubuntu experience.   Some of the files were zero kb, but most are non-zero(but small).  Five files are I think printer drivers that end in .Act.  The other two files are in different directories (no KB file) and are called the same thing, "template.desc."

    I tried to go through the forums, but I couldn't understand it.  Thanks in advance to anyone who can help you.

    Andy

    The only way to remove it is the old way of BACK. Seems the info NTFS, files are broken, but the BACK is always very good.

    I had them and it worked:
    1) open to the high command prompt (CMD)
    Type cd 2) then the location of the file (in my case
    c:\users\james\desktop)
    type dir/x 3)
    (4) next to the file to delete, it will tell the 8.3 file name
    (e.g. HEDI ~ 1).
    (5) type del then 8.3 file name (e.g. HEDI ~ 1).

  • How to get the sql query result?

    Hello

    Currently I use LV2012 to connect to an Oracle database server. After the Oracle Express and Oracle ODBC driver facilities/settings made.

    I managed to use the SQL command to query the data through my command prompt window.

    Now the problem is, how to do the same task in Labview using database connectivity tools?

    I have build a VI to query as being attached, but I have no idea of what range to use to get the result of the query.

    Please help me ~ ~

    Here is a piece of code that I use to test the SQL commands, you can use the part that retrieves the results of sql.

    It is also possible to get the rear column headers, but it's for the next lesson!

    ;-)

  • Get the ORA-06508 in configuring the listener APEX

    Hello

    I am configuring the listener of the Apex. After entering all required fields and click 'Apply', I get the error messages listed below. This happens when you try the Basic types and connection of the AMT.

    ORA-06508: PL/SQL: called program unit is not found

    Cannot run the Sentinel of the 4500 application page.

    Thanks in advance for your help.

    Published by: user3654649 on June 14, 2011 11:32

    Published by: user3654649 on June 14, 2011 11:33

    Hi Sue,

    It is not a fluke, it certainly works that way.
    Just a few final remarks:
    -He didn't need to change/copy content of + / orabackup_iris2/apex_listener/export/home + to + / orabackup_iris2/export/apex_listener + in your case, as the first directory does not seem to be a temporary.
    -I recommend you put the java call, including parameters in a shell script and call instead.
    - nohup works very well for the background to the application process. As you probably know he does not offer a service 'system' - like functionality.
    - nohup creates a default file for the release of the console in employment has begun. I would recommend to redirect to a file named, then all the outputs.
    So your final configuration would look as follows
    start_apex_listener.sh

    #!/bin/sh
    java -Dapex.port=8080 -Dapex.home=/orabackup_iris2/export/apex_listener -Dapex.images=/orabackup_iris2/export/apex/images -jar /orabackup_iris2/export/apex_listener/apex.war
    

    appeal of nohup

    nohup /orabackup_iris2/export/apex_listener/start_apex_listener.sh >> /orabackup_iris2/export/apex_listener/apex_listener.log 2>&1 &
    

    If your question answered, please mark this thread and any useful response or good post accordingly.

    -Udo

Maybe you are looking for