SetMaxIterations API not setting the max number of iterations

Hi
Am using oracle 9.2.0.1.0 version.
trying to use OCCI's bulk insertion feature using AP setMaxIteration, addIterations and executeUpdate combinations.
from code (OCCI) if i do stmt->setMaxIterations(60)
and then check for number of max iterations set by setMaxIterations using getMaxIterations it returns me 1(default value).
Did setMaxParamSize as well.
Also, moving ahead if I bind params of the statement and on reaching addIteration API, it throws an SQLException -: "ORA-32142: maximum number of iterations exceeded"
Hope this was not a bug in this version of Oracle, if so request you to let me know in which version it got fixed and the patch location.
Also, if anyone has this version, pl write down few lines of code and verify in the same oracle version, so that I can figure out whether this is a problem in my code or oracle supplied OCCI 9 libraries.
Thanking you in anticipation.
Regards
Navin Sharma
Code snippet:
conn = env->createConnection("scott", "tiger","");
stmt = conn->createStatement("INSERT INTO table_name VALUES(:1,:2)");
stmt->setMaxIterations(62);
cout<<"Number of iterations set by setMaxIterations - "<<stmt->getMaxIterations();
stmt->setInt(1,100);
stmt->setString(2,"Hello OCCI");
stmt->addIteration();
stmt->setInt(1,400);
stmt->setInt(2,"Am using bulk updates");
stmt->executeUpdate();

Please update to the latest patch on 9.2 or 10g.
Rgds.

