ExecuteArrayUpdate fail! help me!

Hi All,
Please help me with this. I wrote a very simple code to insert data into Oracle table. But I found that, it was too slow. I try array insert feature and not succesful. When call stmt->executeArrayUpdate(3);, my program raised error immediately.
I am using Oracle 9.2.0.6 on Windows 2000 Advanced Server.
Environment* env = Environment::createEnvironment(Environment::THREADED_MUTEXED);
     Connection* conn = env->createConnection("test","z","CONN");
     Statement* stmt = conn->createStatement("insert into test(num) values(:1)");
     int it[10];
     it[0] = 1;
     it[1] = 2;
     it[2] = 3;
     it[3] = 4;
     ub4 inelements = 3;
     ub2 ilen[4];
     ilen[0] = sizeof(int);
     ilen[1] = sizeof(int);
     ilen[2] = sizeof(int);
     ilen[3] = sizeof(int);
     ub2 rc[4];
     rc[0] = 0;
     rc[1] = 0;
     rc[2] = 0;
     rc[3] = 0;
     int i = 1;
     stmt->setDataBufferArray(i++,it,OCCIINT,4,&inelements,sizeof(int),ilen,NULL,rc);
     stmt->executeArrayUpdate(3);
     conn->commit();
Thank in advance.
please send reply directly to [email protected]
I am in a urgent!

You need to use the setDataBuffer() interface :-
stmt->setDataBuffer(i++,it,OCCIINT,sizeof(int),&ilen[0],NULL,rc);
setDataBufferArray() should be used for PL/SQL tables.
Regards.

