Insert CLOB values problem with 9.2 drivers and not with 10

Hi
We are using Oracle 9.2.0.5. We need to insert values bigger than 4000bytes using thin connection, so we've decided to use CLOB fields. With the 9.2.0.5 driver we can't do it, obtaining the classical exception explaining the data is bigger than the supported size but with the 10g driver (and, of course, same java code) it worked. The problem is that we want to mantain the equivalence between the database and driver not using the 10g driver with the 9.2.0.5 version of the db.
Here it's the test code we've used:
Data generation:     
          String data = "";
          Random rnd = new Random();
          long cont = 10000;
          while (cont > 0){               
               int result = rnd.nextInt(255);
               data = data + result;
               cont--;
          Integer id = new Integer(2);
Data insertion:
               String queryString="INSERT INTO TMP_BUG_ORACLE (ID, VALOR) VALUES (?,?)";
               preparedStatement = connection.prepareStatement(queryString);
               preparedStatement.setInt(1,1);
               preparedStatement.setString(2,this.datos);
               int numero = preparedStatement.executeUpdate();               
               System.out.println("Items inserted: " + numero);
               preparedStatement.close();
               connection.close();
Table structure
     Name:          Type:
     ID           NUMBER
     VALOR      CLOB
Response (only with 9.2.0.5 driver):
java.sql.SQLException: El tamaño de los datos es mayor que el tamaño máximo para este tipo: 25708 (Data size is bigger than the maximum for this type: 25708)
Thank you very much for all

Hi,
I had exactly the same problem. on Oracle 9.2 I wanted to insert a template file bigger than 4K. with the ojdbc14.jar from Oracle 9.2 it was not possible.
What I did was this:
I have used a JDBCwrapper to fix this issue. I can send it to you, if you send me your email.
When I use the ojdbc14.jar from Oracle 10, I cannot insert a bigger file.
How did you code your programm to insert big size data into a CLOB field with ojdbc14.jar driver from 10?
thank you for your response

Similar Messages

  • Can i use iCloud keychain with my own passwords and not with what is assigned and stored?

    Can i use iCloud keychain with my own passwords and not with what is assigned and stored?

    tammersalem wrote:) <-HDMI-> (HDTV)
    My main concerns are:
    -If I use iTunes on my main computer, will it then be available to Apple TV?
    -If I use Apple TV to download will it be available to my Main computer?
    -Can the Apple TV use a media server for storage over LAN (using NTFS Samab or otherwise)?
    Basically iTunes feeds AppleTv with media either syncing (copying to it) or streaming live.
    Media must be compatible with AppleTV.
    AppleTV requires a proper iTunes instance running - it cannot access a NAS directly.
    If you store media in a folder on a NAS and it's part of the computer iTunes library (just stored on the NAS vs internal/external drive), then when running iTunes makes this content available to AppleTV.
    Data will travel:
    NAS > network > iTunes > network to AppleTV
    As the path is potentially slower than internal/external attached drive > iTunes > network > AppleTV, it may or may not work robustly for streaming.
    If AppleTv is set to sync (it can also stream in this mode), when you purchase direct on AppleTV, the media should sync back to where the itunes library is stored (via iTunes) to keep things in sync and to allow you to backup the media.
    You cannot drag/drop media to/from AppleTv across the network, nor can it directly access storage itself - iTunes is an essential cog in the wheel.
    The majority of commercial 'in-built iTunes media servers' will not work directly with AppleTV as it has to be 'paired' with iTunes by entering a numerical code in iTunes and does not simply see 'shared libraries'.

  • Key backspace and delete work with JDK1.3.1 and not with JDK1.4

    In JCTable, keys backspace and delete are not working with JDK1.4. It works with JDK1.3.1.

    I have the same problem, but the version within SUN seems imcomplete,what version is ?
    For example I am using the xsl tag library provided by Apache (I know this now deprecated). In its ApplyTag.java it uses XSLTDataSource this is not in the SUN 1.4 distribution so it falls over. If I add XALAN 1.0.1 it falls over because it on getDefaultLiason() because it starts loading somne classes from rt.jar and some from xalan.jar, how are you meant to override this.

  • Canon 860 Series (Pixma) Printer Problems with OSX 10.8 (Mountain Lion) – links to Canon Support Site with Drivers and Software with install tips

    After spending several hours sorting out Canon Pixma OSX problems here are my thoughts:
    Canon 860 Series (Pixma 868) Printer Problems with OSX 10.8 (Mountain Lion) – links to Canon Support Site with Drivers and Software with install tips
    Problem:
    - New imac and MacBook Pro 2012 (OSX 10.8.2) had a problem using Canon Pixma 868 printer on network and would not scan or print using Canon Pixma software (Pixma MP Navigator 2.1 & Photo Print), which has advanced scanning and photo printing functions. 
    - When I connected the canon printer to my imac, OSX 10.8.2 automatically downloaded and installed drivers for Canon 860 series printer. I could then add the new printer (select ‘apple menu’ / ‘system preferences’ / ‘print and scan’ / “+”) and printer would work while connected via USB but could not get to print or scan over network wifi. 
    - The original Canon 860 Series CD does not work with 10.8 and the manual / online instructions did not make sense (as based on CD install). 
    Solution:
    1) Install Canon Printer Drivers and Software (from official Canon site)
    Go to canon support site, review FAQ, then download and install following Pixma 860 Series software & drivers for OSX 10.8 (links see below). The version I downloaded is in brackets but check for updated version. Full instructions are below.
    Canon 860 Series Drivers & Software  for OSX 10.8 Mountain Lion:
    The base software and drivers needed for using Canon 860 Series on Mac OS X 10.8 (USB) are
    1 Printer Driver
    (Canon MX860 series CUPS Printer Driver Ver. 10.67.1.0 (03-Aug-2012))
    2 Scanner Driver
    (Canon MX860 series Scanner Driver Ver. 14.11.4a (03-Aug-2012))
    3 Network Tool
    (Canon IJ Network Tool Ver. 4.1.0 for Intel Mac (27-Dec-2012)
    Canon Software for using advanced printing and scanning functions (while connected to network)
    4 Solution Menu
    (Canon Solution Menu Ver. 1.4.1 (27-Jul-2012 ))
    5 MP Navigator EX
    (Canon MP Nav EX Ver. 2.1.3 (02-Auf-2012))
    6 Easy-PhotoPrint EX
    (Canon Easy-PhotoPrint EX Ver. 4.1.6 (21-Jan-2013 ))
    Canon Support (HK) – check your local site
    http://www.canon.com.hk/en/download/main/index.do
    Select Product and drivers from support site eg http://support-hk.canon-asia.com/
    1. Choose a product category
    Multifunctional Printers
    2. Choose a product series
      Pixma
    3. Choose a product model
      Pixma MX868
    4. Choose type of document
    Downloads or FAQ
    If you have problems installing the software under 10.8, see the FAQ on Canon site. You will need to allow software installs from “unidentified developers by using “Control” Key or by changing your system preferences)
    2) Check Canon Printer and Software Working while connected via USB
    Once you have downloaded and installed drivers and software and restarted computer, check that the printer and Canon Pixma software (Pixma MP Navigator 2.1 & Photo Print) are working via USB.  Open the Canon IJ Network Tool App (Applications / Canon Utilities /IJ Network Tool / Canon IJ Network Tool App) and make sure you can see the Canon MX 860 series (xx.xx.xx.xx.xx.xx) and that it shows the correct SSID Wifi settings (under the Canon IJ Network Tool App ‘Setup menu’).  This is normally done as part of the automatic install but worth double checking
    3) Add new network printer using ‘apple menu’ / ‘system preferences’ / ‘print and scan’ / “+”).
    After you have checked USB printing turn off printer, unplug the USB cable and shutdown the Canon IJ Network Tool App.
    Then turn the printer back on and wait 30s. Then add a new printer using ‘apple menu’ / ‘system preferences’ / ‘print and scan’ / “+”). Once you select “+” (add new printer), wait 10-30s for the Wifi Networked Canon MX 860 Series printer to appear in the new window eg Canon MX 860 series (xx.xx.xx.xx.xx.xx) (Kind: “Canon IJ Network”)
    DO NOT ADD THE MX 860 SERIES BONJOUR SCANNER (the Bonjour Scanner is the built-in software, is not needed and often appears first on the add printer list).  The Canon scanner can be accessed used through the MP Nav EX Ver. 2.1.3 software (which has much better functions)
    You will now have two Printer Canon MX860 (USB) and Canon MX860 (Wifi / Network). Set the Canon MX860 (Wifi / Network) as default and test print and scan
    If the Wifi Networked Canon MX 860 Series printer does not appear, check the printer and make sure that the printer can see the wifi network. On the printer select Menu / Settings / Device Settings / Lan Settings / WLAN Setting List.  It should say WLAN Active, identify the SSID and have an IP address
    If the printer can not see the Wifi Network, plug the USB cable back in, then open the Canon IJ Network Tool App (Applications / Canon Utilities /IJ Network Tool / Canon IJ Network Tool App). Make sure you can see the Canon MX 860 series (xx.xx.xx.xx.xx.xx) and that it has your SSID settings (under setup), if it has this info, restart the computer and the printer and try again

    Hi, thaks for response, meant to post as a discussion (not question), wanted to save others time if they get the same problem

  • TS2570 doesn't work, still the same problem when using Rapidweaver software. NOT with other software.

    i tried everything in this article, but still have the same problem when using Rapidweaver software. NOT with other software. I am converting my iWeb site  to Rapidweaver, whenever there is a calmer period in my office. I have 16 Gb RAM on my NEW iMac and have Parallels desktop, mail, safari, iWeb and Rapidweaver running simultanious.
    I never have the problem if i don't use Rapidweaver, but after i have added several pages to Rapidweaver, the problem begins. my iMac won't start up. the only thing that works is re-installing Macos OS X 10.8. i tried even whiping the completeharddrive, and reinstalling with a complete new user, the same problem.
    I had it on my previous iMac also, and bought a new one because i thought the problem was in the iMac first. i hadn't noticed it only happens with using rapidweaver.
    i sent my complete rapidweaver project to the programmers from rapidweaver at Realmacsoftware, but they couldnt reproduce my problem, there macs started up without any problem.
    i deleted all the rapidweaver addons and extra stacks, and started a complete new project.
    saterday i had the problem again, after adding about 5 new pages to my rapidweaver site.
    i think i have reinstalled Macos OS X 10.8.2 20 or 30 times by now
    does anyone have a sollution?

    Type '''about:support''' in the URL bar and hit Enter.
    Scroll down almost to the bottom of that listing and see if you have '''user.js Preferences''' just above the '''''Graphics''''' category.
    If you do have that, click on '''user.js file''' in this sentence. <br />
    ''Your profile folder contains a user.js file, which includes preferences that were not created by Firefox.''
    Does that "different homepage" appear in that user.js file?

  • I fixed the problem with the whole 'waiting' and not loading but now some of my apps won't open, what can I do?

    I fixed the problem with the whole 'waiting' and not loading but now some of my apps won't open, what can I do?

    - Try a reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Purchase/install any new app
    - Try the remaining items of:
    iOS: Troubleshooting applications purchased from the App Store

  • Javax.faces.ViewState value starts with '%' and not with '!'

    While recording and ADF Application on JMeter, what should the regular expression extractor be when the javax.faces.ViewState recorded value starts with '%' and not with '!'.
    I have been following the following link and it talks only about javax.faces.ViewState values that start with '!'
    http://one-size-doesnt-fit-all.blogspot.in/2010/04/configuring-apache-jmeter-specifically.html

    Hi,
    If '!' present in first position of string, you need to remove it or replace it in transformation.
    Following is the  sample code...
    loop at SOURCE_PACKAGE into ls_SOURCE_PACKAGE.
          record_num = sy-tabix.
          IF ( ls_SOURCE_PACKAGE-fieldname(1) = '!' ).
            ls_SOURCE_PACKAGE-fieldname(1) = '' .
    ENDIF.
        MODIFY SOURCE_PACKAGE INDEX record_num FROM LS_SOURCE_PACKAGE.
      ENDLOOP.
    Hope this helps..

  • I have two apple ID's, one with all my apps and one with only Mavericks. Will Mavericks update automatically if i'm not logged in to the apple ID I used to download it?

    I have two apple ID's, one with all my apps and one with only Mavericks. Will Mavericks update automatically if i'm not logged in to the apple ID I used to download it?

    Some things are mixed up here, seemingly...
    I seem to have two Apple ID's attached to my e-mail.
    An Apple ID is a valid email address, apparently. How can those be "attached to your email"... what email?
    Facetime will not verify my e-mail address because it is associated with the other account.
    This doesn't make sense. You can register multiple, even non-Apple-ID, email addresses and their aliases with FaceTime.
    So, maybe you can explain your problem better - what you want and the steps you've taken and what you have so far. If something doesn't work, please tell the exact error message, too.

  • Fix for Airport Wireless Connection Problem stating Self-Assigned IP and not wanting to connect in Lion OSX.

    Fix for Airport Wireless Connection Problem stating Self-Assigned IP and not wanting to connect in Lion OSX.
    Bought my girlfriend the newest Macbook Pro 13" and began experiencing problems with my wifi the moment we got home. Her Macbook would not connect to our home Wi-Fi while my old Macbook Late 2008 running Snow Leopard connected without a problem. Airport would say that it had a Self-Assigned IP address (168.x.x.x). Did not realize it was a Lion problem until after using her Macbook Pro and becoming jealous of the new OSX, I upgraded. Soon after I was unable to go online. Luckily I had my iPad 2 and I began to scoure the net for help. Ran into allot of suggestions but it was not until I tried the following all together was I able to share the good new, from my Macbook. Hope this works:
    First go to Preferences > Network and click on the cog next to the + and - on the sidebar and click Set Service Order
         - Move Wi-Fi to the top and click ok.
         - Set location to Automatic
         - Click Apply
         - Click Advanced
         - Click the "-" on the selected Wi-Fi router you wish to connect to
         - Click Apply
         - Click Lock to Prevent Further Changes
    Go to your Mac's harddrive, (Macintosh)
         - Go to Library > Preferences > SystemConfiguration >
         - Delete "com.apple.airport.preferences.plist" file
    Turn off your computer
         - push and hold Option+Command+R+P
         - turn on computer
         - when the grey screen turns on you will hear the OS X "ON" sound (for lack of a proper term) and it will momentarily restart.
         - you will once again hear the "ON" sound, let go of all keys.
         - this resets your PRAM
    Go to Preferences > Network > Advanced > + sign
         - click Choose a Network
         - Select your network and enter password
    Viola!!! I tried this on my Macbook Late 2008 and my girlfriends new Macbook Pro 2010

         No you are clearly mistaken. The Self-Assigned IP address problem exists on many Macbook Pro models, including the current model, which I mentioned as being the original computer with the problem. While my 2008 Macbook is older it was working perfectly on Snow Leopard and didn't suffer issues until switching to Lion. So clearly the problem exists on the operating system and not so much the hardware.
         I called Apple Support  and they had no fix for the problem and told me that this would hopefully be addressed in a subsequent update. It wasn't until I came accross the answer after trying many different methods that I got both of the Macbooks to connect to my router. Otherwise I wouldn't or could not have been surfing the internet for the last 4 months.
    Cheers.

  • Code works with Dreamweaver CS6 and not with CC

    <p><a href="javascript:void(0)" onclick="window.open('http://www.anything.comt', '', 'top=20,left=20,toolbar=0,statusbar=1,scrollbars=1,resizable=1')" title="title">name</a></p> works with Dreamweaver CS6 and not with CC
    [Edited Title and moved to Dreamweaver- JTS]

    I'm not quite sure I understand your point.
    I have just tested the Open Browser Window behavior in Dreamweaver CC. It creates slightly different code from Dreamweaver CS6, but it works correctly. This is what is created in the HTML:
    <p>my <a href="#" onClick="MM_openBrWindow('http://www.adobe.com/','mywindow','toolbar=yes,location=yes,status=yes,menubar=yes,scrollb ars=yes,resizable=yes')">link</a>
    </p>
    Dreamweaver CC also adds the following code to the <head> of the page:
    <script type="text/javascript">
    function MM_openBrWindow(theURL,winName,features) { //v2.0
      window.open(theURL,winName,features);
    </script>
    The definition of the MM_openBrWindow() function is needed in the <head> for the code to work. But it definitely works OK.
    With regard to _self and _blank not working, I can't find any problem with the way Dreamweaver CC handles them.
    However, if you feel happier working with Dreamweaver CS6, you can download it from the following page:
    https://creative.adobe.com/products/dreamweaver
    Open the drop-down menu under "In this version", and select Dreamweaver CS6 as shown in the following screenshot:
    With Dreamweaver CS6 selected, click the large Download button at the top-right of the page. You can then download CS6, and install it alongside Dreamweaver CC.

  • I would like to be reached at my iMessage with my mobile number and not my email address

    I would like to be reached at my iMessage with my mobile number and not my email address

    If you're finding that iMessage & Facetime is showing your email as default & your number is greyed out so can't select it then try signing out of iMessage & Facetime & signing in again.

  • I have continuously over the last 6 months struggled with syncing my iphone and ipod with itunes  The app continually crashes during the picture import.  AND by the way it takes 10-15 minutes before it even attempts to import photos.  The screen says impo

    I have continuously over the last 6 months struggled with syncing my iphone and ipod with itunes  The app continually crashes during the picture import.  AND by the way it takes 10-15 minutes before it even attempts to import photos.  The screen says importing photoes but doesnt try to optimize or anything for 10 minutes.  I have a 3gs with 16Gb so its not a cheap phone.  I have 10Gb free.  I have 6600 photoes.  This is very frustrating and undermines my confidence in your products.  My ipod is an ipod 4 with 16Gb also.  It does the exact same thing to it.  The last time, I had to import photoes a few at the time and with it taking 10-15 minutes each time for 6600 photos it is a long frustrating process.  But it will import every photo a few at a time.  The error message is just that itunes has stopped working.  no hint as to why. AND of course, my phone is out of use for the entire time.  You guys must not want to believe ur phones are a necessary tool...or maybe you dont want the consumer to believe it is.  I have tried to find solutions on your website as well as through other 3rd party communities.  Ultimately they were of no use.  I stumbled onto my solution by accident since Im a bit of a computer geek...a semi-geek.

    I have this issue too, I went into my Windows event viewer. (should have looked at this a year ago when this started)
    it said this
    Faulting application name: iTunes.exe, version: 11.0.2.26, time stamp: 0x51253247
    Faulting module name: ntdll.dll, version: 6.1.7601.17725, time stamp: 0x4ec49b8f
    Exception code: 0xc0000374
    Fault offset: 0x000ce6c3
    Faulting process id: 0x14d4
    Faulting application start time: 0x01ce194399f166ba
    Faulting application path: C:\Program Files (x86)\iTunes\iTunes.exe
    Faulting module path: C:\Windows\SysWOW64\ntdll.dll
    Report Id: 0eb3c37f-8537-11e2-9351-50465d6737de
    basically whenever I try to sync my ipod touch 4G 64GB it crashes iTunes when it begins the pictures. if im lucky ill get 4-5 on there before it stops responding. its not my system or anything im running win7x64 8GB DDR3 ram (Corsair XMS3) AMD FX Eight core processor.
    It is silly that iTunes cannot add pictures to apple devices. it shatters whatever incline I may have to buy apple products. knda like the Airport Extreem router my dad bought the new firmware, caused my router to not function... why release firmware that breaks a product. -_- <-- off topic but still

  • How do I connect TC to a new ethernet and share a new ethernet DSL with a new PC and use with my macbook Pro? I tried and get no internet on the PC or Macbook Pro?

    how do I connect TC to a new ethernet and share a new ethernet DSL with a new PC and use with my macbook Pro? I tried and get no internet on the PC or Macbook Pro?

    Ok.
    I am connected to wi-fi through TC connected to a specific router and is working perfectly and saving data through TM without any issues.
    The TC version is 7.6.1 and am using OS 10.7.3
    The router mode is on Bridge mode and router is connected to TC through USB cable, I suppose for internet access. My Mac is on wi-fi through TC
    I have another location, much further, which recently have been installed with wi-fi through router that has WPA accessibiulity with password, 100% different than the current one.
    Since, I will be most of my time in this new location, I wish to move my TC to this new location, and configure it in similar fashion like what I am having right now.
    Naturally, I do not wish to lose any saved data on the TC.
    Hope I managed to provide enought info.
    Thanks in advance

  • In User groups user name is shown as ADLDSMembershipProvider:UserID and not with First & Last Name

    Hello,
    In SharePoint site Groups for some users, user name is coming up with ADLDSMembershipProvider:UserID and not with the correct first name and last name. 
    Can some one please advice how i can get the correct first name and last name for the users, below screenshots for your
    reference.
    Please advice.
    Regards,
    Purvish Shah

    Hello,
    What version of sharepoint you are using?
    It seems that you have also configured custom membership provider with AD LDS. To verify this go to central admin and check the web application properties to confirm what auth method is being used.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How do I send an email with a group address and not show the addresses/names of the recipients?

    How do I send an email with a group address and not show the addresses/names of the recipients?

    Use BCC.   That's blind carbon copy.   And copy paste the address into the BCC field.  It really depends what e-mail program you use how to enable BCC.

Maybe you are looking for

  • File to File scenario in PI 7.1

    Hiii... iam trying file to file scenario...I have designed in service builder and Integration builder.... My scenario i just want to tranfer a file from one folder in PI Server to another folder in the same server...My Communication Channel info are

  • Automatic outgoing Payment (APP)

    hi experts, In my client site business process is like this: they usually use transaction code F-43 for direct billing, then use transaction code F-02 to pass a JV with a special GL indicator( 'x' for retention with the posting key 21(dr) and 39(Cr)

  • Reports created with CR prior version 9

    Dear all, i am just a "user" of an application in which the reports had being created with CR prior version 9. These reports need to be modified. But if i do with CR XI i will get the information "does not support reports prior version XI. and the re

  • SQL Statement on JDBC Adapter

    Hi all, how can I see the SQL Statement which is made by the JDBC Adapter. I have createt the XML Structure, but I want to know how PI (7.11) transformed the XML to SQL. How can I trace the JDBC Adapter? Which configuration is neccessary? Where can I

  • Updates Install without user intervention

    Hi All, I am currently using WSUS and GPO's to push updates to our Windows 2008 R2 Servers.  We just began doing this within the last couple of months and have created the GPO to "auto download updates and notify for install".  The only other relevan