Clob data type oracle to oracle issue

Hi Guys
i am unable to load clob data type and am getting the following error
" java.lang.NumberFormatException: For input "string: "4294967295"
i also have checked for clob data type in topology manager -- technology -- oracle -- data type
and it is available.
i have added the following statement in my parameter file
set ODI_ADDITIONAL_JAVA_OPTIONS=%ODI_ADDITIONAL_JAVA_OPTIONS% " -Doracledatabasemetadata.get_lob_precision=false";
but i don't see any statement like the one below after which i have to add the above statement.
set ODI_ADDITIONAL_JAVA_OPTIONS="-Djava.security.policy=server.policy";
please let me know how to make the clob data type work
Regards
janakiram

Hi Sutirtha
Yes i am able to view source data with clob data type by Right click onto your source datastore ---> View data
I have checked metalink
it says
1. Oracle recommends the setting of the "get_lob_precision" flag to FALSE to avoid this message when dealing with LOB family datatypes (CLOB, BLOB, NCLOB, BFILE...).
i have used the follwoing setting
set ODI_JAVA_OPTIONS="-Djava.security.policy=server.policy"
set ODI_ADDITIONAL_JAVA_OPTIONS=%ODI_ADDITIONAL_JAVA_OPTIONS% "-Doracledatabasemetadata.get_lob_precision=false"
2. checked the internal id of CLOB data type and it ends with 999
but still i have the same problem
Regards
janakiram

