JDBC:KPRB string size limits-NEED HELP!

Hello All.
Please, I need your help.
I have the problems in Oracle 9.2.0.6 with stored java and jdbc:kprb internal driver.
I try to put string(more than 32K) into LONG-type field using following java class:
import oracle.sql.CLOB;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.io.Reader;
import java.io.CharArrayReader;
public class LongTest {
public static void insertLong()
throws Exception {
Connection con = DriverManager.getConnection("jdbc:default:connection:");
//generate large string
StringBuffer stringBuffer = new StringBuffer();
for (int i = 0; i < 100000; i++) {
stringBuffer.append("qwerty");
String st = stringBuffer.toString();
//put large string to long-type field
PreparedStatement pst = null;
try {
pst = con.prepareStatement("insert into TEST_LONG (ldata) values (?)");
pst.setString(1, st);
pst.execute();
} finally {
if (pst != null) {pst.close();}
But I get error from jdbc:kprb about limitation of data size for this type(LONG).
But it works well in oracle 10.2.0.1...
Has anybody a solution of how to do this in oracle 9.2.0.6???
thanx!

Hi,
THis is a known limitation in the 92 RDBMS solved in 10g.
Kuassi http://db360.blogspot.com

Similar Messages

  • String size limitations, HTML table

    Post Author: Jeff Kulbeth
    CA Forum: General
    I am currently using CR 8.5 and am aware of string size limitations... 254 characters max.  I'm looking at CR XI and can't find any data on string size limitations.  A few questions:
    1) We're considering database fields larger than 254 characters, and would like to use CR to parse the field.  In CR XI, what's the maximum string length that can return from a table and still be used in a formula?   Can a Memo field be used in a formula in CR XI? 
    2) Once I've parsed the fields in the database table, I'll need to return formatted strings back to the report.  The strings will be larger than 254 character ... What's the maximum string size allowed in CR XI?
    3) Somewhat related, but not entirely:  Have any patches been released that provide HTML table interpretation in CR XI?
    Thanks for the help,
    Jeff Kulbeth

    Post Author: V361
    CA Forum: General
    The maximum length of a String constant, a String value held by a String variable, a String value returned by a function or a String element of a String array is 65,534 characters.
    The maximum size of an array is 1000 elements.
    The maximum number of arguments to a function is 1000. (This applies to functions that can have an indefinite number of arguments such as Choose).
    Not sure about the HTML ?

  • Typecasting string to integer. need help

    Hi,
    I have the following statement which returns a String but i need to convert to an integer .
    properties.getProperty("MAXWIDTH");
    Can i do it this way,
    int width = (Integer) properties.getProperty("MAXWIDTH");
    But it gives me error stating that it cannot convert string to integer.
    Please help
    Purnima

    That's because the value returned from the
    getProperty() method is a String. You can convert it
    to an int, like this:int width =
    Integer.parseInt(properties.getProperty("MAXWIDTH"));[
    /code]oh so simple thanks
    Purnima

  • Connection string size limits

    Hi,
    old client has size limit on connection string size?
    if i create a tnsnames with 3 vip old client generate an error.
    Is there any workaround?

    842366 wrote:
    Hi,
    old client has size limit on connection string size?
    if i create a tnsnames with 3 vip old client generate an error.
    Is there any workaround?upgrade client
    use EZCONNECT; which does not require any tnsnames.ora
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • Serializable String size limits

    I have an remote EJB deployed on WebSphere Application Server 5.1.
    The EJB client is invoking this EJB passing it as large string as the input parameter. The size of the string can be upto 20 MB.
    The question is - what is the size limit of a serialized object ( in this case String) which can be used during a rmi/iiop invocation?

    842366 wrote:
    Hi,
    old client has size limit on connection string size?
    if i create a tnsnames with 3 vip old client generate an error.
    Is there any workaround?upgrade client
    use EZCONNECT; which does not require any tnsnames.ora
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • Bit char string...need help

    Hi I am trying to convert a bit char string to something useful.  Basically I have an activex tool that allows me acess to a serial port based scale.
    I send a weight request command and it sends me this gibberish:
    °®°° ìb ÇR
    Thank I try to do a tostring() and get this:
    \u00b0\u00ae\u00b0\u00b0, on line 1, column 21, is not a valid identifer name.
    Hmm.. anyone have to deal with bitchar strings coming from serioal ports or know what i am dealing with here?
    Thanks
    Frank

    Basically you need to access the string as a byte array - I think
    there's a method getBytes() that you can apply to a string.
    Mack

  • On line test with time limits - need help

    hi,
    im developing a web aplication thatz a online test.
    in that test i have to use time limit ,the test has to b stopped if the given time for the test reaches.
    so the remaining time have to b displayed in the page ant that has to b maintained.
    i will b displaying only one question in one page the next question will b displayed only after submitting the previous question.
    how can i do this.
    plz help me.
    my advanced tnx es

