literal string error

Hello

Cause: FDPSTP failed due to the ORA-01861: literal does not match the format string
ORA-06512: at line 1
.

I spend the dates as parameters in the srs in oracle apps to generate xls report

in the procedure of the backend package

selection cursor
Union
where I give go where condition argument

There are three trade unions

output result except

10/02/2011 00:00:00
2011-03-25 00:00:00
17/06/2011 00:00:00
2011-05-26 00:00:00
05/10/2011 00:00:00
02/11/2011 00:00:00
2011-12-14 00:00:00
04/01/2012 00:00:00
04/01/2012 00:00:00


in where condition

I like

TO_CHAR (wo_start_date, "YYYY-MM-DD"). » T'|| TO_CHAR (wo_start_date, 'HH24:MI:SS'): '. 000'
between to_char(p_build_date_from,'YYYY-MM-DD') | » T'|| to_char(p_build_date_from,'HH24:mi:SS') |'. 000' and to_char(p_build_date_to,'YYYY-MM-DD') | » T'|| to_char(p_build_date_to,'HH24:mi:SS') |'. 000'

If I pass the parameter to the srs in oracle applications front end.

in the log file, it generates an error

Cause: FDPSTP failed due to the ORA-01861: literal does not match the format string
ORA-06512: at line 1
.

Please help me in this matter...

797525 wrote:
It is the view of data in wo_start_date are stores below

23/07/2010

When you have the data stored in the Format DD-MM-YYYY, which prevents you from using the BETWEEN operator?

In addition, if you could have the view definition, it would certainly give an idea of what are the data types of the columns. If you've stored the value as the data type, then n again convert it to Date. And what is the use of use times, when you do not store or pass variables to format Date time.

797525 wrote:
If you more information
I provide you

It will certainly be useful, if you can provide the entire scenario. This includes, your (use DESC VIEW_NAME) view definition, some examples of data (that fills the condition and some data that violates the condition), the exact query (a shorter Version, if the original query is very long). All the information, response time would certainly increase and especially people will not have to play guessing games.

Kind regards
P.

Tags: Database

