CLOB to NCLOB conversion in Oracle 9i

Hi,
I have a table with 8 million records. The table has a clob column that has to be converted in to a nclob column. I have writtten a procedure for the clob to nclob conversion using cursors and the limit functionality.The procedure is given as follows:
CREATE OR REPLACE PROCEDURE pr_clob_to_nclob is
TYPE type_dockey IS TABLE OF inf_doc_store.ds_doc_key%TYPE INDEX BY PLS_INTEGER;
l_type_dockey type_dockey;
TYPE type_rowid IS TABLE OF VARCHAR(100) INDEX BY PLS_INTEGER;
l_type_rowid type_rowid;
L_NUMERRORS NUMBER := 0;
E_BULKINS_ILCHIS_EXCEPTION EXCEPTION;
E_BULKINS_ELCHIS_EXCEPTION EXCEPTION;
E_BULKINS_ILCTXN_EXCEPTION EXCEPTION;
E_BULKINS_ELCTXN_EXCEPTION EXCEPTION;
L_ERR_MESSAGE INF_ERROR_LOG.ERROR_TEXT%TYPE;
L_FILE UTL_FILE.FILE_TYPE;
CURSOR l_doc_store IS SELECT ds_doc_key,rowid from inf_doc_store where ds_doc_content1 is null;
BEGIN
--OPEN l_doc_store FOR 'select ds_doc_key,rowid from inf_doc_store1';
OPEN l_doc_store;
LOOP
FETCH l_doc_store BULK COLLECT INTO l_type_dockey,l_type_rowid LIMIT 5000;
BEGIN
FORALL docidx IN 1 .. l_type_dockey.COUNT SAVE EXCEPTIONS
UPDATE inf_doc_store SET DS_DOC_CONTENT1 = TO_NCLOB(DS_DOC_CONTENT)
WHERE ROWID =l_type_rowid(docidx);
EXCEPTION
WHEN OTHERS THEN
L_NUMERRORS := SQL%BULK_EXCEPTIONS.COUNT;
FOR IDX IN 1 .. L_NUMERRORS LOOP
L_ERR_MESSAGE := 'on bulk insert : Error in Doc key << ' ||
l_type_dockey(IDX) || ' >> index << ' ||
SQL%BULK_EXCEPTIONS(IDX)
.ERROR_INDEX || ' IS ' ||
SQLERRM(0 - SQL%BULK_EXCEPTIONS(IDX)
.ERROR_CODE) || ' >>';
PKG_INF_COMMON.PR_LOG_ERROR('CLOB_TO_NCLOB Migration',
'inf_doc_store',
L_ERR_MESSAGE,
'NA');
PKG_INF_COMMON.PR_UTL_PUTLINE(L_FILE,
L_ERR_MESSAGE,
'NA');
END LOOP;
PKG_INF_COMMON.PR_UTL_FCLOSE(L_FILE, 'inf_doc_store_updation');
RAISE E_BULKINS_ILCHIS_EXCEPTION;
END;
COMMIT;
EXIT WHEN l_doc_store%NOTFOUND;
END LOOP;
CLOSE l_doc_store;
END pr_clob_to_nclob;
The table in which the clob column is to be converted is inf_doc_header.
The above procedure runs successfully but takes more than 48 hours to convert all the records.
Can any body suggest me a way to optimise the procedure?
Regards,
Siddarth