    My suggestion would be to use a JavaScript timer and submit the form when the timer counts till the end.
    For a JavaScript timer, you can view a sample code at
    http://www.javascript-page.com/timer.html
    Hope it helps!!!
    Annie.

  • Slide Marker spacing limits-need help quick

    I have to have this project ready today. pls help.
    I imported 90 slides. They are set at the default transistion of 4 seconds. I inserted various dissolves and other transistions into them, thus the display time is somewhere around 2:19 seconds per slide. (This I assume, allows for the head and tail of the transistion). Set to "fit to music". I have a seven minute track. It plays through the simulator just fine. When I try to burn a disc, I get an error message " the marker spacing must be at least 4 seconds".
    What markers? Does the program set a marker at each slide? How do I get around this? According to the manual, your supposed to be able to use at least 99 slides. There is no reference to the markers and error message anywhere in the documentation.
    DVDSP 4
    Final cut suite 5 Universal
    Intel mac

    A slideshow in DVDSP is really just a fancy track. Each slide on this track is seperated by a chapter marker to allow the user to skip through the photos. Per DVD spec a chapter marker cannot be located less that .4 seconds from the end of a given track. Possibly for some reason, DVDSP thinks there should be a marker somewhere near then end of one of your tracks or slideshows.
    The ability to convert a slideshow to a track has several advantages including adding subtitles, alternate language streams and the ability to combine moving video with slides. It will also let you see all the chapter markers and if one is causing a problem.

  • Workarounds of 32K-limitation in jdbc:kprb needed!