Similar Messages

  • Iphone 5- Won't show up in itunes. Error message " Device drivr software was not successfully installed. Please consult with your device manufacturer for assistance getting this device installed. Digital Still Camera- Failed" HELP!

    Error message  " Device driver software was not successfully installed. Please consult with your device manufacturer for assistance getting this device installed. Digital Still Camera- Failed" HELP!

    Hi, I was able to reformat my iPod and that worked. I read it on one of the threads and I am copy pasting the method below:
    I opened the "My Computer" window and right-clicked on my ipod, and then selected "Format". I select "Yes" to format since I don't have anything on the nano to delete anymore.
    I then Eject my nano from the computer and did a restart while the nano is disconnected from the computer.
    Once Windows finish loading I reconnect the USB to the nano(back of computer) which automatically pulls up iTune. It asked me to name the new ipod detected and created a playlist for that specific ipod name.
    Pasted from <http://discussions.apple.com/thread.jspa?threadID=1050784&tstart=15>
    Thanks!

  • My Ipad has stopped receiving emails today. It has IOS7 on it. The settings are correct but says "connection to the server failed" help!

    My Ipad has stopped receiving emails today. It has IOS7 on it. The settings are correct but says "connection to the server failed" help!
    It is the same accout that has been working find for years and just after I updated the software this has happened. My Mac is still receiving and sending via Outlook with the same account and settings. My Iphone 5C has also stopped and I tried deleting the account and adding again (via exchange as it's an exchange accout) the same way I always do and it won't even recognise it to add the settings.
    So annoying. Can anyone help?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
     Cheers, Tom

  • HT201269 i had a 3G iphone with IOS 4.0.2, my new iphone is 4 (IOS=7.0.2), the backup from 3G to 4 does not restore. (eror=restoring backup session failed) , help me plz for restoring ?! :(  TNX

    Hi all ,i had a 3G iphone with IOS 4.0.2, my new iphone is 4 (IOS=7.0.2), the backup from 3G to 4 does not restore. (eror=restoring backup session failed) , help me plz for restoring ?!   TNX
    <Personal Information Edited by Host>

    Well, first off, you are not addressing Apple here. This is a user to user PUBLIC forum. You should not post your personal information like that. Try closing iTunes, reboot the computer and connect again. Are you using the latest version of iTunes, v11.1?

  • Secure link to iTunes Store failed: HELP!

    I'm new to iTunes and purchased my first iPod yesterday night. The first time I plugged in my iPod to sync it, I wasn't able to. At first I had version 10 then it updated. On the previous version I was able to access the iTunes store but wasn't able to sync my iPod. I had downloaded the most recent version of iTunes (10.1) and then this problem occured.
    "iTunes could not connect to the iTunes store. The network connection timed out. Please make sure that the network settings are correct and that your netowrk is connected, then try again."
    I've read several different manuals and emailed Apple about it. I've tried a lot of different things to fix it.
    +-change firewall settings+
    +-redownloaded iTunes+
    +-contacted Apple Tech Support+
    +-changed proxy settings+
    +-changed permissions+
    +-disabled firewall+
    +-restarting iTunes+
    +-restarting router+
    And several others. Nothing seems to work. I ran a diagnostic review and this is what came up.
    *Network interfaces verified*
    *Internet connection verified*
    *Secure link to iTunes Store failed*
    I'm not sure how to fix it now. These are what I copied from the diagnostic review.
    *Microsoft Windows 7 x64 Home Premium Edition (Build 7600)*
    *TOSHIBA Satellite L455*
    *iTunes 10.1.2.17*
    *QuickTime 7.6.9*
    *FairPlay 1.10.24*
    *Apple Application Support 1.4.1*
    *iPod Updater Library 10.0d2*
    *CD Driver 2.2.0.1*
    *CD Driver DLL 2.1.1.1*
    *Apple Mobile Device 3.3.1.3*
    *Apple Mobile Device Driver 1.52.0.0*
    *Bonjour 2.0.4.0 (214.3)*
    *Gracenote SDK 1.8.2.457*
    *Gracenote MusicID 1.8.2.89*
    *Gracenote Submit 1.8.2.123*
    *Gracenote DSP 1.8.2.34*
    *iTunes Serial Number 2DA3F8EB5C804A33*
    *Current user is an administrator.*
    *The current local date and time is 2011-02-19 15:44:30.*
    *iTunes is not running in safe mode.*
    *WebKit accelerated compositing is enabled.*
    *HDCP is supported.*
    *Core Media is supported.*
    *Video Display Information*
    *Intel Corporation, Mobile Intel(R) 4 Series Express Chipset Family*
    *Intel Corporation, Mobile Intel(R) 4 Series Express Chipset Family*
    *** External Plug-ins Information ***
    *No external plug-ins installed.*
    *iPodService 10.1.2.17 (x64) is currently running.*
    *iTunesHelper 10.1.2.17 is currently running.*
    *Apple Mobile Device service 3.3.0.0 is currently running.*
    *** Network Connectivity Tests ***
    *Network Adapter Information*
    *Adapter Name: {DB1EBC99-C940-4565-9470-D6F601478C5D}*
    *Description: Microsoft Virtual WiFi Miniport Adapter*
    *IP Address: 0.0.0.0*
    *Subnet Mask: 0.0.0.0*
    *Default Gateway: 0.0.0.0*
    *DHCP Enabled: No*
    *DHCP Server: *
    *Lease Obtained: Wed Dec 31 18:00:00 1969*
    *Lease Expires: Wed Dec 31 18:00:00 1969*
    *DNS Servers: *
    *Adapter Name: {B689CFFB-FDFA-4886-A510-FEA274EFCF14}*
    *Description: Realtek RTL8187B Wireless 802.11b/g 54Mbps USB 2.0 Network Adapter*
    *IP Address: 192.168.1.2*
    *Subnet Mask: 255.255.255.0*
    *Default Gateway: 192.168.1.1*
    *DHCP Enabled: Yes*
    *DHCP Server: 192.168.1.1*
    *Lease Obtained: Sat Feb 19 11:57:55 2011*
    *Lease Expires: Sun Feb 20 11:57:55 2011*
    *DNS Servers: 192.168.1.1*
    *Adapter Name: {4AAC1865-70C9-4D56-A74C-C1609AA0102E}*
    *Description: Realtek PCIe FE Family Controller*
    *IP Address: 0.0.0.0*
    *Subnet Mask: 0.0.0.0*
    *Default Gateway: 0.0.0.0*
    *DHCP Enabled: Yes*
    *DHCP Server: *
    *Lease Obtained: Wed Dec 31 18:00:00 1969*
    *Lease Expires: Wed Dec 31 18:00:00 1969*
    *DNS Servers: *
    *Active Connection: LAN Connection*
    *Connected: Yes*
    *Online: Yes*
    *Using Modem: No*
    *Using LAN: Yes*
    *Using Proxy: No*
    *SSL 3.0 Support: Enabled*
    *TLS 1.0 Support: Enabled*
    *Firewall Information*
    *Windows Firewall is on.*
    *iTunes is enabled in Windows Firewall.*
    *Connection attempt to Apple web site was unsuccessful.*
    *The network connection timed out.*
    *Basic connection to the store failed.*
    *The network connection timed out.*
    *Connection attempt to Gracenote server was successful.*
    *The network connection timed out.*
    *Last successful iTunes Store access was 2011-02-18 22:19:01.*
    What do I do? Any information and suggestions would be very helpful.

    i found a solution that worked in my case..i found it in this thread: https://discussions.apple.com/thread/2284692?start=0&tstart=0 in texlark's post..i copied and pasted it here:
    The Fix (& It's NOT Your Firewall)
    A. Symptoms
    When you try to connect to the iTunes Store you may receive the alert message "We could not complete your iTunes Store request. An unknown error occured (-9808). There was an error in the iTunes Store. Please try again later."
    B. Resolution
    Check your computer's date, time, and time zone. Set the correct date, time, and time zone if needed. If your computer's date, time, and time zone are all correct and you still see this alert message, this issue can be resolved by modifying certain settings in the Internet Options control panel:
    1) Go to the Start menu and choose Control Panel.
    2) Select Internet Options.
    Note: If you are using Windows Vista you may need to select Classic View on the left before you can see Internet Options.
    Note: If you are using WIndows 7 you may need to change "View by" to either Large icons or Small icons before you can see Internet Options.
    3) Click the Advanced tab.
    4) In the Settings box, scroll down to the Security section.
    5) Deselect the option to "Check for server certificate revocation (requires restart)."
    6) Select the options for "SSL 3.0" and "TLS 1.0."
    7) Apply the changes and restart your computer.
    Disclaimers
    Important: Information about products not manufactured by Apple is provided for information purposes only and does not constitute Apple’s recommendation or endorsement. Please contact the vendor for additional information.
    Article source: http://support.apple.com/kb/TS2753
    thanks a lot texlark!

  • Ive lost iphotots and iweb after hard drive failed help

    Hi my hard drive failed yesterday and I took it to the apple store who confirmed it had failed.  They advised I should purchase a new one, provided me the specs and fit it myself.  I've now clearly done that because I'm writing this
    However I've reloaded everything back on but i've noticed my iphoto and iweb are missing!!!  I really need these apps, I cant remember how I put them on the machine, be it disc or download but clearly ive paid for these app.
    Please please help me I really need these apps as I have current workload dependant on having these apps

    iPhoto is included with the iLife apps and can be downloaded from the Mac App store or if your Mac is slightly older and came with an earlier version of OS X then Mt Lion then those apps are on the second system install discs that came with your system (Which I suspect it is an older Mac as iWeb is no longer included in the iLife suit of programs).
    So dig out your original system discs and use the one marked Applications to reinstall those apps. Then update them from software update.
    If for some reason they won't install on Mt Lion then you will need to wipe the drive, Re-Install the original OS X version and the iLife apps then upgrade back to Mt Lion.
    EDIT, NOTE: To the OP and DS store.
    iWEB Still works on ML as long as it is updated to the newest version. If the Applications disc is new enough it will even install on Mt Lion.

  • Upgrading Stellent 7.5 to OCS 10gR3 Import Process failing HELP NEEDED

    Hi,
    I am upgrading Stellent 7.5 to Oracle COntent Server 10gR3. Here is what I have done.
    1. Migrated all the configuration from Stellent to 10gR3
    2. Migrated the Folders from Stellent to 10gR3
    3. Migrated the content by creating an Archive and then importing the Archive in 10gR3.
    I am seeing lot of errors in the log file. Following are the errors I see in the log file.
    1.
    Could not send mail message from (null) with subject line: Content Release Notification. Could not get I/O for connection to: hpmail.rtp.ppdi.com java.net.ConnectException: Connection timed out
    2.
    Import error for archive 'ProductionContent' in collection 'prod_idc': Invalid Metadata for 'ID_000025'. Virtual folder does not exist.
    3.
    Import error for archive 'ProductionContent' in collection 'prod_idc': Content item 'ID_004118' was not successfully checked in. The primary file does not exist.
    4.
    Import error for archive 'ProductionContent' in collection 'prod_idc': Content item 'ID_004213' was not successfully checked in. IOException (System Error: /u01/app/oracle/prod/ucm/server/archives/productioncontent/09-dec-21_23.29.44_396/4/vault/dmc_unblinded_documents/4227 (No such file or directory)) java.io.FileNotFoundException: /u01/app/oracle/prod/ucm/server/archives/productioncontent/09-dec-21_23.29.44_396/4/vault/dmc_unblinded_documents/4227
    5.
    Import error for archive 'ProductionContent' in collection 'prod_idc': Content item 'ID_031414' with revision label '2' was not successfully checked in. The release date (11/4/08 9:12 AM) of the new revision is not later than the release date (11/4/08 9:12 AM) of the latest revision in the system.
    6.
    Import error for archive 'ProductionContent' in collection 'prod_idc': Invalid Metadata for 'ID_033551'. Item with name '07-0040_IC_Olive-View_UCLA_ERI_Cellulitis_2008-08-26.pdf' already exists in folder '/Contribution Folders/2007/07-0040/07-0040Site_Specific_Documents/07-0040Olive_View_UCLA_Medical_Center/07-0040Archive/07-0040Essential_Documents_ARC/07-0040Informed_Consent_ARC/'.
    7.
    Import error for archive 'ProductionContent' in collection 'prod_idc': Aborting. Too many errors.
    QUESTIONS:
    Is there a way to keep the import processing running even if the errors are coming. As it looks like when there are too many errors the import process stops in the middle.
    How do I find out the total number of folders and the documents. As I want to run the same query on Stellent 7.5 and find out total number of folders and the documents and then run the same query on 10gR3 and compare the results. Just want to fnd out how much content is imported.
    How do I run the import process over again as half of the content is imported and my import process failed in the middle when running the process over again what settings do I need to provide to make sure no duplicates get created etc.
    Any help is really appreciated.
    Thanks

    Hi
    There are a couple of ways to get around the issues that you are facing such that import process is not interrupted because of these. They are as follows :
    1. Use ArchiveReplicationException component . This will keep the import process running and make a log of the failed process which can be used for assessing / gauging the success of the import and what all needs to be redone.
    I would suggest this as the option for your case.
    2. Put the config variable for arciver exception to 9999 so that the archive process stops only after hitting the limit of 9999 errors.
    I would suggest to go for step 1 as that would be a much more foolproof and methodical way of knowing what all items have failed during import.
    Thanks
    Srinath

  • Logic Studio 9 - Installation Failed - HELP!!!

    Macbook Pro
    2.4 GHz Intel Core 2 Duo
    RAM - 4 GB
    10.6 Snow Leopard
    I just purchased a brand new copy of Logic 9 and installation has failed every single time I've tried, for hours now.
    Have tried installing w/ and w/out jampacks and audio content, nothing seems to work...am I doing something wrong?
    Thank you so much for any help.

    Hi,
    You don't give much info in terms of how and when your installation failed. From what you say, though, you might have defective disks (or maybe a hardware problem), and no matter what you do, they won't work. In Denver you have an apple store? Take them and your computer in and let them try to install, and go from there.
    Good luck,
    Ray

  • Facetime call always failed :( help me

    this recent days i cant make a facetime call with my family anymore. It always said "calling failed"
    But i still can use facetime with my friends except for my family that live far away from me.
    Help me 

    Hi Chai Chin Su,
    If you are having issues connecting to certain other people in FaceTime and the issue has just started recently, you may find the following article helpful:
    Apple Support: Unable to make or receive FaceTime calls after April 16, 2014
    http://support.apple.com/kb/ts5419
    Regards,
    - Brenden

  • On Mac 10.5.8 download Failed help please.

    Hi all,
    I'm on a Mac pro here, v10.5.8. I try downloading something (on safari) and it says verification failed.  I checked an i-mac upstairs and the same thing. 
    I was able to receive the download via a zip file someone sent. (this was a couple weeks ago).
    These downloads have updates which I'm trying to get. But again, I'm getting verification failed. I installed Firefox and tryed it that way, It fails and says codec overrun, failed to mount.
    I have not had any download problems in the past, both with dsl or now fios except for this one.
    I did alittle research and see suggestions like resetting spi or router firewalls???   How do I do that, I believe I have the Router M1424WR.     
    I do believe this may be my issue. Others seem to get these downloads, but I can't on my two macs which come from this one router.
    Thank you for any suggestions.
    Rich

    there is a slight chance that it's a config on the pc's that are common, as odd as it sounds.   Try the apple broadband tuner and let me know if it helps.  there was a recent problem like this for a couple mac users
    http://download.cnet.com/Apple-Broadband-Tuner/3000-2094_4-84616.html

  • DcPromo fails Help

    Hello ,
    I'm  currently setting up a test lab,  The purpose of this lab is to allow me to learn AD Site and Service.  I'm using Hyper-V 2012 for the environment and Virtual lans for the sites.  192.168.10.X. 192.168.20.X 
    I've also setup  routing and remote access on the host server (Nat) to allow the 2 subnet to communicate,   This all looks to be working as it should . 
    I've installed to Dc and DNS with issues on 192.168.10.X , I've setup My site and Subnet within Sites and Services. 
    Now here is the issues.... 
    When I try add a Dc to 192.168.20.X . when it get's to the Prerequisites Check it fail's ...
    "Verification of outbound replication failed. error reading the options property of the NTDS setting Error unknown (0x8000500C) "
    Run repadmin /showrepl 
    I get the following 
    DSReplicaGetinfo () failed with status  -2146893041 (0X8009030f)
    The Message ar signature supplied for Verification has been altered . 
    PS: all Firewall  have been dropped . 
     If someone could point me in the right direction to get this lab setup that would be great 
     

    I have the same problem...
    Two server 2012 R2 on differents subnets with routing and remote Access and i have the same message.
    No problems with ping, and the second and future DC is now  on the domain, but it can not reply os make child
    can anybody help me?

  • Mail displaying the message "cannot get mail the connection to the server failed" Help!!!

    Hi
    Overnight both my hotmail accounts on my Iphone 4s, through Mail, have stopped working and I cannot access my email. Every time I try I get the message "Cannot get Mail. Connection to the Server Failed"
    I have rebooted my phone, deleted and readded the accoutns and even reset my network settings to factory seeting but nothing works. A few hours ago it randomly started working again but has since stopped.
    Please Help!!!

    Contact Microsoft to see if Hotmail is having any issues.
    The issue described is not an iPhone or iOS issue.

  • Hi! I brought an iPhone 4 off my friend at work. The day I brought it, it was working fine but now I can't seem to send any messages or make phone calls. The network is showing up fine but each time I try to make a call it says "call failed" help any1?

    Hi! I brought an iPhone 4 off my friend at work. The day I brought it, it was working fine but now I can't seem to send any messages or make phone calls. The network is showing up fine but each time I try to make a call it says "call failed" I can't seem to send any messages either? I can use the Internet fine and everything else on the phone. Can anyone help?

    Hi chelsinator,
    You can reset the phone and it won't cause any problems or cause you to lose any data - Hold down the Home and Power buttons at the same time and continue to hold them down until the Silver Apple appears.
    The other thing you should do is to reset your network settings: Settings>General>Reset>Reset Network Settings. You will have to set up your Wifi again, but that oftentimes clears things up.
    Cheers,
    GB

  • K900 UPDATE FAIL, HELP PLEASE

    I am trying to update my k900 (rooted i think). The instalation seems to go ok but after the restart it says 'Installation failed, failed to install ota package'.
    Any help would be massively appreciated
    Thanks
    Matt.

    I have the same problem, i've just received the phone, i have turn it  on and look for update.until yesterday there was an upgrade about 577MB but failed every time, today there is a new upgrade about 91 MB but fail it toooooo.
    i have tried to do updates many times but all failed, i have tried to install updates even stopping all not necessary programs to free some memory but do not work.
    HOW IS THIS POSSIBLE!!! This would be the Top Lenovo phone!?
    Plese Fix this problem as fast as u can.
    My Best regard
    Maurizio

  • OSP fails Help!!!!!

    I have sucessfully installed OSP. My probelm is: after building my "component" in OSP and using that staging area to install my software.
    I have created a top level component in OSP. On the machine where I made the component (both staged and verfied) the install works flawlessly (as I am ruunig it from the hard drive).
    If I copy the entire Stage directory (and all of it's sub directories) to another machine and run the desired setup.exe, I receive the Welcome screen and then I am correctly taken to the file Location screen. I cannot get beyond the File Location screen. When I press the Next button I am given a dialog box that says "There was an error during loading library: standardDialogs". I am given the options to:
    1. stop this product
    or
    2. stop all product installations
    Since this is the only product to be installed I am unable to proceed with the install.
    Per the documentation I have copied the oracle.swd.jre and oracle.swd.oui directoies from the osp install set. These full directories are at the root(stage) directory level of my components install set. I know they are correctly pointed to in the oraparms.ini file for my product/component because if I change the path to a false value, setup.exe fails immediately saying it cant find ".../jre.exe".
    I have tried this install on a WIN200 machine that only has Developer 2000 in it (no OUI). I've tried it on an NT 4.0 server with just the 8.1.6 client (no OUI). I have tried it on an NT 4.0 server with no installed Oracle products. I've tried it on an NT 4.0 workstation with Developer 2000 and with OUI already installed (I also tried the install from the existing OUI on this machine by pointing to the my product.jar). I have tried it on a WIN 98 with no Oracle products installed on it. They all yield the same results as I described above.
    So I can only conclude from this that some dll on the "development" computer exists outside of my stage directory that allows the install of my component to work there but not elsewhere. Any ideas what this might be?
    TIA,
    Ed.

    I have the same problem...
    Two server 2012 R2 on differents subnets with routing and remote Access and i have the same message.
    No problems with ping, and the second and future DC is now  on the domain, but it can not reply os make child
    can anybody help me?

Maybe you are looking for

  • How do I use Time Machine to downgrade from Snow back to Leopard?

    I have a MBA and optical drive, and I use Time Machine to backup. I'd like to revert back to pre-Snow, and pre 10.6.1. Where/how do I do this with time machine? Do I go to a previous date that had the old OS, and just select the System folder and the

  • User ID and password Popup in Client proxy

    Hi Experts, I created a client proxy to consume a webservice.When i execute the proxy, it pops up for user id and password, i created one logiccal port also using tcode SOAMANAGER. during creation of the logical port, i entered teh user id adn passwo

  • Late 2009 iMac running Yosemite freezing and won't wake up when Elgato Eye TV starts to record?

    As above really, not much more to add. My husbands late 2009 iMac recently upgraded to Yosemite (latest update installed yesterday) freezes while in sleep mode and has to be 'force shutdown' by holding power button down and then restarted to get it g

  • Folders and documents on desktop

    when i was in 10.3.9 the items on my desk top were neatly lined up in two columns on the right of my desk top with the icons in the columns about 4 cms apart. moving to 10.4 has made them about 8 cms apart. how can i get them close together again? an

  • Use String Variable in New Object Creation

    Thanks to those who review and respond. I am new to Java, so please be patient with my terminoloy mistakes and fumblings. I am reading in a file and I want to create a new object based on specific field (car for example). As you will notice I grab fi