Hi,
I have a table with 8 million records. The table has a clob column that has to be converted in to a nclob column. I have writtten a procedure for the clob to nclob conversion using cursors and the limit functionality.The procedure is given as follows:
CREATE OR REPLACE PROCEDURE pr_clob_to_nclob is
TYPE type_dockey IS TABLE OF inf_doc_store.ds_doc_key%TYPE INDEX BY PLS_INTEGER;
l_type_dockey type_dockey;
TYPE type_rowid IS TABLE OF VARCHAR(100) INDEX BY PLS_INTEGER;
l_type_rowid type_rowid;
L_NUMERRORS NUMBER := 0;
E_BULKINS_ILCHIS_EXCEPTION EXCEPTION;
E_BULKINS_ELCHIS_EXCEPTION EXCEPTION;
E_BULKINS_ILCTXN_EXCEPTION EXCEPTION;
E_BULKINS_ELCTXN_EXCEPTION EXCEPTION;
L_ERR_MESSAGE INF_ERROR_LOG.ERROR_TEXT%TYPE;
L_FILE UTL_FILE.FILE_TYPE;
CURSOR l_doc_store IS SELECT ds_doc_key,rowid from inf_doc_store where ds_doc_content1 is null;
BEGIN
--OPEN l_doc_store FOR 'select ds_doc_key,rowid from inf_doc_store1';
OPEN l_doc_store;
LOOP
FETCH l_doc_store BULK COLLECT INTO l_type_dockey,l_type_rowid LIMIT 5000;
BEGIN
FORALL docidx IN 1 .. l_type_dockey.COUNT SAVE EXCEPTIONS
UPDATE inf_doc_store SET DS_DOC_CONTENT1 = TO_NCLOB(DS_DOC_CONTENT)
WHERE ROWID =l_type_rowid(docidx);
EXCEPTION
WHEN OTHERS THEN
L_NUMERRORS := SQL%BULK_EXCEPTIONS.COUNT;
FOR IDX IN 1 .. L_NUMERRORS LOOP
L_ERR_MESSAGE := 'on bulk insert : Error in Doc key << ' ||
l_type_dockey(IDX) || ' >> index << ' ||
SQL%BULK_EXCEPTIONS(IDX)
.ERROR_INDEX || ' IS ' ||
SQLERRM(0 - SQL%BULK_EXCEPTIONS(IDX)
.ERROR_CODE) || ' >>';
PKG_INF_COMMON.PR_LOG_ERROR('CLOB_TO_NCLOB Migration',
'inf_doc_store',
L_ERR_MESSAGE,
'NA');
PKG_INF_COMMON.PR_UTL_PUTLINE(L_FILE,
L_ERR_MESSAGE,
'NA');
END LOOP;
PKG_INF_COMMON.PR_UTL_FCLOSE(L_FILE, 'inf_doc_store_updation');
RAISE E_BULKINS_ILCHIS_EXCEPTION;
END;
COMMIT;
EXIT WHEN l_doc_store%NOTFOUND;
END LOOP;
CLOSE l_doc_store;
END pr_clob_to_nclob;
The table in which the clob column is to be converted is inf_doc_header.
The above procedure runs successfully but takes more than 48 hours to convert all the records.
Can any body suggest me a way to optimise the procedure?
Regards,
Siddarth