    Hello ALL.
    Can you help me with solution of workarounds the limitation in jdbc:kprb(internal driver) for stored java?
    I try to put large string more than 32K into LONG field type using internal driver and Java Stored Procedure.
    And I get the error: "Data size bigger than max size for this type"
    I get this error in oracle 9.2.0.1.
    But it works in oracle 10.2.0.1.
    =========================================================
    Here is the example:
    import oracle.sql.CLOB;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.io.Reader;
    import java.io.CharArrayReader;
    import oracle.jdbc.pool.OracleDataSource;
    public class LongTest {
    public static void insertLong(String source, int counts)
    throws Exception {
    Connection conn = DriverManager.getConnection("jdbc:default:connection:");
    StringBuffer stringBuffer = new StringBuffer();
    for (int i = 0; i < counts; i++) {
    stringBuffer.append(source);
    Reader reader = new CharArrayReader(stringBuffer.toString().toCharArray());
    // String st = stringBuffer.toString();
    PreparedStatement pst = null;
    try {
    pst = conn.prepareStatement("insert into TEST_LONG (ldata) values (?)");
    pst.setCharacterStream(1, reader, stringBuffer.length());
    // pst.setString(1, st);
    pst.execute();
    } finally {
    if (pst != null) {pst.close();}
    =========================================================
    Here is table:
    create table test_long (ldata long)
    =========================================================
    Here is the procedure:
    create or replace procedure long_test (p_source varchar2, p_counts number) as
    language java
    name 'LongTest.insertLong(java.lang.String, int)';
    =========================================================
    Here is the test block:
    begin
    LONG_TEST('q', 33000);
    end;
    =========================================================
    Thanx!

    Please, help me with solution...
    Is it possible use oci driver from Java Stored Procedures? And how?
    Thanx

  • Image size and mime type.. non-java guy needs help

    Image size, mime type.. non-java guy needs help
    Im not at all familiar with java so this is really weird for me to work out. I?ve been doing it all day (and half of yesterday).
    Im trying to write a custom clodFusion tag in java that gets the width, height, size and MIME types of a given file. I?ve been trying to get it to work on the command line first. I can get the width and height but cant get the size and the MIME type.
    Here is what I got
    /*import com.allaire.cfx.*;*/
    import java.awt.image.renderable.*;
    import javax.media.jai.*;
    import com.sun.media.jai.codec.*;
    import java.io.*;
    import java.util.*;
    public class ImageInfo {
    private RenderedOp image = null;
    private RenderedOp result = null;
    private int height = 0;
    private int width = 0;
    private String type = "";
    private String size = "";
    public void loadf(String file) throws IOException
    file = "80by80.jpg";
    FileSeekableStream fss = new FileSeekableStream(file);
    image = JAI.create("stream", fss);
    height = image.getHeight();
    width = image.getWidth();
    System.out.println(height + "\n");
    System.out.println(width);
    System.out.println(type);
    public static void main(String[] args) throws IOException {
    ImageInfo test = new ImageInfo();
    test.loadf(args[0]);
    can anyone please help me out to modify the above so I can also print the mime type and the file size to screen.
    thanks for any help

    any suggestions?

  • What is the size limitation of Oracle JDBC Statement?

    Want to know how large is the limiation of one complete SQL insert string can be place
    into a JDBC Statement and can insert the big record successfully. I tried up to 13K, JDBC still can accept it. Does some experienced
    guru can tell me what is the size limitation
    for insert or update SQL string JDBC can accept it?
    Thanks a lot.

    None known. More than 10 GB. Please note Acrobat is not for server use (I mention that because you mention C# and experience shows it is often preferred for backend development).

  • Need Help in Splitting a String Using SQL QUERY

    Hi,
    I need help in splitting a string using a SQL Query:
    String IS:
    AFTER PAINT.ACOUSTICAL.1..9'' MEMBRAIN'I would like to seperate this string into multiple lines using the delimeter .(dot)
    Sample Output should look like:
    SNO       STRING
    1            AFTER PAINT
    2            ACOUSTICAL
    3            1
    4            
    5            9" MEMBRAIN
    {code}
    FYI i am using Oracle 9.2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    There's this as well:
    with x as ( --generating sample data:
               select 'AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN' str from dual union all
               select 'BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN' str from dual)
    select str,
           row_number() over (partition by str order by rownum) s_no,
           cast(dbms_xmlgen.convert(t.column_value.extract('//text()').getstringval(),1) as varchar2(100)) res
    from x,
         table(xmlsequence(xmltype('<x><x>' || replace(str,'.','</x><x>') || '</x></x>').extract('//x/*'))) t;
    STR                                                S_NO RES                                                                                                
    AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN                 1 AFTER PAINT                                                                                        
    AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN                 2 ACOUSTICAL                                                                                         
    AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN                 3 1                                                                                                  
    AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN                 4                                                                                                    
    AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN                 5 9" MEMBRAIN                                                                                        
    BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN          1 BEFORE PAINT                                                                                       
    BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN          2 ELECTRIC                                                                                           
    BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN          3 2                                                                                                  
    BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN          4                                                                                                    
    BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN          5 45 caliber MEMBRAIN      
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I can't download the apps with big size like need for spees, but in apps with normal size(less than 100KB)there is no problem,is there any body who can help me?

    I can't download the apps with big size like need for spees

    Have a little patience. 4 minutes is only a short time for someone to find your post and reply to it. Also clicking on "This Solved My Problem" marks your problem as solved so many folks that may otherwise help will pass the question by since it is "solved."
    I suggest you start a new question that gives a good title to a specific problem. Then in the body of the thread describe the problem in detail, tell us what steps you have tried so far to correct the problem, what happened, and what error messages you received.

  • NEED HELP...FORMATING SIZE PROBLEM

    I've been succesfully building and formating projects that only lasted 30 minutes.
    I'm having some problems with my latest project (1 hour and 20 minutes)...
    I did compress with "90 minutes best quality".
    and when I import in dvdsp, the file size is 6 GB.
    Now it won't format into a blank dvd-R.
    I am kinda new at this and need to put it on a dvd for a client.
    Could somebody tell me what should I do ?
    Should I compress again or can I still burn it with another form of blank dvd?
    I need help...
    Thank you.

    Make sure to select A.Pack/Dolby (make sure that file is made) and use that in the project, not the .aif file

  • Need help for string tokenizer!

    I need help in writing out the string tokenizer.. i've got all of the functions written except for the nexttokken function which i am stuck in. Can anyone help me out in writing the function?

    An example of splitting string by comma
    String str"A,B,C";
    StringTokenizer st = new StringTokenizer(str,",");
    while (st.hasMoreTokens()) {
    System.out.println(st.nextToken());
    This is just an example of usage; i would prefer to use split() function instead

Maybe you are looking for

  • Export to PDF fails for FR - EPM 11.1.2

    Looking at server noticed that the HRPrinters1-5 were created but going to non-existant directory d:\hyperion\...\pdfoutput\ Should be going to d:\oracle\middleware\...\pdfoutput. Had to delete hrprinters1-5, edit Oracle\Middleware\EPMSystem11R1\prod

  • PLEASE DONT TELL ME..........

    I just bought a brand new desktop. I have been busting my brain trying to figure out how to get the songs on my iTunes library from the old computer to the new one. Please don't tell me that once you register to one computer, you have to keep it for

  • 6230i low battery warning?

    I just got a 6230i, but it does not play any warning alerts sounds before the battery runs out. Is there any way to enable a warning tone when the battery is running low? I know they are often really annoying, but I'm discovering their absense is als

  • Reg: Year End Report

    Hi All, We had done the year end process for 2008-2009. when we view the Trial balance location - wise (we are using Dimesion 1), it showing the opening balance for Revenue & Expenditure, which should not happen. please suggest how to resolve Current

  • Unable to start ConnectionServer on BO Enterprise XI 3.1 SP3

    Hi, We have just completed the installation of BO Enterprise 3.1 on a Windows 2003 platform. We have applied also SP2 and SP3. It is a fresh install. All servers are up and running except ConnectionServer which goes to Failed status at every attempt