Similar Messages

  • In Oracle 10g, what is the max number of values we can pass to  'IN' Clause

    Hi,
    In my SQL query i have a scenario like, i have to pass the values to 'IN' Clause dynamically from other application. I want to know what is the the max number of values i can pass to 'IN' Clause.
    i have searched in many pages i seeing answers like 'may be 1000' , 'not sure'....
    Could any one tell me the exact limit of IN Clause in 10g.
    Thanks in Advance.
    Chandran

    Hi, Chandran,
    Chandran M wrote:
    In my SQL query i have a scenario like, i have to pass the values to 'IN' Clause dynamically from other application. I want to know what is the the max number of values i can pass to 'IN' Clause.
    i have searched in many pages i seeing answers like 'may be 1000' , 'not sure'....Don't overlook [Dont want to know|http://forums.oracle.com/forums/thread.jspa?messageID=2683385&#2683385]. This may explain why people are reluctant to give a straight answer.
    Could any one tell me the exact limit of IN Clause in 10g.1000 items such as IN (1, 2, 3, ..., 1000)
    No limit on the number of sets: IN ((1), (2), (3), ...) *<=== NOT QUITE!* See below
    No limit in sub-queries: IN (SELECT ...)
    Edited by: Frank Kulash on Jun 3, 2009 9:43 AM
    The limit of 1000 applies to sets of single items: (x) IN ((1), (2), (3), ...)
    There is no limit if the sets contain two or more items: (x, 0) IN ((1,0), (2,0), (3,0), ...)
    Thanks to Michaels for pointing this out.
    Edited by: Frank Kulash on Jun 3, 2009 10:22 AM
    Fixed link

  • TS2795 When I set CALL FWDING  "ON" and I set the phone number and I back to CALL FWDING, the option returns to "OFF" status, why this is happening ?

    Hello,
    Can someone help me to activate the Call Forwarding option on IPhone 5, OS 6.01 ??
    Currently I am trying:
    * Settings -> Phone -> Call Forwarding -> "ON" -> SET THE PHONE NUMBER ->"Call Forwarding button"
    But when the screen returns to Call forwarding, the option returns to "OFF" mode.
    * I already try to call to *72 to "activate" the call forwarding option, just didn't work.
    I don't know if I need to do an additional configuration, If someone has an idea, please let me know!!
    Regards
    Cami

    Who is your carrier? Not all carriers support enabling and disabling call forwarding using the controls in Settings.

  • How to change the max number of member display in Target Group

    Dear Experts,
    We are using 2007 CRM Marketing.
    When I search and open a Target Group it displays me maximum of 100 entries of members over 11 pages. how do I increase or decrease the max number.
    Appricate you help.
    Thanks,
    Shabbir Hussain

    Hi,
    you can set the number of members that will be displayed in target group.
    Go to any profile group -> open the graphical modelling -> open settings.
    Here you can ajust the displayed number of members in a targetgroup.
    These settings are user-dependent and saved in table CRMD_MKTTG_PERS.
    Regards,
    Claudia

  • Finding the Max Number

    Hi All,
                     I have table from which i have to find out the site and its max number.i fetch all the data in ITAB. now i am not understanding wat to do to find the max number.here is my problem...
    Site              Number
    1001             2
    1001            1
    1001            5
    1001           50
    1001         30
    1002          1
    1002          100
    1002          10
    now i have all this data in my ITAB and den it is printing in my alv.
    now i want data to be like this...
    Site            Number
    1001          50
    1002         100
    plz tell me wat to do...as i am very new in this area.
    Thanx,
    Vaneet
    Moderator Message: Basic Post. Put some effort of your own first.
    Edited by: kishan P on Dec 10, 2010 3:42 PM

    Pretty straigth forward.
    Just sort the internal table by site number descending. That way you know you always have the highest number in the first record for the site.
    sort itab by site number descending.
    loop at itab.
      at new site.
         itab2-site = itab-site.
         itab2-number = itab-number.
         append itab.
      endat.
      continue.
    endloop.

  • Alerts not retrieving the correct number of records

    Hi,
    I have created alerts to run plans. These plans are getting records from DB and populating the ADC. The alerts are getting executed but are not retrieving the correct number of records.
    I have created 5 alerts to run 5 plans all in the same time. The error at the "Data Flow service status" window is :
    CACHED RESULT
         REQUEST ID: {4EB6B955-96B3-4AF2-B836-6C9F417D47A6}
         EXECPLAN ID: {11372B4D-9ACE-4CFB-831F-11028FF996D5}
         EXECPLAN NAME: xxxx
         FIX COUNT: 0
         START TIME: 6/8/2006 12:00:01 PM
         EXECUTION TIME: 0:00:00
         Sink Records Blocks Disk Blocks Fix Count Hit Count Execution Status
         0: 0 0 0 0 0
    Complete - ERROR Error while processing the data for the step 'SQL Query'
    This error is seen for 2-3 plans .......
    But if i execute the plan manually from design studio there is no error.
    So
    1. Do i need to change anything in the config files to increase the MAx memory block?
    2. Is there any way, the plans can be run one at a time i.e. configure alerts in such a way that if one plan finishes the other one starts automatically? Currently i have scheduled the plans to run at the same time using Alerts..
    Please help...
    Thanks

    Here is one 'culprit' you can verify. Open DesignStudio. You should "--not--" see any grids or icons on (near) the botton status row. If you see them - right click and delete them. These are plans with same_names put in 'locked' state. After you do this. close your design studio.
    Note- if you ever open a plan in designstudio, always "save" it and close it (exit). Donot click on window [x] mark to close the appl.
    After above verifrication -- restart EnterpriseLink and restart PlanMonitor, verify if everything runs fine.
    --sanjeev                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • E-edition freezes up with 1A.pdf The max. number of files are already open no other files can be opened or printed until some are closed , showing four of five and computer froze any I must close by shutting down manually.

    My online E-Edition newspaper will freeze up after loading the front page and gives me the message that the max. number of files are already open and no other files can be printed or opened until some are closed. 1A.pdf. When you click ok it repeats itself and you have to force shutdown by holding off button. I'm totally stumped.

    I have read that "1000" is default maximum for Acrobat 4 or Acrobat 5 (I don't remmember it exactly anymore). Concerning my PC and RAM. I have a high-end graphical computer at my office; so I'm sure the RAM memory is not the reason.
    Anyway, thanks for answer.

  • Set the max bytes per packet for an input stream

    Hi,
    I got this problem:
    I want to store some images into a DB. Now if the images are huge, the DB told me, that the packet size is too large
    maybe like that : 'Packet for query is too large (1668641 > 1048576)'
    I use an ByteArrayInputStream for the transmission to the DB.
    So if I am not able to set the max. packet size of the DB is it possible to cut the input stream into pieces to send them to the DB ?
    regards,
    Olek

    None of this makes any sense.
    The MySQL driver will be using TCP to talk to the database server. TCP is a stream oriented protocol. You can't control the size of the packets (other than the maximum by frigging with OS settings - don't do that). Neither can the server detect the sizes of incoming packets. It just sees a stream of bytes and has no idea where the write() boundries are or how the TCP protocol split that into IP packets - it's just a stream of bytes arriving in the same order they were sent.
    And... the max TCP segment size is nowhere near 32Mb, so that doesn't make any sense eeither.
    So, I conclude (especially in light of the answer about the config settings) that "packet" is a badly abused term by MySQL that allows it to limit the size of individual requests in order to provide some kind of protection against badly written clients and/or malicious attacks. If you need to send more data than this, just up the limit - especially if this is an intranet application where the client is under your control and attacks are unlikely.

  • Do You have a method of EWS API to set the share a calendar for other another user

    Do You have a method of EWS API to set the share a calendar for  another user , kindly if you can help as soon as possible i'm going to develop an application and share a calendar events as well ,,, thanks my regards 

    You can add and remove delegates.
    https://msdn.microsoft.com/EN-US/library/office/dn641959(v=exchg.150).aspx This does not work exactly like the sharing feature in Outlook in that no sharing message is sent.

  • How do I set the port number on my Ipad

    I need to find out how to set the port number on my IPad to use Telus Email which will receive but not send

    You will not be able to send any mail until you tell it the outgoing mail server.
    How did you learn about the port number?  If you google your isp and the words mail settings, you will likely find a page with all of the needed settings, including the outgoing server name, and a confimation of the port needed.
    Once you know those two answers, go to the setting screen, and touch the outgoing server field, and you will be able to enter the name.  Spell it right. Then touch the advance tab, then, the port number, and enter the proper port number.
    If you get those entries right, you should be all set. 

  • How do I find the max number of sessions ever recorded?

    Hi,
    I see sessions_highwater column in v$license shows the max number of sessions since the database startup time, but I'm wondering if there is a view that shows the max number of sessions ever recorded? (i.e. before the last database restart)
    Thanks!
    Jon

    You can check the number of sessions from the below query using hist views. But you can only go back upto  the retention policy setting.
    SELECT   res.snap_id, s.begin_interval_time, s.end_interval_time,
             res.instance_number, res.resource_name, res.current_utilization,
             res.max_utilization
        FROM dba_hist_resource_limit res, dba_hist_snapshot s
       WHERE s.snap_id = res.snap_id AND res.resource_name = 'sessions'
    ORDER BY s.begin_interval_time, res.instance_number

  • How to change the max number of the user session?

    Hello,
      The max number of the user session of my system is 6,I want to change it,how should I do?

    Hi Begue,
    This can be done by changing the value of profile paramter rdisp/max_alt_modes. Currently its value in your system must have been set to 6. You can check the value through transaction RZ11. To change it use transaction RZ10.
    For knowing the details of changing values in RZ11 please visit :
    http://help.sap.com/saphelp_47x200/helpdata/en/c4/3a6247505211d189550000e829fbbd/frameset.htm
    After making the changes please restart SAP.
    Please award points if the issue got solved.
    With Regards.
    Ruchit.

  • How to set the Maximum Number of the retry interval in sender cc?

    Hi,gurus:
    You know about how to set the Maximum Number of the retry interval of receiver communication channel in RWB.
    But how to set the one of the sender communication channel?
    Can we set that in integration directory?
    Any help will be appreciated.

    Hi,
    Check this blog, For the settings to be done at SXMB_ADMIN Tuning(IS_Retry_Limit )and the VA
    XI :  How to Re-Process failed XI Messages Automatically
    Also in VA change both inbound and outbound retries. For max no. of retry interval change the default value 300000(5 mins) to 600000(10 mins) or whatever you want.
    Thanks!
    Edited by: Sudhir Tiwari on Dec 16, 2008 7:33 AM

  • Adobe photoshop cs2 download on adobe website does not work-  the serial number does not work?

    photoshop cs2 download on adobe website does not work - the serial number given isn't recognised when you enter it when trying to install. the live chat at adobe cannot help and suggested that I may find the answer here. Can anyone help with this?

    Adobe has decommissioned the CS2 activation servers, so your old serial number is no longer usable.
    If you download the special non-activating version of CS2 that Adobe has made available to licensed CS2 users, you MUST also use the new serial number provided by Adobe on that download page:
    https://www.adobe.com/cfusion/entitlement/index.cfm?e=cs2_downloads
    That S/N does work.  I double checked.

  • What is the max number of hyperlinks supported in a PDF docment?

    What is the max number of hyperlinks supported in a PDF docment?
    How do I find out how many hyperlinks there are in a PDF document?

    I don't think there's a limit to the number of links you can add to a file...
    This code (taken from the reference files) will report the number of links in your file:
    var numLinks=0;
    for ( var p = 0; p < this.numPages; p++)
    var b = this.getPageBox("Crop", p);
    var l = this.getLinks(p, b);
    console.println("Number of Links on page " + p +" is " + l.length);
    numLinks += l.length;
    console.println("Number of Links in Document is " + numLinks);

Maybe you are looking for