Varchar2 to CLOB

Hi,
I want to convert my Varchar2 vairable to CLOB to store in my database is that any way to do so ?
I have seen DBMS_LOB package but I dont understand how to use that . The DBMS_LOB package converts BFILE data to CLOB, so If any one knows how I can write intoa BFILE and then I can convert it to CLOB.
Regards,
Nishith Pancholi

Hi!
Here's a quick example for you:
create table tmpl (f1 number, f2 clob);
declare
l_clob clob;
l_str varchar2(32767) := 'asdf';
begin
insert into tmpl values (1, l_str);
end;
select * from tmpl;
drop table tmpl;
Regards,
Andrew Velitchko
BrainBench MVP for Developer/2000
http://www.brainbench.com

Similar Messages

  • Convert XMLTYPE to VARCHAR2 or CLOB?

    Does anyone know how to convert an XMLTYPE variable to VARCHAR2 or CLOB? I am using the XMLELEMENT function to select XML into an XMLTYPE variable (VARCHAR2 and CLOB will not accept xml from this function). But I would like to convert the xml in the XMLTYPE variable to VARCHAR2 or CLOB. Can anyone please tell me how to do this? The reason is that I would like to call this procedure from MS ADO.
    Anthony Sneed
    email: [email protected]

    Hi,
    But I would like to convert the xml in the XMLTYPE variable to VARCHAR2 or CLOB.You can select XMLType data using PL/SQL or Java. You can also use the getClobVal(), getStringVal(), or getNumberVal() functions to retrieve XML as a CLOB, VARCHAR, or NUMBER, respectively.
    Example 4-18 Selecting XMLType Columns using getClobVal()
    This example shows how to select an XMLType column using SQL*Plus:
    SET long 2000
    SELECT e.poDoc.getClobval() AS poXML
    FROM po_xml_tab e;
    POXML
    <?xml version="1.0"?>
    <PO pono="2">
    <PNAME>Po_2</PNAME>
    <CUSTNAME>Nance</CUSTNAME>
    <SHIPADDR>
    <STREET>2 Avocet Drive</STREET>
    <CITY>Redwood Shores</CITY>
    <STATE>CA</STATE>
    </SHIPADDR>
    </PO>
    Look into the documentation: Oracle9i XML Database Developer's Guide - Oracle XML DB for more details.
    Hope that helps.
    OTN team@IDC

  • Change Parameter from VarChar2 to CLOB

    Hi,
    I have a function csvToArray which takes a csv string and converts it to an array.
    PROCEDURE csvToArray(p_csvString IN VarChar2,
    p_count OUT PLS_INTEGER,
    p_array OUT ARRAY_T) IS...
    Unfortunately the size of the csvString being passed in exceeds 32K, so I was thinking about changing the type of the csvString from Varchar2 to CLOB,i.e
    PROCEDURE csvToArray(p_csvString IN CLOB,
    p_count OUT PLS_INTEGER,
    p_array OUT ARRAY_T) IS...
    The procedure only uses the string functions instr and substr to find the elements of the csv string to place in an array.
    I've tested the change and it works, but is there anything I should consider with the change to the data type, or will the above always work fine? The extreme max size of p_csvString would be around 150K.
    Database version is 10.2.0.4.0
    Thanks

    Hi,
    This test maybe helpful
    Passed Length 65K test
    create or replace procedure my_pro ( pclob clob)
    is
    begin
      dbms_output.put_line('clob passed LEN:' ||
       dbms_lob.getlength(pclob) );
    end;
    Procedure created.
    SQL> exec my_pro( to_clob(lpad('x',32767,'c')||lpad('x',32767,'c')||'x'));
    clob passed LEN:65535
    PL/SQL procedure successfully completed.SS

  • Varchar2 to CLOB : Best Options to do it ?

    Helllo,
    I have a table whcih is 20GB in size and has a Column which is a Varchar2 column.As varchar2 could store upto 4000 bytes of data,we have a requiremnet where the column can have more than 4000 bytes of data and we decided to convert it to a CLOB column.
    What are the best and fastest way of doing this?
    OPTION 1_
    1. First create the temporary table
    CREATE TABLE P_C_V_NEW
    (TESTID_NUM NUMBER,
    DATAPOINT NUMBER,
    DATAPOINT_DATE DATE ,
    CHANGE_FLAG VARCHAR2(1),
    CHANNEL_VALUES CLOB )
    2. Insert the data from original to the temporaray table
    INSERT INTO P_C_V_NEW (SELECT TESTID_NUM,DATAPOINT, DATAPOINT_DATE, CHANGE_FLAG,CHANNEL_VALUES FROM P_C_V)
    3.Rename the temporary table to Original table
    RENAME P_C_V_NEW TO PAM_CHANNEL_VALUES
    OPTION 2:_
    SQL> alter table P_C_V add (NEW_CHANNEL_VALUE clob);
    Table altered.
    SQL> update P_C_V set NEW_CHANNEL_VALUE = CHANNEL_VALUE;
    1 row updated.
    SQL> alter table PP_C_V drop column CHANNEL_VALUE;
    Table altered.
    SQL> alter table P_C_V rename column NEW_CHANNEL_VALUE to CHANNEL_VALUE;
    Table altered.
    SQL> desc pam_channel_values
    Name Null? Type
    TESTID_NUM NUMBER
    DATAPOINT      NOT NULL NUMBER
    DATAPOINT_DATE      NOT NULL DATE
    CHANGE_FLAG      NOT NULL CHAR(1)
    CHANNEL_VALUES CLOB
    OPTION 3
    Use DBMS_REDEFINITION ?
    This original table contains 11714457 records.
    Thanks
    GAG

    I would prefer somthing as like method1 as
    Create table x as select * from old table.
    beacuse it would be the fastest way to load the data compare to update of method 2.
    Only issue is that the in table x the new constriant and index need to be created if they are presenti on old .
    and even if you want to go with method 2 you need to do the update in BULK collect way in plsql
    not simple sql like this beacuse you need a big amount of rollback segment spac
    update P_C_V set NEW_CHANNEL_VALUE = CHANNEL_VALUE;Cheers
    Nawneet

  • The most effective way from varchar2 to CLOB?

    this is my table's TAB structure on Oracle 10g r2:
    TAB_ID (PK),
    TAB2_ID (FK constraint to TAB2(TAB2_ID), index created),
    TEXT varchar2(4000)
    What is the most effective way to convert varchar2(4000) column to CLOB column?
    1. create new table TAB_NEW with column TEXT as CLOB,
    then insert /*+ APPEND */ into TAB_NEW SELECT * FROM TAB,
    then rename table TAB to TAB_OLD,
    then drop constraint and indexes
    then rename TAB_new to TAB
    then add constraints primary key and foreign key,
    then add index on TAB2_ID
    then drop table TAB_OLD
    OR
    2. rename column TEXT(varchar2) to TEXT_OLD
    then add column TEXT(type CLOB)
    then update(how the most effective?) TAB set TEXT=TEXT_OLD
    drop column TEXT_OLD.

    1 will work, as you can assign a VARCHAR2 to a CLOB and Oracle will convert it.
    2 is redundant.
    Sybrand Bakker
    Senior Oracle DBA

  • Insert concatenated data from Varchar2 to Clob

    Hi,
    I have a table with the following structure:
    create table logmst (logno varchar2(10), log_detail1 varchar2(4000), log_detail2(4000));
    I would like to concatenate the data from log_detail1 and log_Detail2 into a Clob datatype. So, i have created another table:
    create table test(id varchar2(10), filedesc clob default empty_clob());
    I tried:
    insert into test (id, filedesc) select logno, to_clob(log_Detail1 || log_Detail2) from logmst;
    System shows ORA-01489: result of string concatenation is too long.
    Can somebody help? Thanks in advance.

    You have to write a small procedure. You cannot achieve this using a SQL statment.
    Declare
       myClob CLOB;
       logNo logMst.logNo%type;
       col1 logmst.log_detail1%type;
       col2 logmst.log_detail2%type;
       length_col1 number;
    begin
        For rec in (select logNo, log_Detail1, log_Detail2 from logMst)
        loop
                  logNo := rec.LogNo;
                  col1 := rec.Log_Detail1;
                  col2 := rec.Log_Detail2;
                     myClob := empty_clob();
                    dbms_lob.createtemporary(myClob, TRUE);
                    length_col1 := length(col1);
                    dbms_lob.write(myClob , length_col1,1,col1);
                    dbms_lob.write(myClob , length(col2), length_col1+1,col1);
                   -- Write here SQL statemnt to write this CLOB to your table...
        end loop;
    end;Thanks,
    Dharmesh Patel

  • Question in ER_DESIGN with VARCHAR2 and CLOB

    hi experts,
    i want to know in your design experience, how do you manage thus situation:
    a text field, which must have features of full-text search for all the text, normally, it should be less than 4000 character long, (it means we can use varchar2 field for it),
    however, sometimes it should longer than 4000 characters.
    i think, i could have two options,
    the first, i cut it into peices with no one can be longer than 4000, nevertheless, this method will face difficult to provide full-text search.
    the other is to build a new table with clob field, the original table will involve a field of varchar2, the other field of number will be a reference guild the the clob table.
    if the record's text long do not over 4000, it will record in the field of varchar2 as usual, once it is longer than 4000, it will be stored in the clob field in other table.i can get it with the guild field(index).
    so i can provide full-text search functions for this type of record, and much storage space can be saved.
    However, i do not know whether i am doing on a right way or in a foolish way, may be some other wise method can do simply . that what i want to question on you.
    thank you very much.
    frederick

    No, I don't have tables of values. I have a java 1.5 enumeration, like for instance:
    public enum VelocityConvention {
       RELATIVISTIC,
       REDSHIFT;
    }and a class Velocity that contains a convention and a value like so:
    public class Velocity {
       public VelocityConvention getConvention() {...}
       public double getValue() {...}
       public void set(VelocityConvention conv, double value) {...}
    }When I persist the Velocity class to the database, I want a field called convention that holds the appropriate value of the enumeration. That much is done how I explained before.
    I want to have a selectOneMenu for setting the convention. Via trial and error, I found that MyFaces wasn't able to automatically convert from a string back to a proper VelocityConvention enum constant. It can, of course, convert from the enum to a string because it just calls toString(). But I need both directions for any UIInput element I use, be it a selectOne, or just a straight inputText.

  • Fetch VARCHAR2 from CLOB

    Hi,
    I have a plsql function which returns CLOB.(xml format)
    How do i convert the output CLOB to VARCHAR2 and select the function from a SELECT query.
    The returned output CLOB has more than 4000 characters.
    Using DBMS_LOB.SUBSTR only first 4000 characters are extracted , if we go for a larger value it gives a error.
    SELECT DBMS_LOB.SUBSTR((Getswiftmsgtagsappended_New(10,2,4,'SWIFT','103')),4000,1) FROM dual
    How to resolve this.
    Thanks.

    A-K wrote:
    Hi,
    Could you please tell as to what 'amount' and 'offset' mean in the following definition of dbms_lob.substr ?
    dbms_lob.substr(
    lob_loc IN CLOB CHARACTER SET ANY_CS,
    amount IN INTEGER := 32767,
    offset IN INTEGER := 1)
    RETURN VARCHAR2 CHARACTER SET lob_loc%CHARSET;
    Thanks.amount=> how much
    offset=>from what position
    Example
    SQL> declare
      2          aclob clob;
      3          avc2 varchar2(32767);
      4  begin
      5          aclob:=lpad('X',32767,'X')||lpad('M',32767,'M');
      6          dbms_output.put_line('clob Len:'||dbms_lob.getlength(aclob));
      7          avc2:=dbms_lob.substr(aclob,4000,32767);
      8          dbms_output.put_line('Vc2 Len:'||length(avc2));
      9          dbms_output.put_line('Vc2 disp:'|| substr(avc2,1,50));
    10          avc2:=dbms_lob.substr(aclob,20,32767);
    11          dbms_output.put_line('Vc2 Len:'||length(avc2));
    12          dbms_output.put_line('Vc2 disp:'|| substr(avc2,1,50));
    13  end;
    14  /
    clob Len:65534
    Vc2 Len:4000
    Vc2 disp:XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
    Vc2 Len:20
    Vc2 disp:XMMMMMMMMMMMMMMMMMMM
    PL/SQL procedure successfully completed.HTH
    SS

  • Converting in varchar2 to clob in select query

    Hi All,
    Help me in displaying vachar2 data and clob data one below the other. Following steps i had taken but failed to achieve any results on ora9.2.0.1.0.
    create table temp_ajay
    ename varchar2(20)
    create table temp_ajayx
    ename clob
    select to_clob(ename) from temp_ajay
    union
    select ename from temp_ajayx
    above gave
    select to_clob(ename) from temp_ajay * ERROR At line 1: Ora-00932: incoherent types of data: - waited; CLOB obtained
    as error.
    How do i resolve this? Pls help
    rgds,
    Ajay

    select to_nchar(ename) from temp_ajay
    union
    select to_nchar(ename) from temp_ajayx;
    or
    select to_char(ename) from temp_ajay
    union
    select to_char(ename) from temp_ajayx;Message was edited by:
    Jameel

  • Error reading data from CLOB column into VARCHAR2 variable

    Hi all,
    Am hitting an issue retrieving data > 8K (minus 1) stored in a CLOB column into a VARCHAR2 variable in PL/SQL...
    The "problem to be solved" here is storing DDL, in this case a "CREATE VIEW" statement, that is longer than 8K for later retrieval (and execution) using dynamic SQL. Given that the EXECUTE IMMEDIATE statement can take a VARCHAR2 variable (up to 32K(-1)), this should suffice for our needs, however, it seems that somewhere in the process of converting this VARCHAR2 text to a CLOB for storage, and then retrieving the CLOB and attempting to put it back into a VARCHAR2 variable, it is throwing a standard ORA-06502 exception ("PL/SQL: numeric or value error"). Consider the following code:
    set serveroutput on
    drop table test1;
    create table test1(col1 CLOB);
    declare
    cursor c1 is select col1 from test1;
    myvar VARCHAR2(32000);
    begin
    myvar := '';
    for i in 1..8192 loop
    myvar := myvar || 'a';
    end loop;
    INSERT INTO test1 (col1) VALUES (myvar);
    for arec in c1 loop
    begin
    myvar := arec.col1;
    dbms_output.put_line('Read data of length ' || length(myvar));
    exception when others then
    dbms_output.put_line('Error reading data: ' || sqlerrm);
    end;
    end loop;
    end;
    If you change the loop upper bound to 8191, all works fine. I'm guessing this might have something to do with the database character set -- we've recently converted our databases over to UTF-8, for Internationalizion support, and that seems to have changed underlying assumptions regarding character processing...?
    As far as the dynamic SQL issue goes, we can probably use the DBMS_SQL interface instead, with it's EXECUTE procedure that takes a PL/SQL array of varchar2(32K) - the only issue there is reading the data from the CLOB column, and then breaking that data into an array but that doesn't seem insurmountable. But this same basic issue (when a 9K text block, let's say, turns into a >32K block after being CLOBberred) seems to comes up in other text-processing situations also, so any ideas for how to resolve would be much appreciated.
    Thanks for any tips/hints/ideas...
    Jim

    For those curious about this, here's the word from Oracle support (courtesy of Metalinks):
    RESEARCH
    ========
    Test the issue for different DB version and different characterset.
    --Testing the following PL/SQL blocks by using direct assignment method(myvar := arec.col1;) on
    different database version and different characterset.
    SQL>create table test1(col1 CLOB);
    --Inserting four CLOB data into test1.
    declare
    myvar VARCHAR2(32767);
    begin
    myvar := RPAD('a',4000);
    INSERT INTO test1 (col1) VALUES (myvar);
    myvar := RPAD('a',8191);
    INSERT INTO test1 (col1) VALUES (myvar);
    myvar := RPAD('b',8192);
    INSERT INTO test1 (col1) VALUES (myvar);
    myvar := RPAD('c',32767);
    INSERT INTO test1 (col1) VALUES (myvar);
    commit;
    end;
    --Testing the direct assignment method.
    declare
    cursor c1 is select col1, length(col1) len1 from test1;
    myvar VARCHAR2(32767);
    begin
    for arec in c1 loop
    myvar := arec.col1;
    --DBMS_LOB.READ(arec.col1, arec.len1, 1, myvar);
    dbms_output.put_line('Read data of length: ' || length(myvar));
    end loop;
    end;
    The following are the summary of the test results:
    ===================================
    1. If the database characterset is WE8ISO8859P1, then the above direct assignment
    method(myvar := arec.col1;) works for database version 9i/10g/11g without any
    errors.
    2. If the database characterset is UTF8 or AL32UTF8, then the above direct assignment method(myvar := arec.col1;) will generate the "ORA-06502:
    PL/SQL: numeric or value error" when the length of the CLOB data is greater
    than 8191(=8K-1). The same error can be reproduced across all database versions
    9i/10g/11g.
    3. Using DBMS_LOB.READ(arec.col1, arec.len1, 1, myvar) method to read CLOB data into a VARCHAR2 variable works for both WE8ISO8859P1 and UTF8
    characterset and for all database versions.
    So - it seems as I'd surmised, UTF8 changes the way VARCHAR2 and CLOB data is handled. Not too surprising, I suppose - may you all be lucky enough to be able to stay away from this sort of issue. But - the DBMS_LOB.READ workaround is certainly sufficient for the text processing situations we find ourselves in currently.
    Cheers,
    Jim C.

  • CLOB to VARCHAR2

    I NEED TO CONVERT A VARCHAR2 TO CLOB AND VICE VERSA.
    THANK YOU.

    If you expect to convert the VARCHAR2 data into CLOB in table, you may directly save into that table CLOB column; If you want to save CLOB data into VARCHAR2 cloumn, then I don't feel it is feasible.
    There is DBMS_LOB package, I doubt it to allow the convert CLOB back to VARCHAR2 even though it have procedures of SUBSTR(), TRIM() ...

  • Converting varchar2 to BLOB or converting CLOB to BLOB

    Hi i am using a table where i have to convert a field currently existing as a varchar2 or CLOB to a BLOB field.
    while doing this i also have to preserve the data currently existing in the table.
    Please help.
    Thanks

    CLOB to a BLOB CREATE OR REPLACE FUNCTION clob_to_blob (clob_in IN CLOB) RETURN BLOB AS
    v_blob BLOB;
    v_varchar RAW(32001);
    v_varchar1 RAW(32001);
    v_start INTEGER := 1;
    v_buffer INTEGER := 32001;
    BEGIN
    DBMS_LOB.CREATETEMPORARY(v_blob, TRUE);
    FOR i IN 1..CEIL(DBMS_LOB.GETLENGTH(clob_in) / v_buffer) LOOP
    DBMS_LOB.READ(clob_in,v_buffer,v_start,v_varchar);
    DBMS_LOB.WRITEAPPEND(v_blob, utl_raw.length(v_varchar), v_varchar);
    v_start := v_start + v_buffer;
    END LOOP;
    RETURN v_blob;
    END clob_to_blob;
    /

  • Alter varchar2 column to clob

    Hi all,
    have a table like :
    create table test(col1 varchar2(20),col2 number); -- with data
    now i have to change col1 to clob.
    alter table test modify col1 clob; ... is not working..
    can i change the data type to clob without dropping the table .. as it contains huge data.. i will take a lot of time repopulating it..

    Hi,
    You can cant modify from VARCHAR2 to CLOB but you can achieve your result like this:
    1. Add a new column as CLOB
    2. UPDATE varchar date to CLOB column;
    3. DROP VARCHAR column
    4. Rename CLOB column to VARCHAR column name
    SQL>CREATE TABLE t ( name VARCHAR2(20), age number(3));
    Table created.
    SQL>INSERT INTO t VALUES('aaa',20);
    1 row created.
    SQL>INSERT INTO t VALUES('bbb',30);
    1 row created.
    SQL>COMMIT;
    Commit complete.
    SQL>ALTER TABLE t MODIFY name CLOB;
    ALTER TABLE t MODIFY name CLOB
    ERROR at line 1:
    ORA-22858: invalid alteration of datatype
    SQL>ALTER TABLE t ADD tmp_name CLOB;
    Table altered.
    SQL>UPDATE t SET tmp_name=name;
    2 rows updated.
    SQL>
    SQL>ALTER TABLE t DROP COLUMN name;
    Table altered.
    SQL>
    SQL>ALTER TABLE t RENAME COLUMN tmp_name to name;
    Table altered.
    SQL>
    SQL>desc T;
    Name                                                  Null?    Type
    AGE                                                            NUMBER(3)
    NAME                                                           CLOB
    SQL>SELECT * FROM  v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    PL/SQL Release 9.2.0.6.0 - Production
    CORE    9.2.0.6.0       Production
    TNS for Solaris: Version 9.2.0.6.0 - Production
    NLSRTL Version 9.2.0.6.0 - Production
    5 rows selected.
    SQL>Regards

  • Performance issue.... ( varchar2 - clob ).

    Hi all,
    I have a table ( data ) with the following configuration :
    id number(10),
    value charchar2(500)
    I need to convert the value field from type varchar2 to clob.
    for that I done the following:
    SQL>create table temp as select * from data;
    Table created.
    SQL>truncate table data;
    SQL>alter table data drop ( value );
    SQL>alter table data add ( value clob );
    SQL>alter table data move LOB(value) store as ( tablespace LOB disable storage in row nochace nologging );
    SQL>alter table data nologging;
    SQL>insert into data select * from temp;
    The first step took 1 min. ( i have 2700000 records );
    but the last step take ages...
    Can anyone get a clue of why it is soooo slow ? ( maybe the "on the fly" conversion from varchar2 to clob ? )
    Thanks,
    Roye Avidor

    the /*+ APPEND */ hint doesn't make it faster.
    nice try :)

  • Using CLOB as a VARCHAR2 to write a string

    Hello everyone:
    I have this situation:
    After a query, i need to order the query rows in a table. To do this, i write a string using HTML format. Then, i send the string (message) by email, and i save the same in a table (database).
    The message, must be 32767 as a maximun number of characters. Because, the message is a VARCHAR2.
    When the number of characters is greater than 32767, in can't use this way.
    So, i trying to use a CLOB datatype, but i don't know how to write the string and then, send it by email.
    I wrote this code:
    xSGLOSA_UNO$ CLOB;
    xSGLOSA_UNO$ := '<table border="1"><tr>FECHA DE PROCESOS CORRECTAS</tr>';
    xSGLOSA_UNO$ := xSGLOSA_UNO$ || '<tr><td>Rut Operador</td><td>Nombre</td><td>Proceso</td><td>Fecha Proceso</td></tr>';
    BEGIN
    FOR CONSULTA_UNO IN(
    SELECT
    FPR_NRUTOPERADOR,
    OPE_SNOMBRE,
    FPR_SCODPROCESO,
    FPR_DFHOPROCESO
    FROM
    FECHAS_PROCESO,
    OPERADOR
    WHERE
    TRUNC(FPR_DFHOPROCESO) = TRUNC(SYSDATE)
    LOOP
    xSGLOSA_UNO$ := xSGLOSA_UNO$ ||  '<tr><td>' || CONSULTA_UNO.FPR_NRUTOPERADOR || '</td><td>' || CONSULTA_UNO.OPE_SNOMBRE || '</td><td>' || CONSULTA_UNO.FPR_SCODPROCESO || '</td><td>' || CONSULTA_UNO.FPR_DFHOPROCESO || '</td></tr>';
    END LOOP;
    xSGLOSA_UNO$ := xSGLOSA_UNO$ || '</table>';
    EXCEPTION
    WHEN OTHERS THEN
    NUMERROR$ := SQLCODE;
    MSJERROR$ := '[NES$FECHA_PROCESOS] FECHAS CORRECTAS (' || SQLERRM || ')';
    RETURN;
    END;
    And i have this error:
    [NUMERROR$:=-6502], [MSJERROR$:=[NES$FECHA_PROCESOS] FECHAS CORRECTAS (ORA-06502: PL/SQL: error  numérico o de valor)]
    Please, help me with this issue. I am new in Oracle, and i don't have idea the real reason for this.
    Thank you for support.

    Now... when you do things like:
    xSGLOSA_UNO$ := xSGLOSA_UNO$ || '</table>';
    then you are concatenating a CLOB (xSGLOSA_UNO$) to a VARCHAR2 ('</table>') which can be done by either convert the clob to varchar2 or the varchar2 to clob before concatenating. || is a overloaded function which accepts two varchar2 or two clob parameters (amongst others). As the CLOB gets bigger than 32k you cannot just let oracle decide how to convert so, you should do:
    xSGLOSA_UNO$ := xSGLOSA_UNO$ || TO_CLOB('</table>');
    instead.
    And this at every place where you concatenate
    eg here too:
    xSGLOSA_UNO$ := xSGLOSA_UNO$ || TO_CLOB('<tr><td>') || CONSULTA_UNO.FPR_NRUTOPERADOR || TO_CLOB('</td><td>') || CONSULTA_UNO.OPE_SNOMBRE || TO_CLOB('</td><td>') || CONSULTA_UNO.FPR_SCODPROCESO || TO_CLOB('</td><td>') || CONSULTA_UNO.FPR_DFHOPROCESO || TO_CLOB('</td></tr>');
    I don't know the datatypes of CONSULTA_UNO.FPR_NRUTOPERADOR and the other components used...if they are VARCHAR then convert, if they are CLOB then let them like they are.
    hth

Maybe you are looking for

  • How to create an arrow in a table

    How to create an arrow in a table in numbers. If you have plus or minus numbers, I want to know a green arrow on the increase is positively or a red arrow if it is negative number

  • Bonjour/Rendezvous support under OS 9

    Is there any way to add support for Bonjour/Rendezvous under OS 9? Does anyone know of an extension or control panel that will do this? I occasionally need to print from Classic mode. Our old Appletalk laser printer, which was on our home network, di

  • How to handel material locking in WM

    Dear Experts Our warehouse is managed by warehouse management and we face a problem  when one of the stock keepers  post goods issue with reference to sales order from the warehouse  while another on is performing a goods receipt at  the same time  a

  • 24" Cinema Display flickering and eventually going dark

    I am having a repeat of a problem with my Apple 24" Cinema Display. The symptoms are the display will go black and come back on (flicker) and sometimes it takes a few seconds for it to come back. All USB devices connected to the Cinema Display become

  • Help or the iPOD gets it...

    Please help. I can't get songs from iTUNES into iPOD. The message says that the iPOD is linked to a different library. I have no idea what that means...I just want to put some songs on my iPOD.