Similar Messages

  • CMP to insert CLOB Data in Oracle

    I have a CMP which tries to insert CLOB data into Oracle Database using XMLType column. We have tried multiple options
    1. Inserting String data into XMLType column - if the value is more than 4000 chars, it gives an error
    2. Inserting CLOB Data into XMLType column - Using the OracleCLob option in the deployment descriptor results in a SQLExcepotion Inconsistent datatype expected number found CLOB.
    Can anybody provide a solution to this problem?

    I have a CMP which tries to insert CLOB data into Oracle Database using XMLType column. We have tried multiple options
    1. Inserting String data into XMLType column - if the value is more than 4000 chars, it gives an error
    2. Inserting CLOB Data into XMLType column - Using the OracleCLob option in the deployment descriptor results in a SQLExcepotion Inconsistent datatype expected number found CLOB.
    Can anybody provide a solution to this problem?

  • Error while loading data into clob data type.

    Hi,
    I have created interface to load data from oracle table into oracle table.In target table we have attribute with clob data type. while loading data into clob field ODI gave below error. I use odi 10.1.3.6.0
    java.lang.NumberFormatException: For input string: "4294967295"
         at java.lang.NumberFormatException.forInputString(Unknown Source)
         at java.lang.Integer.parseInt(Unknown Source)
         at java.lang.Integer.parseInt(Unknown Source)
    Let me know if anyone come across and resolved this kind of issue.
    Thanks much,
    Nishit Gajjar

    Mr. Gajjar,
    You didnt mention what KMs you are using ?
    have a read of
    Re: Facing issues while using BLOB
    and
    Load BLOB column in Oracle to Image column in MS SQL Server
    Try again.
    And can you please mark the Correct/Helpful points to the answers too.
    Edited by: actdi on Jan 10, 2012 10:45 AM

  • Using CLOB data type - Pros and Cons

    Dear Gurus,
    We are designing a database that will be receiving comments from external data source. These comments are stored as CLOB in the external database. We found that only 1% of incoming data will be larger than 4000 characters and are now evaluating the Pros and Cons of storing only 4000 characters of incoming comments in VARCHAR2 data type or using CLOB data type.
    Some of the concerns brought up during discussion were:
    - having to store CLOBs in separate tablespace;
    - applications, such Toad require changing defaults settings to display CLOBs in the grid. Default value is not to display them;
    - applications that build web page with CLOBs will be struggling to fit 18 thousand chararcters of which 17 thousand are blank lines;
    - cashing CLOBs in memory will consume big chunk of data buffers which will affect performance;
    - to manipulate CLOBs you need PL/SQL anonymous block or procedure;
    - bind variables cannot be assigned CLOB value;
    - dynamic SQL cannot use CLOBs;
    - temp tables don't work very well with CLOBs;
    - fuzzy logic search on CLOBs is ineffective;
    - not all ODBC drivers support Oracle CLOBs
    - UNION, MINUS, INTERSECT don't work with CLOBs
    I have not delt with CLOB data type in the past, so I am hoping to hear from you of any possible issues/hastles we may encounter?

    848428 wrote:
    Dear Gurus,
    We are designing a database that will be receiving comments from external data source. These comments are stored as CLOB in the external database. We found that only 1% of incoming data will be larger than 4000 characters and are now evaluating the Pros and Cons of storing only 4000 characters of incoming comments in VARCHAR2 data type or using CLOB data type.
    Some of the concerns brought up during discussion were:
    - having to store CLOBs in separate tablespace;They can be stored inline too. Depends on requirements.
    - applications, such Toad require changing defaults settings to display CLOBs in the grid. Default value is not to display them;Toad is a developer tool so that shouldn't matter. What should matter is how you display the data to end users etc. but that will depend on the interface. Some can handle CLOBs and others not. Again, it depends on the requirements.
    - applications that build web page with CLOBs will be struggling to fit 18 thousand chararcters of which 17 thousand are blank lines;Why would they struggle? 18,000 characters is only around 18k in file size, that's not that big to a web page.
    - cashing CLOBs in memory will consume big chunk of data buffers which will affect performance;Who's caching them in memory? What are you planning on doing with these CLOBs? There's no real reason they should impact performance any more than anything else, but it depends on your requirements as to how you plan to use them.
    - to manipulate CLOBs you need PL/SQL anonymous block or procedure;You can manipulate CLOBs in SQL too, using the DBMS_LOB package.
    - bind variables cannot be assigned CLOB value;Are you sure?
    - dynamic SQL cannot use CLOBs;Yes it can. 11g supports CLOBs for EXECUTE IMMEDIATE statements and pre 11g you can use the DBMS_SQL package with CLOB's split into a VARCHAR2S structure.
    - temp tables don't work very well with CLOBs;What do you mean "don't work well"?
    - fuzzy logic search on CLOBs is ineffective;Seems like you're pulling information from various sources without context. Again, it depends on your requirements as to how you are going to use the CLOB's
    - not all ODBC drivers support Oracle CLOBs not all, but there are some. Again, it depends what you want to achieve.
    - UNION, MINUS, INTERSECT don't work with CLOBsTrue.
    I have not delt with CLOB data type in the past, so I am hoping to hear from you of any possible issues/hastles we may encounter?You may have more hassle if you "need" to accept more than 4000 characters and you are splitting it into seperate columns or rows, when a CLOB would do it easily.
    It seems as though you are trying to find all the negative aspects of CLOBs and ignoring all the positive aspects, and also ignoring the negative aspects of not using CLOB's.
    Without context you're assumptions are just that, assumptions, so nobody can tell you if it will be right or wrong to use them. CLOB's do have their uses, just as XMLTYPE's have their uses etc. If you're using them for the right reasons then great, but if you're ignoring them for the wrong reasons then you'll suffer.

  • Pl/sql Procedure is Not Creating With the CLOB data Type

    Hi,
    I am Using Oracle 10g Express Edition Release2.... My Doubt is While creating a table With CLOB Data Type the table is created successfully,but while Creating a Procedure With the CLOB Data type i am getting an Error Message
    2667/5 PL/SQL: Statement ignored
    2667/24 PLS-00382: expression is of wrong type
    then i tried With the Varchar2(30000) the Procedure is Created Successfully note i have not changed any thing in my code except the data type.
    I am Just Confused ......Why the Procedure is not Created with CLOB Data type?
    Please advice ...
    Thank U
    SHAN

    hi,
    Thanks for reply....Another Example
    CREATE TABLE USER_MAS (USER_ID     VARCHAR2 (20 Byte),MAIL_ID     VARCHAR2 (255 Byte));
    set serveroutput on
    declare
    atable varchar2(64) := 'USER_MAS';
    acolumn varchar2(64) := 'MAIL_ID';
    avalue varchar2(64) := 'NEWYORK' ;
    dyn_sql clob;
    begin
    dyn_sql := 'update '||atable||' set '||acolumn||' = '''||avalue|| '''' ;
    dbms_output.put_line(dyn_sql);
    execute immediate dyn_sql;
    end;
    commit ;
    Error at line 2
    ORA-06550: line 9, column 23:
    PLS-00382: expression is of wrong type
    ORA-06550: line 9, column 5:
    PL/SQL: Statement ignored
    When i Changed the Data type to varchar2(64)
    update USER_MAS set MAIL_ID = 'NEWYORK'
    PL/SQL procedure successfully completed.
    Commit complete.
    I like to Know the Reason Why the Procedure is Not Created in Oracle 10g XE DB
    Note :the Same Script i used in 11g DB the Procedure is Created Successfully....
    Why you need use CLOB or VARCHAR2 in your temp_num variable as you sending parameters as number?
    In the Procedure we are create some run time queries while executing the procedure. There are around 10 run time queries created.
    The size of each query is more than 4000 characters . We then add all the queries using union all after each query  to the clob variable as the normal varchar will not support.
    Please Advice
    Thank U
    SHAN

  • Error when Converts rows to columns dynamically in clob data type

    Hi
    I am using below pl/sql statement
    SELECT NO,
    MAX (DECODE (NAME, 'A', VALUE1, NULL)) AS A,
    MAX (DECODE (NAME, 'B', VALUE1, NULL)) AS B,
    MAX (DECODE (NAME, 'C, VALUE1, NULL)) AS C,
    MAX (DECODE (NAME, 'D', VALUE1, NULL)) AS D
    FROM ( SELECT NO,
    RTRIM (
    XMLAGG (XMLELEMENT (E, VALUE || ',')).EXTRACT ('//text()').
    GETCLOBVAL (),
    VALUE1,
    NAME
    FROM DA
    while i am execute for varchar type its as i expected. when i tried with clob data type i am getting follwoing error.
    ORA-00932: inconsistent datatypes: expected - got CLOB
    can any one pleas me?
    thanks
    Nagarajan.V

    Nagarajan Venu wrote:
    Thanks for your reply
    This is scenario.
    This is my table
    NO--name--value
    1--A--ASDF
    2--B--IOP
    all columns are clob type and i want the output like below.
    No--A
    1--ASDF
    2--IOP
    i just want to convert all rows to coulmns(clob type) dynamically.I don't get how you got that output from the data? What happened to "B"?
    Please post a suitable example and expected output using create table and insert statements as well as giving your database version and using {noformat}{noformat} tags as detailed in the FAQ: {message:id=9360002}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • UNION for Columns of CLOB data type does not work

    Hi,
    I have two tables Encounter & Encounter_History. They have same columns. One column is of type CLOB. My requirement is to retrieve all the distinct records from both the tables with order by a date column. But problem is, UNION does not work in case of CLOB data type.
    I know it will work if I use UNION ALL, but it returns duplicate records.
    Please give me suggestion, how to solve this problem.
    For example: The following query does not work since column1 is a CLOB data type
    select column1 from table1
    union
    select column1 from table2
    Thanks

    But for sufficiently small clobs you can try:
    michaels>  SELECT TO_CLOB ('abc') cl
      FROM DUAL
    UNION
    SELECT TO_CLOB ('abc')
      FROM DUAL
    Error at line 1
    ORA-00932: inconsistent datatypes: expected - got CLOB
    michaels>  SELECT TO_CHAR (TO_CLOB ('abc')) cl
      FROM DUAL
    UNION
    SELECT TO_CHAR (TO_CLOB ('abc'))
      FROM DUAL
    CL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
    abc                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    1 row selected.

  • DB Link between Oracle 10g and Oracle 9i for CLOB data type

    How do I transport XMLType or CLOB from oracle 9i to Oracle 10G using DBLink?
    Is any restrction to DBLink, while transfering CLOB with XML data from oracle 9i to Oracle 10G?
    Please let me know how i resolve this issue.
    Thanks in advance.
    DK

    Well... it depends on what type of link you wish to create.
    If you have same user with same password on both databases (9i and 10G), then you can create a public database link as
    CREATE PUBLIC DATABASE LINK dblink USING 'dbalias';
    Note: dbalias is the value from your TNSNAMES.ORA. The database from which you are creating the db link has to have the entry in TNS for other database.
    Other method is to create a private db link
    CREATE DATABASE LINK dblink CONNECT TO user IDENTIFIED by pwd using 'dbalias';
    The number of open connections from a particular database is governed by init parameter DB_LINKS (this was in 8i.. not sure about higher versions)
    HTH...
    Message was edited by:
    satishkandi

  • Oracle 10g XE and CLOB data type

    I am using Oracle 10.2.0.1.0 Express Edition and I wish to store large amounts of data in a CLOB column. I have created my table using a "standard" SQL statement similar to the following:
    CREATE TABLE LotsofData(
    id INT NOT NULL,
    data CLOB);
    The table is created successfully, so far so good.
    And I used a "standard" insert SQL statement to insert large amount of data into the before mentioned table, similar to the follwing:
    INSERT INTO LotsofData VALUES('4043', 'The quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog <insert more iterations>');
    The data being inserted takes up 4043 bytes. Now when attempting, using among other programs the handy web interface, to execute the insert statement I get this error:
    Error starting at line 1 in command:
    INSERT INTO LotsofData VALUES('4043', 'The quick brown fox jumps over the lazy dog.The quick brown fox jumps over the lazy dog <insert more iterations>');
    Error at Command Line:1 Column:38
    Error report:
    SQL Error: ORA-01704: string literal too long
    Now if I reduce the size of the data to be inserted to 4000 bytes or below there is no problem. I have performed searches on google groups, google search engine, the oracle site, this forum but not found a way to solve it... I have found documentation stating that there is support for 4gb of user data, but well that doesn't really help.
    I have been on the trail of TABLESPACE and working with that, but with no luck. The data type BFILE will not work as I need to be able to change the data after it has been inserted into the table.
    Is the 4000 bytes a limitation in the Express Edition and I should just forget it, or is there a way I configure the database to accept large amounts of data. Should I be creating the table using a different SQL statement?
    kind regards
    Chris Nilsson

    Right... I found out how you can solve this, well not through the web interface... but oh well it is possible though...
    the error I was getting was: ORA-01704:     string literal too long.
    the keyword/phrase is "bind variables"... Did a little more searching and found this site:
    http://www.akadia.com/services/ora_bind_variables.html
    So basically you use bind variables to insert data which fills more than 4000 bytes...
    Since the data I will be inserting will be inserted via Java/.NET application I found the section called "Bind Variables in VB, Java and other applications" the most interesting... During my testing and I had neglected to use PreparedStatements in Java, and according to the site, using PreparedStatement provided an easier solution as the API does most of the work for you. My solution was to create a small program which read the large amounts of data from a file then feed this to a PreparedStatement, setObject or setASCIIStream/setCharacterStream, then execute it.
    Well I hope this helps other people who get the same error code.

  • HY000 error retrieving CLOB-data from oracle database via ODBC

    Hello,
    I get error HY000 [Oracle][ODBC][ORA] ORA-00932: inconsistent datatype when I want to show a CLOB column in my crystal report. The type of the field in the report is memo - in the database it is CLOB.
    How to retrieve CLOB-data from an Oracle 11GR2 database via ODBC in Crystal Report Version 12.3.0.601?
    Thanks in advance for any help.
    kind regards
    Monika Anna

    Hello,
    Who's ODBC driver are you using?
    Try our DataDirect drivers - https://smpdl.sap-ag.de/~sapidp/012002523100008666562008E/cr_datadirect53_win32.zip
    Thank you
    Don

  • Error selecting CLOB data from Oracle DB

    I am using CRXI with an Oracle 10g database.
    Recently, some columns were changed from Data Type LONG to CLOB.  Now, I get 2 error messages when trying to select any of these columns:  'Failed to retrieve data from the database' and 'Database connector error: cannot obtain error message from server'.
    I am using the Microsoft ODBC for Oracle.  Is there some other ODBC which can select this data type?

    MS's ODBC driver for Oracle only supports Oracle 7, it's noted on MS's MSDN site.
    Use Oracles ODBC Driver or Data Direct that ships with CR.
    Don

  • Exporting CLOB data w/Oracle 8i

    Is there a way to export CLOB data from a table to an external
    file in a directory of our choice??? Our application
    specification is asking us to build this capability but I am
    unable to find any way to do this. Any assistance would be
    useful. Thanks a million!!
    null

    OCI really seems like the right way to do this. You know you have to use something like C to interact with the port. And the only Oracle stuff you are doing is an insert. You could even write the insert in a stored proc and call it from OCI. Below is an example of that. You should really give OCI a shot at this. I'm certain you can learn enough of it for this project.
    http://download-east.oracle.com/docs/cd/B10501_01/appdev.920/a96584/oci05bnd.htm#433702
    Tom Best

  • JDBC TYPES.Integer Data Type--Oracle seems useless

    I have a set of applications that work on every database I've
    tried it on except Orocle. They rely very heavily on making a
    query and then grabbing the correct data type (e.g., getInt() vs.
    getString()) based on the int value returned in the
    ResultSetMetaData. The problem here is that the type returned
    for Integer columns, however, is always NUMBER and therefore
    always has a decimal place and gets automatically converted into
    a double. This wreaks havoc on all of the classes which assume
    that certain columns will be int's (e.g., primary keys). Also,
    since I'm programming servlets, I am often throwing the values
    into forms where the values will be retrieved and have an
    Integer.parseInt() run on them--Integer.parseInt() will not work
    on Strings with decimal points.
    I realize why Oracle does this (because an integer is a number
    with no decimals) and what the workaround is (use a
    NumberFormatter instead of Integer.parseInt() or use Oracle's
    extensions to preset the datatype). But why should I have to
    hack up my code just because Oracle programmers can't figure out
    how to get its JDBC drivers to return the proper Type code?
    Is there any other w
    null

    I have a set of applications that work on every database I've
    tried it on except Orocle. They rely very heavily on making a
    query and then grabbing the correct data type (e.g., getInt() vs.
    getString()) based on the int value returned in the
    ResultSetMetaData. The problem here is that the type returned
    for Integer columns, however, is always NUMBER and therefore
    always has a decimal place and gets automatically converted into
    a double. This wreaks havoc on all of the classes which assume
    that certain columns will be int's (e.g., primary keys). Also,
    since I'm programming servlets, I am often throwing the values
    into forms where the values will be retrieved and have an
    Integer.parseInt() run on them--Integer.parseInt() will not work
    on Strings with decimal points.
    I realize why Oracle does this (because an integer is a number
    with no decimals) and what the workaround is (use a
    NumberFormatter instead of Integer.parseInt() or use Oracle's
    extensions to preset the datatype). But why should I have to
    hack up my code just because Oracle programmers can't figure out
    how to get its JDBC drivers to return the proper Type code?
    Is there any other w
    null

  • Loading BLOB / CLOB data from oracle source to oracle target

    Hello Friends,
    Source and Taret DB are Oracle 11g.
    I am havnig CLOB and BLOB source columns and I am linking these links to CLOB/BLOB cloumns of Target .
    but the image of source ( BLOB ) is not got loaded and when I tried to view the Image - It shows *'IMAGE COULD NOT BE DECODED FROM BINARY STREAM '.*
    For BLOB Coulmn - the is what i am using for target - NVL(WRK_IMAGE.IMAGE_DATA, EMPTY_BLOB())
    For CLOB Column - NVL(WRK_CALLOUT_V.CALLOUT.getClobVal(), EMPTY_CLOB()) -
    For CLOB i don't have any issue - but for BLOB I could not able to see the blob image .
    Appreciate if you can let me know where the issue is .
    thanks/kumar

    try with some other image. if issue exists then open the raw form of the image and check the header.

  • How to make a function return number(10,0) data type (ORACLE 10g)?

    With 10g, how to make a function return number(10,0) data type?
    here is the function, it returns a number type :
    create or replace FUNCTION Get_portfolio_Id3 (p_HistObjTable In Varchar2,p_LHISTOBJID IN NUMBER) RETURN view_cpu_STD_Asset.LPORTFOLIOITEMID%Type IS
    v_Id view_cpu_STD_Asset.LPORTFOLIOITEMID%Type;
    BEGIN
    If p_HistObjTable ='amPortfolio'
    then v_Id:=p_LHISTOBJID ;
    elsIf p_HistObjTable = 'amComputer' then
    select litemid into v_Id from smcdba.amComputer c where c.LCOMPUTERID=p_LHISTOBJID ;
    else v_Id:=-99;
    End If;
    RETURN v_Id;
    END Get_portfolio_Id3;
    Thanks.
    Message was edited by:
    user631701

    create or replace FUNCTION Get_portfolio_Id3 (p_HistObjTable In Varchar2,p_LHISTOBJID IN NUMBER) RETURN view_cpu_STD_Asset.LPORTFOLIOITEMID%Type IS
    v_Id view_cpu_STD_Asset.LPORTFOLIOITEMID%Type;
    BEGIN
    If p_HistObjTable ='amPortfolio'
    then v_Id:=p_LHISTOBJID ;
    elsIf p_HistObjTable = 'amComputer' then
    select litemid into v_Id from smcdba.amComputer c where c.LCOMPUTERID=p_LHISTOBJID ;
    else v_Id:=-99;
    End If;
    RETURN round(v_Id);
    END Get_portfolio_Id3;

Maybe you are looking for

  • How do you know if your iPhone 4 has a broken charging port?

    A few weeks ago I was issued a new iPhone because of a hardware problem with my old one. When I took my new one home I immediately realized that it had some problems charging. I have 3 different chargers, and none of them worked. They all worked with

  • Open "SAFE" document: does it works or not?

    Hi all guys. A customer is asking me why, after have downloaded a file ( .doc, for eample) the document is not open automatically. I've read many issues about this and the setting in General/Open Safe document.... seems to be the only setting I can d

  • Help...!!!!  dvd studio pro 3 opens but does'nt respond

    Hi... I start dvd studio pro 3...everything ok. then cannot do anything...no imports no open recent proyects...no new projects...none... I erase all dvd studio files I could find (also in the library) and reinstalled the program...and SAME"... Can so

  • How to call a subroutine in a script ?

    Hi ,   How to call a subroutine in a script ? bye, Satya.

  • GUI - Displaying system.out

    Hello I am creating a database application in Java. When an user enters an invalid query several of my class-methods call the System.out.println method. I was wondering if there was an easy way of redirecting all these print statements to a JTextArea