Similar Questions

  • ORA-19102: literal string XQuery waited while xmltable reading using the clause of passage

    Hello

    I have the following XML in the column tmp_xml in the tmp_medimail_accounts table:

    " < = xmlns:env env:Envelope ' http://schemas.xmlsoap.org/SOAP/envelope/ ">

    < env:Header / >

    < env:Body >

    " < its: findAccountByCriteriaResponse xmlns: its = ' http://session.kernel.CMP.com/ ">

    < return >

    < detailedInfo > accounts found: 1 < / detailedInfo >

    < operationResult > MPROXY_RESULT_OK < / operationResult >

    < value >

    < authCertificate / >

    < autocertificationActive / >

    < boolAck > true < / boolAck >

    < caDomain > BE_AUTO < / caDomain >

    < certified > false < / certified >

    < City > BELSELE < / City >

    < commercialAction / >

    < country / >

    < description > MediMail 3.7.4 < / description >

    other < dmi > < / dmi >

    < emailForward > false < / emailForward >

    < enabled > true < / enabled >

    < encCertificate / >

    medidoc < encodingType > < / encodingType >

    < etk / >

    < fax > LDAP this field is masked by the SECURITYFILTER < / fax >

    PC < firstName > < / name >

    < inami > 72091883000 < / inami >

    < institution > pc sint hieronymus < / institution >

    < language > NL < / language >

    < name > sint-hieronymus < / lastName >

    < lastconnectiondate > 20140115090051Z < / lastconnectiondate >

    < localeStr / >

    PC.Sint - hieronymus of < connection > < / login >

    < mail > [email protected] < / mail >

    < mexiAddress > pc.sint-hieronymus.72091883@BE_AUTO < / mexiAddress >

    < mexiBackup / >

    < mobilephone > LDAP this field is masked by the SECURITYFILTER < / mobilephone >

    < niss / >

    < oldIP / >

    < oldSystemId > 720918 < / oldSystemId >

    < packageName > M < / packageName >

    This LDAP is hidden by the SECURITYFILTER field < password > < / password >

    < pin / >

    < pkey / >

    < pkeyehealth / >

    < main > false < / main >

    < principalUserName / >

    the province <>FLANDRE_ORIENTALE < / province >

    < registrationDate > 20101213093341Z < / registrationDate >

    < role > HOSPITAL < / role >

    < sender > true < / sender >

    < senderInvisible > true < / senderInvisible >

    < subscriptiondocs > false < / subscriptiondocs >

    This LDAP is hidden by the SECURITYFILTER field < phone > < / phone >

    < improved / >

    < userpublic / >

    < usetranscodor > true < / usetranscodor >

    < version / >

    < / value >

    < / return >

    < / its: findAccountByCriteriaResponse >

    < / env:Body >

    < / env:Envelope >

    I want to read the XML column and display it as a relational table.  I have the following SQL code:

    Select x.*

    of tmp_medimail_accounts t

    xmltable)

    xmlnamespaces ('http://schemas.xmlsoap.org/soap/envelope/"as" env" )

      , ' http://session.kernel.CMP.com/ ' as 'his'

    )

    , ' env:Envelope / env:Body / its: findAccountByCriteriaResponse return value '

    in passing t.tmp_xml

    path of varchar2 (30) columns "firstName", firstName

    path varchar2 (30) LastName "lastName."

    rizivnr varchar2 (11) path 'inami ',.

    path of varchar2 (50) address "mexiAddress."

    path of varchar2 (100) email "mail."

    Gemeente varchar2 (50) path 'city') x;

    But I have error: ORA-19102: literal string XQuery WAITED

    Can someone help me?

    Best regards, Hans

    Hello

    What is your version of the database?

    It looks like an old problem related to the CURSOR_SHARING parameter.

    See if the solution given here helps: How to use a web service xml document

  • OPM 10.3: Attributes of text interpreted as literal strings in Excel

    Hello world

    We began the upgrade to OPM and connector 10.3 and find the conversion creates a problem with some rule of Excel tables. Text attributes names placed in conclusion the cells appear to consider themselves as literal strings. So we get output equal to "the frequency of delivery" rather than "monthly". It would be good to know if it was a change for the feature, and if there is a suggested approach to conversion or workaround.

    [Edit: we are not sure if it's related to this problem on page 18 of the known release notes following.]  What is the word 'function' applies in this context?

    Functions are not
    supported when
    text of final
    rule attributes Excel
    documents

    Creating a function in a cell that a conclusion can be parsed incorrectly as one
    value of string if the signed attribute type is text.]

    Thank you very much
    -Patrick

    Published by: Patrick guess November 17, 2011 14:06

    This was the problem solved DAAS-3446 'Excel reports invalid expression when assigning some of text values to a text attribute' (page 15 of the release notes).

    When the assignment of a value to an attribute of text in Excel, "the frequency of benefits" could be literal text or the value of the attribute. It is usually obvious when the rule of writing if is the literal text, but at some point in the future an attribute can be defined which matches the literal text, which means it can suddenly an error. The solution is to always treat a value assigned to an attribute of text as a literal text unless it is placed in brackets. If "the frequency of benefits" should be changed to "(la fréquence de prestation)" if it is intended to assess the value of the frequency of benefits. "

    This is mentioned in the documentation under the heading 'Functions in Excel' in the section "upgrading a project" - this could be a bit misleading as it applies to any expression where the text is not treated as literal text.

  • Exception string: error in invoking target 'client_sharedlib' of the makefile on Solaris 11

    Hi all

    I am installing a 12 c on Solaris 11 SPARC 64 bit software and Installer throws the below error.

    tail /a01/oracle/oraInventory/logs/installActions2015-10-05_11-10-03AM.log shows error.

    INFO: Starting the process generated output:

    INFO: ----------------------------------

    INFO:

    INFO: /a01/oracle/finsft/12.1.0/bin/genclntsh

    INFO: genclntsh: failed to bind libclntsh.so.12.1

    INFO: * error code 1

    NEWS: make: Fatal error: command for target 'client_sharedlib' failed

    INFO: End of the generated process exit.

    INFO: ----------------------------------

    INFO: Exception thrown from action: do

    Exception name: MakefileException

    Exception string: error in the call to target 'client_sharedlib' of makefile ' / a01/oracle/finsft/12.1.0/rdbms/lib/ins_rdbms.mk'. See ' / a01/oracle/oraInventory/logs/installActions2015-10-05_11-10-03AM.log' for details.

    The exception severity: 1

    tail-f /a01/oracle/finsft/12.1.0/install/make.log

    TARGET_BINARY_INTERFACE =

    export TARGET_BINARY_INTERFACE

    nnfgt.c - CC c

    -f /a01/oracle/finsft/12.1.0/lib/nnfgt.o rm

    MV - nnfgt.o /a01/oracle/finsft/12.1.0/lib/

    / usr/CCS/bin/AR rv /a01/oracle/finsft/12.1.0/lib/libn12.a /a01/oracle/finsft/12.1.0/lib/nnfgt.o; FI)

    otherwise f ins_rdbms.mk client_sharedlib ORACLE_HOME=/a01/oracle/finsft/12.1.0//a01/oracle/finsft/12.1.0/bin/genclntsh

    genclntsh: failed to bind libclntsh.so.12.1

    Error code 1

    make: Fatal error: command for target 'client_sharedlib' failed

    Thank you

    Chubby

    I managed to solve this problem by double-checking the md5 values, it did not fit for p21419221_121020_SOLARIS64_1of10.zip, just downloaded the zip files again and matched md5 insured. installation went fine through this time!

    Thank you

    Chubby

  • To bind the Variable as being of a literal string value

    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Prod

    PL/SQL Release 10.2.0.5.0 - Production

    CORE Production 10.2.0.5.0

    AMT for Linux: Version 10.2.0.5.0 - Production

    NLSRTL Version 10.2.0.5.0 - Production

    Hi there, thank in advance. I have a problem when you create a dynamic statement. The problem is in the binding variable': OLD. CUST_NAME'... my question is is there an escape character to treat the affair as a literal string variable?

    {code}

    v_str2: = "' client_name =" ' |' | ' || ': OLD. CUST_NAME';

    EXECUTE IMMEDIATE 'create or replace trigger trg_.

    || SUBSTR (rec_cur.table_name, 1, 26)

    || "before insert or update or delete on.

    || rec_cur. Owner

    || '.'

    || rec_cur.table_name

    || '

    declare

    Start

    If the UPDATE can

    FIFAPPS.ibug.log_errors('||)

    v_str2 | »

    );

    end if;

    end;';

    {code}

    I want the output in a trigger something like this:

    {code}

    If the UPDATE can

    FIFAPPS.ibug.log_errors (' client_name ='|: O LD.) CUST_NAME

    );

    {code}

    Hello

    What is the need of business that you are trying to address?  Before writing any kind or trigger and especially before you dynamically create a lot of triggers, see if Oracle provides a better way to meet your needs, for example, audit.

    If triggers are really justified, and you are looking for just an easy way to crank out a large number of almost identical triggers right now (not something that end users will do all the time), so I suggest SQL * Plus and the substitution variables.  It will be easier to debug writing and debugging, because you won't have to you not so much worried about quotes and concatenation.  For example, if all the triggers are identical except for the diagram, the table name and column name, you can write a simple script that can be used to create an unlimited number of triggers, like this:

    -Trigger_Factory.sql - create trigger standard

    DEFINE schema_name = & 1
    DEFINE table_name = & 2
    DEFINE column_name = & 3

    CREATE OR REPLACE TRIGGER trg_ & table_name
    BEFORE ON INSERT or UPDATE or DELETE &... schema_name table_name
    -' SEO NEW OLD NEW old' is the default, so do not say

    -REFERENCING NEW AS NEW OLD O
    -In this way, you don't have to worry about the bad OLD spelling.
    FOR EACH LINE
    BEGIN
    IF THE UPDATE CAN
    fifapps. IBUG.log_errors (: OLD & column_name);
    ...

    Once you have this course of debugging, you can write another script that calls the script above:

    @trigger_factory fifapps t t_column_key

    @trigger_factory fifapps u colonne_1

    @trigger_factory foo bar column_xyz

    Alternatively, instead of manually create a script like the one above, write a query to do it for you:

    SELECT '@trigger_factory'

    owner

    table_name

    column_name

    From all_tab_columns

    WHERE THE...

  • ORA-01780: string literal required error

    I need to create a directory in the path (for example it is/export/home/camsdoc ' camsdocd/meterwatch for development/export/home / ' /meterwatchqfor QA and/export/home /'camsdocp/meterwatch for production)

    Here's what I thought, but I get the error message below

    declare

    v_camsdoc v$instance.instance_name%type;

    v_stmt varchar2 (1000);

    Start

    Select instance_name

    in v_camsdoc

    from v$ instance;

    v_stmt: = ' CREATE or REPLACE DIRECTORY METERWATCH AS/export/home / | v_camsdoc | ' /meterwatch';

    immediately run v_stmt;

    end;

    Error on line 1

    ORA-01780: string literal required

    ORA-06512: at line 9 level

    v_stmt: = ' CREATE or REPLACE DIRECTORY METERWATCH AS "/ export/home /' | v_camsdoc | ' / meterwatch "';

    or better:

    v_stmt: = Q'[CREATE or REPLACE DIRECTORY METERWATCH AS ' / export/home /]' | v_camsdoc | Q'[/ meterwatch ""]';

    SY.

  • ORA-01780: string literal required (ERROR on line 7 :)

    Can someone help me?
    The XMLQuery below show me ORA-01780:

    with t as)
    Select xmltype ("< root >
    < Child1 attribut1 = "1" attribut2 = "2" > < / Child1 >
    < Attribut1 Child1 = attribut2 "3" ="4" > < / Child1 >
    < Attribut1 Child1 = attribut2 "5" ="6" > < / Child1 >
    < Attribut1 Child1 = attribut2 "2" ="1" > < / Child1 >
    ((< / root > ') double xml)
    SELECT warehouse2.attribute1
    warehouse2.attribute1
    Warehouses
    , XMLTABLE ('/ Root')
    PASSAGE t.xml
    COLUMNS
    attribute1 varchar2 (1) PATH ' / Root/Child1/@attribute1',
    attribut2 varchar2 (1) PATH ' / Root/Child1/@attribute2') warehouse2;
    SQL >
    SQL > < / Root > ') double xml)
    SQL > *.
    SQL > ERROR on line 7:
    SQL > ORA-01780: string literal required

    Have you revied this thread (search is your friend).

    Re: XMLTable cause the problem 10.2.0.3 or privs?

    What Version of DB are you using

    What are the compatible parameter values and cursor_sharing in your case...

    -Mark

  • 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 'xxxxxxxxxxxxxxxxxxxxxxxxxx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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.

  • Get literal string when using CLOB

    Hi, I am using Oracle 11.2.0.3 on Windows 2003 R2 and I have a procedure to extract the different bits of XML and GML of an XMLType column. GML for a record can be one or more geometries and I need to derive a unique SDO_GEOMETRY to and convert to WGS84. I created a function called MULTI_GML_TO_SDOGEOM in which I analyze my GML as a CLOB. I can add it to a SQL_STMT variable which is also a CLOB. In the treatment of 10,000 records, this function worked well for 8000 in vain, then when he struck a record that had more than 4,000 characters in GML (seven geometries) with an ORA-01704 string literal too long. I am in debug on each line of the function and found the function failed on the open cursor statement
    OPEN c_geoms FOR sql_stmt;
    I don't understand why I get this error that the total length of sql_stmt for registration failed, it is about 7500 characters and I use CLOB which must be able handle length. I don't know if I have not used the CLOB correctly or maybe I need to use something DBMS_LOB package but I can't find any decent examples and I don't really know why it does not work in any case.
    Here's the function:
    CREATE OR REPLACE FUNCTION MULTI_GML_TO_SDOGEOM (
       geometry_components IN CLOB)
       RETURN sdo_geometry
    IS
    v_count             NUMBER;
    v_gml               XMLType;
    v_gml_rec           XMLType;
    v_gml_clob          CLOB;
    v_gml_clob_rec      CLOB;
    sql_stmt            CLOB;
    v_sdogeom           SDO_GEOMETRY;
    v_sdogeom_all       SDO_GEOMETRY;
    varray_sdogeom      SDO_GEOMETRY_ARRAY;
    
    
    TYPE t_ref_cursor  IS REF CURSOR;
    c_geoms         t_ref_cursor;
    
    BEGIN
    
    varray_sdogeom := SDO_GEOMETRY_ARRAY();
    
    IF geometry_components is not null THEN
    
      v_gml := XMLType ('<GeometryComponents xmlns:gml="http://www.opengis.net/gml/3.2">'||geometry_components||'</GeometryComponents>');
    
      v_gml_clob := v_gml.getClobVal();
    
      SELECT count(*) INTO v_count FROM XMLTable ('declare namespace gml="http://www.opengis.net/gml/3.2"; (: :)
                                                 //polygon' PASSING v_gml);
    
      If v_count > 0 THEN
    
        sql_stmt := 'WITH gml_input AS (SELECT XMLType ('''||v_gml_clob||''') as gmldata from dual)
                     select poly.spatial_location from gml_input,
                                                     xmltable (xmlnamespaces (''http://www.opengis.net/gml/3.2'' as "gml"),
                                                              ''GeometryComponents/polygon/gml:Polygon''
                                                               PASSING gmldata
                                                               COLUMNS
                                                               spatial_location XMLTYPE PATH ''//gml:Polygon'') poly
                     UNION ALL
                     select point.spatial_location from gml_input,
                                                     xmltable (xmlnamespaces (''http://www.opengis.net/gml/3.2'' as "gml"),
                                                              ''GeometryComponents/polygon/gml:Point''
                                                               PASSING gmldata
                                                               COLUMNS
                                                               spatial_location XMLTYPE PATH ''//gml:Point'') point';
    --    dbms_output.put_line (sql_stmt);
    
    
        OPEN c_geoms FOR sql_stmt;
    
        LOOP
    
          FETCH c_geoms INTO v_gml_rec;
          EXIT WHEN c_geoms%NOTFOUND;
    
          v_gml_clob_rec := v_gml_rec.getClobVal;
    
          sql_stmt := 'SELECT SDO_CS.TRANSFORM(SDO_UTIL.FROM_GML311GEOMETRY ('''||v_gml_clob_rec||'''), 8307) FROM dual';
    
          EXECUTE IMMEDIATE sql_stmt INTO v_sdogeom;
     
          varray_sdogeom.EXTEND;
    
          varray_sdogeom(varray_sdogeom.COUNT) := v_sdogeom;
    
        END LOOP;   -- c_geoms fetch
    
        CLOSE c_geoms;
    
        select SDO_AGGR_SET_UNION(varray_sdogeom, 0.005) INTO v_sdogeom_all from dual;
    
      END IF;  -- v_count > 0
    
    RETURN v_sdogeom_all;
    
    END IF;
    
    END MULTI_GML_TO_SDOGEOM;
    /
    
    show errors
    Unfortunately I can't add the data, I'm processing as it is classified, but here's a dummy sample of the type of GML, I'm analysis although this is short enough to make it work:
    <GeometryComponents xmlns:gml="http://www.opengis.net/gml/3.2">
    <polygon xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:srv="http://www.isotc211.org/2005/srv"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:mgmp="http://www.mod.uk/mgmp" xmlns:smr="http://www.mod.uk/smr"
    xmlns:xlink="http://www.w3.org/1999/xlink"><gml:Polygon gml:id="bp2" srsName="EPSG:4326">
    <gml:exterior>
    <gml:LinearRing>
    <gml:posList srsDimension="2">175 -40 176 -40 176 -39 175 -39 175 -40</gml:posList>
    </gml:LinearRing>
    </gml:exterior>
    </gml:Polygon>
    </polygon>
    </GeometryComponents>
    And even if this function is normally called by procedure, this is a double call
     select MULTI_GML_TO_SDOGEOM ('<GeometryComponents xmlns:gml="http://www.opengis.net/gml/3.2">
    <polygon xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:srv="http://www.isotc211.org/2005/srv"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:mgmp="http://www.mod.uk/mgmp" xmlns:smr="http://www.mod.uk/smr"
    xmlns:xlink="http://www.w3.org/1999/xlink"><gml:Polygon gml:id="bp2" srsName="EPSG:4326">
    <gml:exterior>
    <gml:LinearRing>
    <gml:posList srsDimension="2">175 -40 176 -40 176 -39 175 -39 175 -40</gml:posList>
    </gml:LinearRing>
    </gml:exterior>
    </gml:Polygon>
    </polygon>
    </GeometryComponents>') from dual;
    Thanks in advance.

    Hello

    I don't see why you use dynamic SQL statements here.
    As mentioned above, you do a lot of things wrong and unnecessary, the first being not not using bind variables.
    So, I see many serialization/construction on XMLType which only adds more load.

    Basically, the function can be simplified to:

    create or replace function multi_gml_to_sdogeom (
      geometry_components in clob
    )
    return sdo_geometry
    is
    
      v_sdogeom_all       SDO_GEOMETRY;
    
    begin
    
      select SDO_AGGR_SET_UNION(
               cast(
                 collect(
                   SDO_CS.TRANSFORM(SDO_UTIL.FROM_GML311GEOMETRY(spatial_location), 8307)
                 )
                 as sdo_geometry_array
               )
             , .005
             )
      into v_sdogeom_all
      from (
        select xmlserialize(content x.column_value) as spatial_location
        from xmltable(
               xmlnamespaces ('http://www.opengis.net/gml/3.2' as "gml")
             , '/GeometryComponents/polygon/(gml:Polygon|gml:Point)'
               passing xmlparse(document geometry_components)
             ) x
      ) ;
    
      return v_sdogeom_all;
    
    end;
    
    SQL> select multi_gml_to_sdogeom('
      2  
      5  
      6  
      7  175 -40 176 -40 176 -39 175 -39 175 -40
      8  
      9  
     10  
     11  
     12      45.67, 88.56
     13    
     14  
     15  ')
     16  from dual ;
    
    MULTI_GML_TO_SDOGEOM('
     
    

    Published by: odie_63 on 8 Jan. 2013 18:02

  • Literal string too long for the CLOB

    Hello
    My version of the database is:
    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    AMT for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production

    When I run this piece of code, I get an error.
    DECLARE
    insCtx DBMS_XMLStore.ctxType;
    lines NUMBER;
    xmlDoc CLOB: = 'xml string is about 4600 long lines in TOAD...';
    BEGIN
    insCtx: = DBMS_XMLStore.newContext ("xmlTempTbl"); -get the context
    lines: = DBMS_XMLStore.insertXML (insCtx, xmlDoc); -Insert the doc
    DBMS_XMLStore.closeContext (insCtx); -close the handle
    END;

    ERROR:
    ORA-06550: line 4, column 19:
    PLS-00172: string literal too long

    From my understanding a CLOB leave maximum string size of 2 GB. And on top, my xml string is not greater than 2 GB (I cannot display the xml data string, refers to the business). So why I get the error too long string literal.
    For the above, I fault the XML into several parts and run the PLSQL, then it gives no error.
    Please advice.

    Published by: 934451 on November 8, 2012 07:06

    Published by: 934451 on November 8, 2012 07:07

    From my understanding a CLOB leave maximum string size of 2 GB.

    Not exactly:
    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e25519/datatypes.htm#CHDDCGEE

    but this isn't the real problem.

    The error is about the "string literal" size, there is a limitation too:
    http://docs.Oracle.com/CD/E11882_01/server.112/e17766/pcmus.htm#sthref18132

    PLS-00172: string literal too long
        Cause: The string literal was longer than 32767 bytes.
        Action: Use a string literal of at most 32767 bytes.
    

    For the above, I fault the XML into several parts and run the PLSQL, then it gives no error.

    Is this a real case of production or you just test?
    In practice, we should first save the file in a variable/column CLOB (or XMLType) and then reference the content from there.

  • Oracle TEXT and using "ABOUT" as a literal string, not a command

    We have a hint of context on a NAME column, and we get an error when searching on the string
    CONTAINS(name, '%ALL ABOUT TRAVEL%') > 0
    A query on ALL ABOUT and works ON THE TRIPS, but all of the sentence is a problem. I found since EVERYTHING is a key word when you use CONTAINS ().

    So, is there a way to escape ABOUT, include it in double quotes, etc., so that it gets treated as a string literal?

    Thank you
    -= Chuck

    Try to include in the curly brackets {}

    Max
    http://oracleitalia.WordPress.com

  • String error 42 - VI method for controls server Unflatten

    Try to use the VI-server method to save and retrieve values from control. Get a generic error 42 when using the name "minimum value" but the Vi works fine if you use a name "minimum values" conrol Vi clos can pass (using S1) between two control names to show that the error is in the difference in name. Is there a way to solve the problem or if another method to save and retrieve orders be used.

    Attached VI is in LV2010 sp1.

    Thanks for your help.

    One thing you can try is to disable the option "Convert EOL" functions to write to a file text and reading of text file.  As you save binary data as a string, you want to ensure that binary data is stored.  It may be better to use the binaries, instead of text files, because you are trying to save and load binary data.

    Chris M

  • OID Prepop adapter string error

    Hello

    I'm pre fill the field Manager of IOM to OID.  For this, I have added a new manager of form fields in the tab pre-populated designer UD_OID_USR form after you create a new version of the form and activate this new form I get the error message.

    [2014 05-11 T 19: 31:45.560 - 06:00] [oim_server1] [ERROR] [] [ORACLE. IAM. CONNECTORS. ICFCOMMON. Prov. ICPROVISIONINGMANAGER] [tid: [ASSETS].] [ExecuteThread: '5' for the queue: "(self-adjusting) weblogic.kernel.Default"] [username: xelsysadm] [ecid: 11d1def534ea1be0:57244738:145e03b6947:-8000-00000000000044f1, 0] [APP: IOM #11.1.2.0.0] oracle.iam.connectors.icfcommon.prov.ICProvisioningManager: doUpdate: error when updating user []

    org.identityconnectors.framework.common.exceptions.ConnectorException: javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 19 - Constraint Violation]; "name remaining ' uid = test, ou = users, or = Associates, OU = wwc, dc = svn, dc is svnserver, dc = com"

    at org.identityconnectors.ldap.modify.LdapUpdate.modifyAttributes (LdapUpdate.java:365)

    at org.identityconnectors.ldap.modify.LdapUpdate.modifyAttributes (LdapUpdate.java:357)

    at org.identityconnectors.ldap.modify.LdapUpdate.update (LdapUpdate.java:170)

    at org.identityconnectors.ldap.LdapConnector.update(LdapConnector.java:127)

    at org.identityconnectors.framework.impl.api.local.operations.UpdateImpl.update(UpdateImpl.java:93)

    at sun.reflect.GeneratedMethodAccessor5210.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunnerProxy.invoke(ConnectorAPIOperationRunnerProxy.java:93)

    to $Proxy469.update (Unknown Source)

    at sun.reflect.GeneratedMethodAccessor5210.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.identityconnectors.framework.impl.api.local.operations.ThreadClassLoaderManagerProxy.invoke(ThreadClassLoaderManagerProxy.java:107)

    to $Proxy469.update (Unknown Source)

    at sun.reflect.GeneratedMethodAccessor5210.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.identityconnectors.framework.impl.api.DelegatingTimeoutProxy.invoke(DelegatingTimeoutProxy.java:107)

    to $Proxy469.update (Unknown Source)

    at sun.reflect.GeneratedMethodAccessor5210.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.identityconnectors.framework.impl.api.LoggingProxy.invoke(LoggingProxy.java:76)

    to $Proxy469.update (Unknown Source)

    at org.identityconnectors.framework.impl.api.AbstractConnectorFacade.update(AbstractConnectorFacade.java:154)

    at oracle.iam.connectors.icfcommon.prov.ICProvisioningManager.doUpdate(ICProvisioningManager.java:665)

    at oracle.iam.connectors.icfcommon.prov.ICProvisioningManager.updateAttributeValues(ICProvisioningManager.java:407)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    I installed the Manager field is already present and TO connect in that. I just add Manager field in the tab pre-populated. Is that we can use OID Prepop String adapter for it. Please help to resolve the error.

    Thank you

    Rajeev

    Its it manager DN DN or the user you copied? ((uid is test, or = users, ou = Associates, UO is wwc, dc = svn, dc = svnserver, dc = com))

    If its DN users, make sure that your valid driver DN happens in the Manager field.

    ~ J

  • string error

    Hello

    I use oracle 11.2.0
    I have a procedure that takes as input a string of 8717 characters and it separates from 4,000 characters each and inserts into a table.
    TOKEN1, token2, token3, token4, token5 in the table are varchar2 (4000);
    code example.

    procedure proc_insert (I_TOKEN in clob) IS
    TOKEN1 varchar2 (4000);
    Token2 varchar2 (4000);
    token3 varchar2 (4000);
    token4 varchar2 (4000);
    token5 varchar2 (4000);
    BEGIN
    V_TOKEN1: = SUBSTR (I_TOKEN, 1, 4000);
    V_TOKEN2: = SUBSTR (I_TOKEN, 4001, 8000);
    V_TOKEN3: = SUBSTR (I_TOKEN, 8001, 12000);
    V_TOKEN4: = SUBSTR (I_TOKEN, 12001, 16000);
    V_TOKEN5: = SUBSTR (I_TOKEN, 16001, 20000);

    INSERT
    INSERT INTO GSM_ASSERTION_INFO
    (TOKEN1,
    TOKEN2,
    TOKEN3,
    TOKEN4,
    TOKEN5
    )
    VALUES
    (V_TOKEN1,
    V_TOKEN2,
    V_TOKEN3,
    V_TOKEN4,
    V_TOKEN5);

    END;

    the compilation of code successfully, but when I call the d.a. gives the error:
    ORA-06502: PL/SQL: digital or value error: character string buffer too small

    Help, please

    Hello

    the third argument og SUBSTR is not the end position, but the length

    V_TOKEN2 := SUBSTR (I_TOKEN, 4001, 8000);
    ...
    

    must be

    V_TOKEN2 := SUBSTR (I_TOKEN, 4001, 4000);
    ...
    

    Concerning
    Marcus

  • GATHER_TABLE_STATS and character buffer too small string error

    Hello

    I am trying to run stats gather on a partition of a table. It gives me the error below.
    There is no trigger or whatever it is on the table. Can you please help...

    BEGIN
    DBMS_STATS. GATHER_TABLE_STATS (ownname = > 'AB', tabname = > 'SAMPLE_TABLE_NAME_FRTEST',)
    estimate_percent = > DBMS_STATS. AUTO_SAMPLE_SIZE,
    partName = > 'SAMPLE_TABLE_NAME_FRTEST_201011');
    END;

    ORA-06502: PL/SQL: digital or value error: character string buffer too small
    ORA-06512: at "SYS." DBMS_STATS", line 13437
    ORA-06512: at "SYS." DBMS_STATS", line 13457
    ORA-06512: at line 2

    Here are the details of the version:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production

    Thank you.

    Published by: me * on 21/08/2011 17:10

    me * wrote:
    Hello

    I am trying to run stats gather on a partition of a table. It gives me the error below.
    There is no trigger or whatever it is on the table. Can you please help...

    BEGIN
    DBMS_STATS. GATHER_TABLE_STATS (ownname => 'AB', tabname => 'SAMPLE_TABLE_NAME_FRTEST',
    estimate_percent-online DBMS_STATS. AUTO_SAMPLE_SIZE,
    partName => 'SAMPLE_TABLE_NAME_FRTEST_201011');
    END;

    ORA-06502: PL/SQL: digital or value error: character string buffer too small
    ORA-06512: at "SYS." DBMS_STATS", line 13437
    ORA-06512: at "SYS." DBMS_STATS", line 13457
    ORA-06512: at line 2

    Here are the details of the version:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production

    Thank you.

    Published by: me * on 21/08/2011 17:10

    You get a maximum of 30 characters in the array, column, etc. names in Oracle.

    You have really a partition name exceeds?

    SAMPLE_TABLE_NAME_FRTEST_201011

    At more than 30 characters...

Maybe you are looking for

  • iPhone more than 7 replaced without service problem

    Hi new to the forum here and today I just got my replacement of Verizon iPhone 7 + 256 GB black by apple after going in the Apple Store on September 26, not showing my no problem related to the service and had changed through prior Verizon sim card.

  • Images are not always displayed in received emails

    Images not always displayed in the body of some downloaded messages. They appear at the end of the message.

  • Is Satellite A200 - 1 GB (PSAE6E) supports 4 GB of RAM

    I have a toshiba Satellite A200 - 1 GB and I want to put 4 GB of RAM on it.It came with 2 GB of RAM pc2-5300. Is it supports RAM pc2-6400 memory modules? Concerning

  • usb8451 open_drain 3.8V 5V i.s.o.

    Hey,. We want to use usb8451 for 5V level. (open_drain) We get only 3.8V. How? Kind regards Koen.

  • code D59

    I could not install service pack 3 on my CODE. Other updates loading but not this one. This computer came with xp and vista. I installed vista (with much help from MS support) because the default seems to return repeatedly to the structuring of the x