Poolman for BLOB & CLOB objects

Hi,
I am working with with tomcat from Sun & PoolMan-1.4.1 for connection pooling version downloaded from http://www.codestudio.com . It is working fine with simple SQL statements. But unable to do with BLOB and CLOB objects. Can anyone help in this regard?
Please mail me to [email protected]
Thanking You,
Sunil

1) Are you sure you're using ODBC and not JDBC? They're similair protocols, but completely different code bases.
2) Can you explain what you mean by not working with B/CLOB's? Is it connection pooling that's going bonkers or is it something else?
Justin

Similar Messages

  • Basic doubt on BLOB/CLOB

    In Oracle 10g, the max size for BLOB/CLOB is mentioned as 4GB.
    If i store a binary file of size 2MB in a BLOB field, will it block the whole 4GB (4096MB) space for this. Or as like Varchar only the actual file size is used and leave the remaining 4094 MB as free.
    Please clarify.

    Could not resist it... here's a docu link to info about new LOB handling.

  • Display BLOB/CLOB image data in OBIEE 11g

    Dear Gurus,
    I want to display employee profile picture in dashboard, the image data was saved as blob/clob image.
    How to configure and display it in obiee?
    Regards
    JOE

    Hi
    Thanks for your quick response.
    actually im not using EBS, im just using publisher with OBIEE 11g.
    if explain step by step what you wrote first replay-
    Let i have a table with one BLOB column.
    1) first load blob data to my table
    2) create data model from oracle publisher.
    3) change the xdm file with above tagline , my xdm file is in below link-
    C:\mw_bi_home\instances\instance1\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips1\catalog\SampleAppLite\root\shared\zia%2exdm
    i don't know is that right step? because if i re-open the xdm file after change by your given tagline its shows error.
    I will grateful to you please give me a little explanation which file i can put the following tagline.
    _<fo:instream-foreign-object content-type="image/jpg"><xsl:value-of select=".//IMAGE_ELEMENT"/></fo:instream-foreign-object>_
    Thanks again and waiting your feedback -
    @zia

  • IDT not supporting CLOB Object

    Hi Experts,
    I am using IDT 4.1 and Oracel 11g. I need to use CLOB object in IDT. I have searched a lot but not got a successfull method to use CLOB. I have split the CLOB column into N number of objects and concatenating the same at WebI level which eventually causing some sort of data truncation at report level.
    This same approach was followed in BO 6.5 as well as 3.x
    Can u provide a better approach? I am really in dark as SAP told that they have handled CLOB properly in 4.x.
    N.B. I have used dbms_lob.substr() function as well with long text in universe, but no result as dbms_lob.substr() is not returning more than 4000 characters. My object field length is abt 91k.
    I have followed the steps descxribed here: Universe Objects on CLOBs/BLOBs
    Regards,
    Arup

    Apart from this: checking resolutions and redirecting accordingly is heavily discouraged. Just design for at least 800x600 or even 1024x768 and forget about it. It will save you much effort and time. By the way, ignoring bigger resolutions isn't a good idea .. I use 2560x1024 at home and 1600x1080 at work, why should I arrive at the error page?

  • Error while reading clob object of 40MB

    I am trying to read a clob object with size more than 40MB. I am getting following error while executing following line
    clientSession.executeQuery(query) : in query i am accessing clob object column..
    kghalo bad size 0x05063398
    ********** Internal heap ERROR KGHALO2 addr=00000000 *********
    HEAP DUMP heap name="Alloc environm" desc=08D61E38
    extent sz=0x1024 alt=32767 het=32767 rec=0 flg=2 opc=2
    parent=08D61EA0 owner=00000000 nex=00000000 xsz=0x1024
    EXTENT 0 addr=0528BB94
    Chunk 528bb9c sz= 2968 freeable "Alloc statemen " ds=0527DFD8
    Chunk 4c08f78 sz= 20 free " "
    Chunk 4c0c0c4 sz= 20 free " "
    Chunk 4c09020 sz= 28 free " "
    Chunk 4ae5d40 sz= 20 free " "
    Bucket 1 size=528
    Bucket 2 size=1040
    Total free space = 1380
    UNPINNED RECREATABLE CHUNKS (lru first):
    PERMANENT CHUNKS:
    Chunk 4ae5d08 sz= 24 perm "perm " alo=24
    Permanent space = 24
    Hla: 0
    kgepop: no error frame to pop to for error 21500

    The message "no error frame to pop to for error ..." occurs in our environment only with Oracle Client 9.2, neither with version 8 nor 10. At least once I was able to connect this message to a killed database session.
    We cannot switch to client 10, since it seems to jumble result data: we get miscoded OCI_NUM and other errors.
    (Server: 10.2; the C++ - application uses OCI 8 headers)

  • Yest we can store BLOB,CLOB

    Hi,
    it is possible to strore the BLOB , CLOB and BFILES IN THE ORACLE8 and above DATABASE.
    For this you can take the help of the DBMS_LOB package.
    regards,
    khaleel

    How do you propose to do that? You are limited to 255 bytes per cell in Excel. If you come up with a scheme to lay down blocks of data and some way to uniquely ID them, then yes, you can; but you have to overcome that 255 byte boundary per cell before you can do much.
    A CLOB can be stored as a string, but once again... there is that max character boundary to overcome in Excel.

  • 10g BLOB/CLOB can we store more than 4k in SQL

    Dear Friends
    I know we had issues with BLOB and CLOB storing more than 4k in Oracle 8i using SQL. Is it the same in 10g BLOB/CLOB can we store more than 4k in SQL?
    Please help me with some documentationw which explains these aspects with CLOB and BLOB in 10g
    Thanks
    Farouk

    Thanks for your help,
    I understand we can store blobs more than 4k in 10g using DBMB_LOG but there is a constraint in 8i that using SQL u can store directly only 4k and using a bind variable in PL/SQL we can store upto 32K. Is that the same in 10g or can we store directly using sql more than 4k?
    Thanks
    Farouk

  • BLOB-- CLOB-- BLOB conversion reducing length of BLOB

    Hi,
    I am using the following BLOB-->CLOB and CLOB-->BLOB conversion functions :
    CREATE OR REPLACE FUNCTION blob_to_clob (blob_in IN BLOB)
    RETURN CLOB
    AS
         v_clob CLOB;
         v_varchar RAW(32001);
         v_varchar1 VARCHAR2(32001);
         v_start     INTEGER := 1;
         v_buffer INTEGER := 32001;
    BEGIN
         DBMS_LOB.CREATETEMPORARY(v_clob, TRUE);
         FOR i IN 1..CEIL(DBMS_LOB.GETLENGTH(blob_in) / v_buffer)
         LOOP
         DBMS_LOB.READ(blob_in,v_buffer,v_start,v_varchar);
    DBMS_LOB.WRITEAPPEND(v_clob, utl_raw.length(v_varchar), v_varchar);
         v_start := v_start + v_buffer;
         END LOOP;
    RETURN v_clob;
    END blob_to_clob;
    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;
    I am using these functions to convert image files, stored as BLOB to CLOB for intermediate storage, and then converting them back to BLOB. In this process, I see a loss of information when the image is converted from CLOB to BLOB ...which is seen by using dbms_lob.getlength() .Using the following sql query:
    select dbms_lob.getlength(file_body),
    dbms_lob.getlength(blob_to_clob(file_body)),
         dbms_lob.getlength(clob_to_blob(blob_to_clob(file_body)))
    from my_table where image_id in (8819)
    i see that returned length is usually half in the 3rd column, i.e. for dbms_lob.getlength(clob_to_blob(blob_to_clob(file_body))). There is no change in length for 1st and 2nd columns. Could you please let me know why length is getting lost in the CLOB to BLOB conversion ? Thanks.

    Thanks for replying.
    This is required because we have to store images in ldt files using FNDLOAD, whiich only supports CLOB, not BLOB. I understand that images stored in binary formats should be stored in BLOB only, but I am exploring the possibility of converting BLOB format to CLOB and then back to BLOB without loss of information. Any pointers in this regard are appreciated. Thanks !

  • How to concatinate two clob objects using JDBC...good brain excercise!!!

    Hi,
    I am using MYSQL server ver. 4.0 and J/Connector version 3.0.6
    I have two columns of LONGTEXT type and i have to concatenate them and store it in a third column.I have thought of the following strategy:
    1. Retrieve the columns as CLOB using getClob()
    2.Concatinate the CLOB values and then insert it in the corr. database column.
    My problem is this that i don't know what strategy should i use to concatenate the two values in the clob objects without bringing the whole clob values in the memeory.If i use this strategy..it gives me outofmemory error.
    My Clob columns may go upto 10MB in size.
    Pl. help.....Any suggestions from the whizkids out there will be extremely appreciated!!!
    Thanks....

    sorry for replying so late...but neway....
    Ok...i will paste a snapshot of my code here....May be that will clarify a few things....
    I am opening this in the main function body....To get the first column cell value....
    /////////////////Reading the Clob value of the main outer row which will be copmpared with the other rows under it//
    BufferedInputStream anInputStream = new BufferedInputStream( rs.getAsciiStream("row_interaction")); //row_intrctn
    int aByte = anInputStream.read();
    File aFile = File.createTempFile( "tempfile", "txt");
    FileOutputStream anOutput = new FileOutputStream(aFile);
    while (aByte != -1)
    anOutput.flush();
              anOutput.write(aByte);
    aByte = anInputStream.read();
    Then I depending on some condition i concatenate it with some other cell value from the database ...here i am just concatenating it with another rows column cell clob value..shown below as:
    if(loop==0)
    String col_string= null;
    col_string= convert_bitset_string(temp_b);
    //////Getting the other string value///////////////////////////////////////
    anInputStream = new BufferedInputStream( rs.getAsciiStream("row_interaction"));
    aByte = anInputStream.read();
    while (aByte != -1)
    anOutput.write(aByte);
    aByte = anInputStream.read();
    anOutput.flush();
    System.out.println("Loop0,2:The "+row_index+"st row being inserted");
    ////////////////////////Inserting through the prepared statement////////////
    String insertion= "Insert into bv"+next_tbl_nm_cntr+" Values(?,?,"+col_string+")";
    PreparedStatement pstmt= con.prepareStatement(insertion);
    pstmt.setInt(1,row_index);
    try{
    FileInputStream fis = new FileInputStream(aFile);
    pstmt.setAsciiStream(2,fis,(int)aFile.length());
    pstmt.execute();
    fis.close();
    }catch(IOException e)
    System.out.println("Error in setting the stream"+e);
    System.out.println("Loop0,2:Row inserted");
    row_index++;
    loop++;
    }     //End if: loop=0 i.e the row being inserted is the first row
                                  //in the store bitset
    Tell me if there is any error because when it concatenates i get some unwanted values too..which i took before in the iteration.....
    Any help will be greatly appreciated

  • Parameter Binding for BLOB field

    I would like to find out how I can bind a BLOB field as one of the parameters to an INSERT statement to be passed to an ExecuteSQL call?
    I was trying to use the Add function for BLOB field of the OParameterCollection object, but was having problem instantiating the BLOB object itself - getting object not opened error!?!
    Would appreciate any advice!
    Thanks,
    John.

    Hi Karuna,
    Breakpoint's answer is a bit misleading - there's no need for the parameter ID to appear in SE11. All you need is logic on your screen to utilize the parameter ID. You have two options for that: Either use the field settings in the screen painter (i.e. check the SET field and GET field checkboxes, at least Get field would be required - just seeing the parameter ID is not sufficient) or add some coding to your PBO coding to retrieve upon startup of the screen the value via GET PARAMETER statement (requiring also possibly a SET PARAMETER in the PAI for the field if you want to set it).
    Most likely the first approach is what you want. The second is more flexible, but also needs more care to avoid unexpected behavior...
    Cheers, harald

  • Urgent : Problem in passing CLOB object in jdbc call to stored procedure

    i have written a simple program which is enclosed along in which I have insert set value of the CLOB object of a table through the JDBC callablestatement and i m getting error "cannot perform operation with LOB buffering enabled". so please check the code and tell me the solution..
    i u have any other way for doing this please tell
    Thanks in advance
    Atam
    Code follows::::::::::::::::;
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn = DriverManager.getConnection("jdbc:oracle:thin:oracle17aug/oracle17aug@dbserver:1521:oracledb");
    cstmt = conn.prepareCall("{call atamp(?)}");
    String strData = "aasdssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssd adad asd asd asd asd";
    byte[] in = new byte[strData.length()];
    in = strData.getBytes();
    if(!strData.equals(""))
    CLOB my_clob = new CLOB((oracle.jdbc.driver.OracleConnection)conn,in);
         my_clob.setLocator(in);
         Writer writer = ((CLOB)my_clob).getCharacterOutputStream();
         writer.write(strData);
         writer.flush();
         writer.close();
         cstmt.setClob(1,my_clob);
    else
    cstmt.setNull(1, java.sql.Types.CLOB);
         cstmt.setQueryTimeout(180);
         cstmt.execute();

    Varghese,
    If the SP has OUT parameters then this impies that the SP is returning to you some response.
    Meanwhile, in your case, if you do not want to catch this response and want to make a Asynch Call, I think you should still create those OUT Parameters in XI. ( Have not given this a shot though ).
    Do update us on the results after you give this a shot.
    Regards
    Bhavesh

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

  • Calling CLOB objects in procedure

    Hi all
    Can any one plzz help me out how to call CLOB objects in a procedure
    Thanks in Advance
    Regards
    praveen

    What do you mean with "call"?
    Do you want to use a CLOB in a SP?
    DECLARE
    l_myclob CLOB;
    BEGIN
    DBMS_LOB.CREATETEMPORARY(l_myclob,false,DBMS_LOB.CALL);
    END;
    /Have a look at the DBMS_LOB package for more information:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lob.htm
    Dim

  • Exporting CLOB objects

    Hi all,
    I use 11gR2 version Database. I tried to migrate the character set of this database. After csscan, in the logfile I could see lot of CLOB objects that need conversion. It means that I must export those objects before applying csalter and then import them back in to the DB after csalter process. Now the question arises. How can I find all those CLOB objects in the database altogether and export them? Your assistance is appreciated kindly...
    Vimal.

    Hi,
    For a single schema you can do it like this:
    schemas='your_schema_name_here'
    include=TABLE:"IN (SELECT distinct table_name from dba_lobs where owner='your_schema_name_here' )"
    Not sure you can do that for all schemas easily though.
    Regards,
    Rich

  • Using a Variable in SSIS - Error - "Command text was not set for the command object.".

    Hi All,
    I am using a OLE DB Source in my dataflow component and want to select SQL Query from the master table  I have created variables v_Archivequery
    String packageLevel (to store the query).
    <Variable Name="V_Archivequery" DataType="String">
         SELECT a.*, b.BBxKey as Archive_BBxKey, b.RowChecksum as Archive_RowChecksum
         FROM dbo.ImportBBxFbcci a LEFT OUTER JOIN Archive.dbo.ArchiveBBxFbcci b
         ON (SUBSTRING(a.Col001,1,4) + SUBSTRING(a.Col002,1,10)) = b.BBxKey
         Where (b.LatestVersion = 1 OR b.LatestVersion IS NULL)
        </Variable>
    I am assigning this query to the v_Archivequery variable, "SELECT a.*, b.BBxKey as Archive_BBxKey, b.RowChecksum as Archive_RowChecksum
    FROM dbo.ImportBBxFbcci a LEFT OUTER JOIN Archive.dbo.ArchiveBBxFbcci b
     ON (SUBSTRING(a.Col001,1,4) + SUBSTRING(a.Col002,1,10)) = b.BBxKey
    Where (b.LatestVersion = 1 OR b.LatestVersion IS NULL)"
    Now in the OLE Db source, I have selected as Sql Command from Variable, and I am getting the variable, v_Archivequery .
    But when I am generating the package and when running I am getting bewlo errror
     Error at Data Flow Task [OLE DB Source [1]]: An OLE DB error has occurred. Error code: 0x80040E0C.
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80040E0C  Description: "Command text was not set for the command object.".
    Can Someone guide me whr am going wrong?
    Please let me know where am going wrong?
    Thanks in advance.
    Thankx & regards, Vipin jha MCP

    What happens if you hit Preview button in OLE DB Source Editor? Also you can use the same query by selecting SQL Command option and test.
    Could you try set the Delay Validation = True at Package and re-run ?
    If set the query in variable expression (not in value), then Set Evaluate As Expression = True.
    -Vaibhav Chaudhari

Maybe you are looking for