Similar Messages

  • Alter table reaching the max number of char 4000, CLOB? NCLOB?

    I have a column is a table defined as a VARCHAR2(4000)
    I try to alter the table
    alter table sybaapc
    MODIFY  SYBAAPC_EXTRACURRICULAR VARCHAR2(5000)but it give me this error
    ORA-00910: specified length too long for its datatype
    I want the users to be able to enter more information on that column.
    It seems that 4000 is the max we are in Oracle 10g
    can I changed to CLOB or nclob, we already have data in that table?
    What are the implications of changing it to clob or nclob,

    Thats becuase the maximum character length for a table column is 4000.
    Alternatively you can:
    SQL> create table test_1 (col1 VARCHAR2(4000))
      2  /
    Table created.
    SQL> insert into test_1 values(RPAD('*',4000,'*'));
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> alter table test_1 modify (col1 clob);
    alter table test_1 modify (col1 clob)
    ERROR at line 1:
    ORA-22858: invalid alteration of datatype
    SQL> alter table test_1 add(col2 clob);
    Table altered.
    SQL> update test_1 set col2 = col1;
    1 row updated.
    SQL> commit;
    Commit complete.
    SQL> alter table test_1 drop column col1;
    Table altered.
    SQL> alter table test_1 rename column col2 to col1;
    Table altered.
    SQL> desc test_1
    Name                                                  Null?    Type
    COL1                                                           CLOB
    SQL>
    SQL> select * from test_1;
    COL1
    SQL> Edited by: AP on Aug 24, 2010 7:41 AM

  • CLOB vs NCLOB

    Hi Everyone,
    Would should be the deciding factor to choose between using a CLOB or NCLOB.
    Thank you

    Why read answer here when you can read answer there (below)
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements001.htm#sthref172
    Edited by: sb92075 on Jun 15, 2010 6:26 PM

  • What are the most challenging conversions in Oracle apps...

    Can any one tell me what are the most challenging conversions in oracle apps.
    Thanks
    Sambit

    d1acf245-8019-40c9-a1df-fdc9374b36b2 wrote:
    Can any one tell me what are the most challenging conversions in oracle apps.
    Thanks
    Sambit
    https://forums.oracle.com/message/10705767
    Thanks,
    Hussein

  • URGENT:currency conversion from oracle financials 10.7 to 11i

    Hey all, Any one has the idea about the currency conversion from oracle financials 10.7 to 11i?? how to handle it?? do we need seperate code for currency conversion or is there any software that we can use??

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Shenba ([email protected]):
    Hey all, anyone has idea how the currency conversion is handled during upgrade of
    for oracle financials 10.7 to 11i. Is there any software available or do we need to do coding for currency conversion.
    Thanks<HR></BLOCKQUOTE>
    null

  • NoSuchFieldError: conversion with Oracle 10g?

    I'm getting the following after re-running some code that worked with 9i, but doesn't with 10g. It's on a simple XMLType.createXML(Connection, Document) call. I'm using the new ojdbc14.jar that came with the Oracle10g bundle. Any ideas?
    java.lang.NoSuchFieldError: conversion
         at oracle.xdb.XMLType.<init>(XMLType.java:617)
         at oracle.xdb.XMLType.createXML(XMLType.java:706)
         at oracle.xdb.XMLType.createXML(XMLType.java:1112)
         at com.aa.rpt.apps.bsa.automation.util.BSASQLController.updatePNR(BSASQLController.java:142)
         at com.aa.rpt.apps.bsa.automation.PNRDataPopulator.run(PNRDataPopulator.java:78)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
         at java.lang.Thread.run(Unknown Source)

    yes. but using the new xdb.jar and xmlparserv2.jar that came with the 10g bundle seems to have solved my problem.

  • Conversion of oracle forms 4.5 into oracle forms 9i

    Hi Gurus!
    Its becoming a bit more difficult for me to find the solutoin of the following problem!
    Scenario is that i have a form developed in oracle forms 4.5, after conversion in oracle forms 9i, i am getting fixed as,
    I have two text items say item1 and item2, item2's "Synchronize with item" property is set to "item1" and there is also a
    WHEN-VALIDATE-ITEM trigger on item2, and as u know in 9i forms WHEN-VALIDATE-ITEM trigger on child item in this case item2 is
    ignored, now if i move that trigger to item1(in this case the master item) then trigger is fired but then the business
    logic/flow change as originally i didnt require any WHEN-VALIDATE-ITEM trigger on master item i.e item1
    So wot should i do to resolve this problem/situation?
    Plz let me know if i have conveyed successfully!
    Thanx in advance!

    Hi my company specialises in doing exactly this.
    Please look at our web site www.transenigma.co.uk to see out conversion tools. We can take you from Forms v2 right htrough to Forms 6i web forms, and anywhere in between.
    If we can help you, please send us an email.
    Tony

  • XML data from BLOB to CLOB - character set conversion

    Hi All,
    I'm trying to solve a problem with a character set conversion in PL/SQL in the following scenario:
    1. source is an XML as a BLOB variable.
    2. target is an XML as a CLOB variable.
    3. the problem I have is the following:
    - database character set is set to UTF-8
    - XML character set could be anything (UTF-8, ISO 8859-1, ISO 8859-2, ASCII, ...)
    - I need to write a procedure which converts the source BLOB content into the target CLOB taking into account the XML encoding and converts it into the DB default character set (UTF8).
    I've been able to implement a simple conversion function. However, this function expects static XML encoding ISO-8859-1. The main part of the function looks as follows:
    buffer := UTL_RAW.cast_to_varchar2(
    UTL_RAW.convert(
    DBMS_LOB.SUBSTR(source_blob_variable, 16000, pos)
    , 'American_America.UTF8'
    , 'American_America.we8iso8859p1')
    Does anyone have an idea how to rewrite the code to handle "any" XML encoding in the source BLOB file? In other words, is there a function in Oracle which converts XML character set names into Oracle character set values (ISO-8859-1 to we8iso8859p1, UTF-8 to UTF8, ...)?
    Thanks a lot for any help.
    Julius

    I want to pass a BLOB to some "createXML" procedure and get a proper XMLType in UTF8 character set, properly converted from whatever character set is the input in.As per documentation the generated XML has always the encoding set at the client side depending on NLS_LANG (default UTF-8), regardless of the input encoding, so I don't see a need to parse the PI of the XML:
    C:\>echo %NLS_LANG%
    %NLS_LANG%
    C:\>sqlplus
    SQL*Plus: Release 11.1.0.6.0 - Production on Wed Apr 30 08:54:12 2008
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> var cur refcursor
    SQL>
    SQL> declare
      2     b   blob := utl_raw.cast_to_raw ('<a>myxml</a>');
      3  begin
      4     open :cur for select xmlroot (xmltype (utl_raw.cast_to_varchar2 (b))) xml from dual;
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> print cur
    XML
    <?xml version="1.0" encoding="UTF-8"?><a>myxml</a>
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    C:\>set NLS_LANG=GERMAN_GERMANY.WE8ISO8859P1
    C:\>sqlplus
    SQL*Plus: Release 11.1.0.6.0 - Production on Mi Apr 30 08:55:02 2008
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    SQL> var cur refcursor
    SQL>
    SQL> declare
      2     b   blob := utl_raw.cast_to_raw ('<a>myxml</a>');
      3  begin
      4     open :cur for select xmlroot (xmltype (utl_raw.cast_to_varchar2 (b))) xml from dual;
      5  end;
      6  /
    PL/SQL-Prozedur erfolgreich abgeschlossen.
    SQL>
    SQL> print cur
    XML
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <a>myxml</a>

  • CLOB to VARCHAR2 conversion and limit of 8192 chars

    Hello, I have the folowing code which works on Oracle 10g SE but does not on XE:
    DECLARE
        d1 varchar2(32000);
    BEGIN
        d1 := to_char(substr(MY_FUNC_RETURNING_CLOB, 1, 8192));
    END;This ends with "ORA-06502: PL/SQL: numeric or value error." Only CLOBs shorter then 8192 works... (well the SUBSTR function is there just because of testing the maximum length of CLOB that does not fail).
    Is this my mistake, a bug in XE or some XE limitation (using UTF-8 version of XE)?
    Thanks for any hints!

    Well, it seem that conversion between CLOB and VARCHAR is done within UCS4 or something... Function MY_FUNC_RETURNING_CLOB returns SQL query (for subsequent EXECUTE IMMEDIATE command) and contains only ASCII characters and therefore should be 1char=1byte in UTF-8? I did a following workaround, which works pretty well for me (CLOBs are about 16000 chars long in my case)
    DECLARE
        d1 varchar2(32000);
        c1 varchar2(32000);
        c2 varchar2(32000);
        c3 varchar2(32000);
        c4 varchar2(32000);
    BEGIN
        c1 :=to_char(substr(MY_FUNC_RETURNING_CLOB, 0*8192, 8191));
        c2 :=to_char(substr(MY_FUNC_RETURNING_CLOB, 1*8192, 8191));
        c3 :=to_char(substr(MY_FUNC_RETURNING_CLOB, 2*8192, 8191));
        c4 :=to_char(substr(MY_FUNC_RETURNING_CLOB, 3*8192, 8191));
        d1 := c1 || c2 || c3 || c4;
    END;

  • How to call CLOB to BLOB conversion function within stored procedure?

    I have a tiny APEX application from which I need to be able to print. I’ve used these two resources: (Is there an inexpensive APEX report printer for invoices/checks/statements? and http://download.oracle.com/docs/cd/E14373_01/appdev.32/e13363/up_dn_files.htm#CJAHDJDA)
    I guess that in order to be able to download the RTF document stored in CLOB, I need to convert it into BLOB. I’ve found this function for this purpose on Oracle forums:
    CREATE OR REPLACE FUNCTION     c2b( c IN CLOB ) RETURN BLOB
    -- typecasts CLOB to BLOB (binary conversion)
    IS
              pos PLS_INTEGER := 1;
              buffer RAW( 32767 );
              res BLOB;
              lob_len PLS_INTEGER := DBMS_LOB.getLength( c );
    BEGIN
         DBMS_LOB.createTemporary( res, TRUE );
         DBMS_LOB.OPEN( res, DBMS_LOB.LOB_ReadWrite );
    LOOP
         buffer := UTL_RAW.cast_to_raw( DBMS_LOB.SUBSTR( c, 16000, pos ) );
         IF          UTL_RAW.LENGTH( buffer ) > 0
         THEN
                   DBMS_LOB.writeAppend( res, UTL_RAW.LENGTH( buffer ), buffer );
         END IF;
         pos := pos + 16000;
         EXIT WHEN pos > lob_len;
    END LOOP;
    RETURN res; -- res is OPEN here
    END c2b;And I am trying to use it in the modified download procedure that I also have found on Oracle forums:
    CREATE OR REPLACE PROCEDURE DOWNLOAD_WO(v_id IN NUMBER)
    AS
            v_mime          VARCHAR2(48);
            v_length     NUMBER;
            v_file_name     VARCHAR2(2000):= 'WO_Download.rtf';
            lob_loc          CLOB;
              v_blob      BLOB;
              v_company        jobs_vw.company%TYPE;
              v_project        jobs_vw.project%TYPE;
              v_description     jobs_vw.description%TYPE;
              v_date_          jobs_vw.date_%TYPE;
              v_job_no          jobs_vw.job_no%TYPE;
              v_apqwo               jobs_vw.apqwo%TYPE;
    --          v_mime           VARCHAR2(48) := 'application/msword';
    BEGIN
            SELECT     mime_type, report, DBMS_LOB.GETLENGTH(report)
              INTO     v_mime,lob_loc,v_length
              FROM     report_layouts
              WHERE     rl_id = 22332925279634283;
    -- JOB_VW record:
        SELECT     job_no
                   ,date_
                   ,description
                   ,apqwo
                   ,project
                   ,company       
         INTO     v_job_no
                   ,v_date_
                   ,v_description
                   ,v_apqwo
                   ,v_project
                   ,v_company
         FROM     jobs_vw
         WHERE     id = 214;
    -- Replace holders with actual values:
        lob_loc := REPLACE(lob_loc, '#COMPANY#', v_company);
        lob_loc := REPLACE(lob_loc, '#PROJECT#', v_project);
        lob_loc := REPLACE(lob_loc, '#DESCRIPTION#', v_description);
        lob_loc := REPLACE(lob_loc, '#DATE_#', TO_CHAR(v_date_, 'DD/MM/YYYY'));
        lob_loc := REPLACE(lob_loc, '#JOB_NO#', v_job_no);
        lob_loc := REPLACE(lob_loc, '#APQWO#', v_apqwo);
                  -- set up HTTP header
                        -- use an NVL around the mime type and
                        -- if it is a null set it to application/octect
                        -- application/octect may launch a download window from windows
                        owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
                    -- set the size so the browser knows how much to download
                    htp.p('Content-length: ' || v_length);
                    -- the filename will be used by the browser if the users does a save as
                    htp.p('Content-Disposition:  attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
                    -- close the headers           
                    owa_util.http_header_close;
                    -- download the BLOB
    --                wpg_docload.download_file( Lob_loc );
                             v_blob := c2b(lob_loc);
                             wpg_docload.download_file( v_blob );
    end DOWNLOAD_WO;
    /Unfortunately when I try to compile the download_wo stored procedure I am getting this error:
    Error at line 64: PL/SQL: Statement ignoredThe 64th line is:
    v_blob := c2b(lob_loc);How should I correctly call c2b within download_wo? Any advice is greatly appreciated.
    Thank you for your time.
    Daniel

    Hello there,
    Well, its invalid :(
    Object C2B is Invalid. I didn't know since when I run the create ... function, I only get this feedback:
    Statement processed.
    0.19 secondsI am investigating.
    Daniel

  • Conversion of oracle 10g character (.txt) reports to bitmap (.pdf)

    Hi,
    I have two queries:
    1) I want to convert oracle 10g bitmap (.rtf) reports to bitmap (.pdf) reports. I can do it by converting desformat. But the problem is .rtf reports have PAGESIZE 13 inches x 11 inches. After conversion to .pdf I need to have A4 size (11.7 x 8.3) . This also I can do it manually by changing width and height. But the issue is I'm getting error that : some object is out of body. So I have to change the marging of each and every report manually by trail & error method. Which is consuming lot of time.
    So any one please provide me solution so that I can generate .pdf report in A4 format with out any issues. (By changing any class files, etc..)
    2) I want to convert character(.txt) reports to bitmap (.pdf) reports. Again its having same problem as mentioned in (1). So any shortcut or any method for doing it.
    Please let me know whatever you know abt this issue.
    Thanks in Advance

    Don't think there are any shortcuts you can convert 13x11 to 11.7x8.3 without modification of the layout. changes or moves of the frames/fields are expected if they are beyond 11.7x8.3.

  • Conversion of Oracle Reports to BI Publishser.

    Hi,
    When trying to convert the oracle report to BI publisher using the conversion utility Iam encountering the below error.
    Exception in thread "main" java.lang.UnsupportedClassVersionError: oracle/apps/x
    do/rdfparser/BIPBatchConversion (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    The below steps I followed
    1) copied all necessary .jar files to the D:\jdev\project folder
    2) Set the classpath
    3) set the path and class path with correct java home C:\Program Files\Java\jre1.6.0\lib
    ran the below command to convert the .xml file created using the report converter tool.
    D:\Jdev\project>java.exe -classpath aolj.jar;xdocore.jar;collections.jar;j5472959_xdo.zip;versioninfo.jar;xmlparserv2-904.jar oracle.apps.xdo.rdfparser.BIPBatchConversion -source d:\Desg\output -target d:\Desg\output -debug
    Any Suggestion is highly appreciated.
    Thanks.

    You have to change the system parameters :
    DESTFORMAT = Delimited
    DESNAME = c:\file.xls
    DESTYPE = FILE

  • CMP EJB CLOB/BLOB retrieval issues from Oracle through JBoss

    I have some EJB 2.0 CMP Entity Beans, deployed on a JBoss 3.07 application server.
    In some of my beans I have Strings that I would like to map to a CLOB in my database as the Strings could easily be more than 4000 characters, and some byte arrays that I would like to map to a BLOB in my database to store files.
    When I use PostgreSQL as my datastore in JBoss I can store and retrieve data from my CLOBs and BLOBs just fine.
    However when I use an Oracle 9i (9.0.1) database for my datastore, I can write the information to the CLOB/BLOB fields (I can see it when I manually check the tables), but for some reason I cannot retrieve the information when I load my beans. The fields that map to the CLOB/BLOB are null, and eventually resave themselves overwriting the data in the database.
    When I test using LONG RAW as a type it works perfectly, but LONG RAW is not a standard SQL type. I do not want to convert my beans to BMP, and also do not want to have any Oracle specific code in my beans to store retrieve my information. I need my beans to be completely database independant.
    Does anyone have any ideas what could be causing my retrieval problem and what I could do to fix it?

    I solved my problem.
    I am using XDoclet to generate my bean interfaces and xml files etc., and it generates the jbosscmp-jdbc.xml file for me.
    I forgot to add @jboss tags to my beans so that the jbosscmp-jdbc.xml file includes tags to overwrite the default cmp mapping (string to varchar) to be from string to clob for those specific long string fields that i want.

  • CLOB to BLOB conversion to save space

    Hi Gurus,
    I am having a table with a CLOB column which I am asked to convert into BLOB and in the process save some space. But I am finding even after the conversion, it is taking same amount of space as the previous CLOB column.
    Is there any way I can convert it to BLOB and/or save space in any way.
    Please let me know if there are any ways.
    Thanks
    Amitava.

    select * from v$version; -- it needs to be 11g+ Enterprise Edition;
    select * from v$option where parameter='Advanced Compression';
    But the best way, ask.  (on a piece of paper that requires a signature.)
    MK

  • Conversion of oracle report(RPT) to SQL*Reportwriter 1.1

    Hello,
    My client has setup of Oracle5.0,form2.3,Report in RPT format.
    He wish to upgrade this to Oracle 7.X , Forms3.0 and
    SQL*Reportwriter 1.1.
    I could convert Forms2.3 to Forms3.0 and upgraded the database
    to Oracle7.X by taking import of Version5.0 database....but I
    failed to upgrade Oracle reportwriter(in RPT format) to
    SQL*Reportwriter1.1..
    I will appreciate if any body can can expalin me steps to be
    followed for this(REPORT) upgradation..as I do beleive
    conversion is possible..
    I checked with manual but I am not clear...!!
    Regds,
    Pratip
    null

    hai pratip,
    there is no direct utility to convert rpt's to ver1.1 reports.
    we need to understand what exactly it is doing write the same
    thing in sqlreportwriter,other wise there is a thirdparty tool
    for conversion of rpt's to v1.1 reports.kumaran software is
    having that tool,if u want u can contact those people.
    friendly
    sarma
    Pratip Raychaudhuri (guest) wrote:
    : Hello,
    : My client has setup of Oracle5.0,form2.3,Report in RPT format.
    : He wish to upgrade this to Oracle 7.X , Forms3.0 and
    : SQL*Reportwriter 1.1.
    : I could convert Forms2.3 to Forms3.0 and upgraded the database
    : to Oracle7.X by taking import of Version5.0 database....but I
    : failed to upgrade Oracle reportwriter(in RPT format) to
    : SQL*Reportwriter1.1..
    : I will appreciate if any body can can expalin me steps to be
    : followed for this(REPORT) upgradation..as I do beleive
    : conversion is possible..
    : I checked with manual but I am not clear...!!
    : Regds,
    : Pratip
    null

Maybe you are looking for