The efficiency of oci program with OCI_COMMIT_ON_SUCCESS

I have write a demo program to insert 1000 row data into a tab.
As I want to commit at every insert operation, I call OCIStmtExecute with OCI_COMMIT_ON_SUCCESS parameter.
And the time cost for each row is between 5ms and 10 ms.
At the same time, insert data using SQL:
declare
return_res number(4);
aa1 varchar(15);
aa2 varchar(150);
aa3 varchar(150);
aa4 varchar(150);
aa5 varchar(150);
aa6 varchar(150);
begin
for i in 1..1000 loop
aa1 := '13900000001';
aa2 := '000102030405060708090a0b0c0d0e0f';
aa3 := '000102030405060708090a0b0c0d0e0f';
aa4 := '000102030405060708090a0b0c0d0e0f';
aa5 := '000102030405060708090a0b0c0d0e0f';
aa6 := '000102030405060708090a0b0c0d0e0f';
insert into avinfotab_3g1 values(i,aa1,aa2,aa3,aa4,aa5,aa6);
commit;
select count(*) into return_res from avinfotab_3g1;
delete from avinfotab_3g1 where strsImsi = '13900000001';
commit;
end loop;
end;
result:
Command was executed successfully
Executed: 6/2/09 4:10:27 PM CST Execution: 922/ms
It's cost less than 1ms per row.
Why the OCI program's efficiency so low?
Edited by: bigtreefxs on 2009-6-2 下午11:06
Edited by: bigtreefxs on 2009-6-2 下午11:08

As wel the commit in the pl/sql block is executed as part of one pl/block executed on the server.
If you do the execute in oci from a client app, you have as many roundtrips as execution...

Similar Messages

  • Problem with the active version of the transfer rule ABAP program with sour

    Hi,
    I have a problem with the active version of the transfer rule ABAP program with source system EXCEL. 
    The system does not react to changes done in the transfer rule coding. For FISCPER I have hardcoded the result 'BABABA' and still the results delivered are those from the CSV.
    Resetting the system buffers does not help. The problem is systematic in combination with source system EXCEL (i.e. not only 1 InfoSource).  Checking the active program Extras->Display Program shows the coding (result='BABABA') being there, but
    as stated, the system does not produce the result BABABA, but instead the result of the CSV.
    It seems as if the original version from the very first activation of the transfer rule program remains somewhere and continues to be used.  Does anybody know how to flush it out and get the system to actually use the coding appearing as the active program.
    I have posted an OSS note, but SAP takes it time to answer and I am under time pressure so I figured that maybe one of you know who to solve it before SAP does.
    Greetings and thanks,
    Martin

    Hi martin,
    just try to go out the RSA1 and then return to your infopac. ...
    sometimes there some "cache" trouble

  • Who has the book:Object-Oriented Programming with ABAP Objects

    Hello everyone
    Now i want to learn ABAP OO,and Lots' of guys told me that the book  Object-Oriented Programming with ABAP Objects is realy a good book.but i searched on the net,and could not got PDF of this book,could some one gave me the net address if you know where to download the book or send me to my Mailbox:<email id removed by moderator>,I will very glad to receive any response from you,
    of course,if you have some advise on how to learn ABAP OO or some other material ,hope you could share your meaning with me, hope to receive your response.
    Best regards!
    From Carl
    Moderator message : Moved to career center.
    Edited by: Vinod Kumar on Aug 27, 2011 9:21 AM

    I'm sure you're not asking for illegal, "free" downloads. You can legally purchase the book, also in electronic format, at sap-press.com
    Thomas

  • What is the best dvd burning program with a nice menu like idvd that works with Final cut pro

    What is the best dvd burning program with a nice menu like idvd that works with Final cut pro, I am wanting to burn mainly wedding dvds but also sports and other things we used to use idvd but then upgraded our computers and now we dont have it. idvd was the only thing i could find that worked.
    Thanks

    There is no real substitute for iDVD.
    Why is there no iDVD on my new Mac? How do I get it and how do I install it?
    https://discussions.apple.com/docs/DOC-3673
    To burn a DVD with iDVD from the latest version of iMovie, you have to export the movie using the Export button and select 480p as the size. Open iDVD and start a new project, then drag that exported movie file into the iDVD menu window, avoiding any drop zones you see.

  • What is the efficient way of working with tree information in a table?

    hi all,
    i have to design a database to store,access,add or delete(the tree nodes) the tree information. what is the efficient way of accomplishing it?
    let's assume the information to be stored in the table is parent,child and type(optional).The queries should be very generic(should be able to work with any database).
    anybody has any suggestions?I have to work with large data.
    quick response is highly appreciated.
    thanks in advance,
    rahul

    Did you check out this link?
    http://www.intelligententerprise.com/001020/celko1_1.shtml
    Joe Celko has really gave some interesting way to implement tree in a rdbms.
    Best wishes
    Anubrata

  • How to use the Eudora e-mail program with new ports

    For those of you that still use Eudora as your mail program. Here is how I made the required changes for the new port settings
    1) Open Eudora and from the "Tools" drop down menu select "Personalities"
    2) In the "Personalities" pane - right click the account you want to change and select "Properties"
    3) In the "Generic Properties" pane change the following
       a) Change the SMTP server to    smtp.verizon.net      and leave the "Authentication Allowed" box checked
       b) In the"Secure Sockets When Sending" selection box pick "Required,Alternate Port" . This both turns on SSL
           and makes the port  number 465 as required by Verizon
    4) Click the "Incoming Mail" tab at the top and then make the following changes
       a) Change the POP server to     pop.verizon.net
       b) In the"Secure Sockets When Sending"  selection box pick "Required,Alternate Port" . This both turns on SSL
            and makes this port  number 995 as required by Verizon
    Thats it . It should work for you now. You need to do this for each "Personality" (Sub account) you have

    Eudora users may also need to make changes to Eudora's Options (Tools > Options) "Getting Started", "Checking Mail" and "Sending Mail" in addition to the changes for each Eudora Personality. I outlined those changes in the "Eudora & server changes" thread--note there is a typo ("smpt" rather than "smtp") in the first post (couldn't edit that post to make the correction) in the thread so make sure to check the entire thread as a later post shows the correct entry.
    I had problems with Eudora sending mail (I didn't have problem with incoming mail because I don't use Verizon's servers for that) until I made changes to both Personality accounts and to the Option/suboptions noted above.
    Did you get things to work properly without having to make changes in Options?

  • Do I need the "Apple Mobile Devices" program with just an iPod nano

    I'm going through the list of programs on my computer (using the "Programs & Features" tool in Control Panel, on Windows7) and trying to figure out what's on here that I don't need & can safely remove.
    There's one program called "Apple Mobile Devices Support" (that's what the Control Panel utility calls it, I think it's also called "Apple Mobile Device Service") I did some google-seaching to find out what it is, and apparently it's needed in order for iTunes to connect to iDevices such as iPods & iPhones. I couldn't find a very clear explanation of it, but as far as I can tell, it might just be needed for some kinds of devices, like iOS devices. All I have is an iPod Nano, which is one of the few existing Apple devices that *isn't* iOS. I don't have an iPhone or iPad or iPod Touch, etc.
    Can I use iTunes as normal to manage my music library, download media, manage my iPod library/playlists/etc, without having the Apple Mobile Devices Support program? Or is it needed for connecting iTunes to ANY device, including a simple iPod Nano?
    (BTW I connect my iPod to my computer using a standard iPod/USB cable)

    It's a 4th generation IIRC
    Yeah, I'm pretty sure that one does need AMDS for at least something.
    (I know there's an article around somewhere which gives the precise generation at which point AMDS is used by nanos ... but I just can't remember which particular article it is. I keep finding it only by accident on those occasions when I do find the reference.)

  • An oci program compiled with oracle 9 run in a machine has oracle client 10

    Hello,
    I would like to know if an OCI program compiled with Oracle 9 client libraries can communicate with Oracle 9 and Oracle 8 database servers by using the oracle client 10 on Solaris? Is there any known problem of this combination?
    Many thanks,

    It largely depends on what your program does. If the program uses features which are only available in Oracle 9i and not in Oracle 8i then you are likely to get some errors. For the latter case, ie, compiling the program with Oracle 9 libs and runnig with Oracle 10 libs, talking to 9i server should be fine while 8i server may give you some unexpected behaviour.
    Thanks,
    Sumit

  • How to delete the row in table control with respect to one field in module pool programming?

    Hi,
    Can I know the way to delete the row in table control with respect to one field in module pool programming
    Regards
    Darshan MS

    HI,
    I want to delete the row after the display of table control. I have created push button as delete row. If I click on this push button, the selected row should get deleted.
    I have written this code,
    module USER_COMMAND_9000 input.
    DATA OK_CODE TYPE SY-UCOMM.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
         WHEN 'DELETE'.
            LOOP AT lt_source INTO ls_source WHERE mark = 'X'.
                APPEND LS_SOURCE TO LT_RESTORE.
                DELETE TABLE LT_SOURCE FROM LS_SOURCE.
                SOURCE-LINES = SOURCE-LINES - 1.
            ENDLOOP.
    But I'm unable to delete the selected rows, It is getting deleted the last rows eventhough I select the other row.
    So I thought of doing with respect to the field.

  • Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help

    Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help with this, please.

    jpg does not support Layers.
    Just to make sure, what exactly do you mean by "stacking photos" and what do you want to achieve thereby?

  • Why in September when I purchased a through the Edge program with the $5.00 insurance/protection plan (that the sales associate handling the purchase on the phone recommended), is no longer valid?!  2 months after getting the Edge device, I go to make a c

    Where is the insurance and original Edge Agreement from September?  No one in Verizon knows. I purchased (rented) a Galaxy S4 through the Edge program, with the $5.00 insurance/protection plan (that the sales associate handling the purchase on the phone recommended),which is no longer valid!  2 months after getting the Edge device, I go to make a claim and Asurion will not honor it because I am not covered; however, all the order confirmation receipts emailed and physically sent with the device show the addition of insurance when I signed up for the Edge program.  According to Verizon (via live chat with 'Nicole'), this $5 protection plan no longer exists and the order numbers I have on my paperwork (multiple documents) are invalid in the Verizon system.  For over a week, I have spent more than 10 hours on the phone, live chat and in the store trying to get some sort of resolution and the customer service reps just put me on hold or promise to "call me back within 30 minutes after they speak to a supervisor" and (surprise!) they never return my call.  Or they send me to the store to show proof of my documents, but then those associates cannot help either.  Also, the 'Edge Agreement' in my profile has the wrong device (and serial #), wrong payment amounts and no mention of the 'consumer protection plan'  on it, which is listed on the order confirmation sent via email and with the actual Edge device on September 23.  Obviously, there was some sort of glitch or mistake on Verizon's part, but NO ONE WILL EVEN TRY TO ACCEPT THAT FACT!  WHY WON'T ANYONE GET BACK TO ME WITH SOME SORT OF EXPLANATION FOR ANY OF THIS?!  Is it typical for Verizon to do away with a service (i.e., $5.00/month protection) and not inform the customer of this?  And is it company policy to be as unhelpful as possible to a paying customer who needs assistance when there is cleary something wrong on your end?  And finally, am I really suppose to believe that Verizon customer service has no email addresses or fax machines so a customer can send you proof of what is on the receipt you sent and that I have to take more of my time to go to the actual store?!  Finally, does anyone at Verizon even read these messages or even give a F@#k about the customer as long as they keep making money?! 

    RLites22,
    I can understand your concern about the insurance you have on the line. I want to make sure that I put a fresh pair of eyes on your account to find out exactly what is going on. I did send you a Direct Message. Can you please respond back to me in the direct message so we can go over the account specifics. I really hope to hear back from you soon.
    KevinR_VZW
    Follow us on Twitter @VZWSupport

  • Can anyone actually help me with the up-to-date program???

    First off, I want to state that I have been an Apple customer for years owning multiple iPhones, MacBooks, and iPads.  Although I've had some minor glitches in the past, they were all fixed with relative ease.  I recently purchased (8/11/12) an iMac as I am going back to school.  This purchase has been plagued with issues from the start.  I ordered it online and picked it up at a local Apple store.  Upon getting my computer home, I realized there wasn't a mouse or keyboard.  I called the store back and explained the problem to them and they asked that I come back to the store with the receipt that was taped to the box to get a new keyboard and mouse.  Upon returning, it turned out that they gave me someone else's computer.  Luckly everything was fixed....but that was the start of the iMac from ****.
    So this issue all started because I couldn't get my new iMac to find my documents on iCloud (originally written on my iPad).  So I called Apple Care to figure out what I was doing wrong.  We finally figured out that my iMac wasn't finding my iCloud documents because I needed the Mt. Lion Up-To-Date program.  Soooo they sent me the link to redeem the program for free since my computer is new....did I mention I just bought this iMac???  So I input all the data (name, address, date of purchase, computer serial number) yet I got a message back saying: " This is an already claimed serial number."  So I called Apple Care back since clearly something was wrong.  So hours go by and it is finally determined that someone else used my computer serial number to redeem the copy of the Up-To-Date Program.  Numerous customer service reps (and I've lost count how many people I have talked to in the last 24 hours) have stated that the computer serial number which is registered to me was used by someone else, obviously they couldn't give me that person's name or contact info.  In addition, the customer service people all said this has never happened before and that they didn't know what to do about it.  So I've been forwarded to numerous people to no avail.  The latest contact, which was given to me by a Senior Supervisor in another department because he didn't know how to fix this, makes me want to ram my head through a wall.  I was told to send an email to [email protected] explaining the situation and various details I've gotten so far.  Their email reply made me want to scream when I read it because they clearly didn't read or investigate the issue as they gave me a blank statement: "
    Dear Apple Customer,
    Thank you for contacting the OS X Mountain Lion Up-To-Date Support Team.
    We are unable to locate your claim in the database.  To further assist us please send the following information to [email protected]:
    Your Claim Reference Number
    Email Address the Claim was submitted Under
    Requestor Name
    If you have not submitted a claim please go to the OS X Mountain Lion Up-to-Date program page at
    http://www.apple.com/euro/osx/uptodate/ to initiate one.
    Please note that we can assist only with inquires for the OS X Mountain Lion Up-to-Date program.  For all other questions please consult http://www.apple.com/.
    Thank You For Choosing Apple
    As you can see they are asking for a claim reference number.....the **** system will not let me make a claim because someone else already has!!!!!!!!  That's the problem!!!!
    I don't know what to do!!!  All I want is for my iMac to work with iCloud!!!! I also don't think I should have to pay for the program because I am entitled to it for free since I just bought the computer.  By far this is one of the worst customer service experiences I have ever had (even worse than the **** cable company...and we all know they're idiots)!!!  Does anyone know of anyone I can contact to fix this issue????  Also, I don't see how someone could of used my serial number if they didn't know my address information.  I just heard last night about a possible Apple ID hacking on the news.  I wonder if this could be related, since everyone I've talked to has acknowledged the issue but no one has given me a situation.  Another coincidence (that may or may not be related), the credit card connected to my iTunes account was recently closed by the bank for fraudulent charges.  That card is primarily used for my iTunes account, so I also wonder if that could be related.  In the end, I am disgusted and appalled by the customer service I am receiving.

    If it were me I would schedule an appointment at the store where you bought it and meet with the Manager of the store in person. Print this post and bring it with you along with your iMac.
    And change the password on your Apple ID and then see if there are in purchases in your account that you did not make. If there are then someone did get your ID and password. If not someone got your Credit Card information from somewhere and used it.

  • Itunes will not connect to the internet or access store with working internet connection. ive already tried updating to latest version and turning off windows firewall. running a new dell computer w/ windows 7 with minimal programs installed

    Itunes will not connect to the internet or access store with working internet connection. ive already tried updating to latest version and turning off windows firewall. running a nItunes will not connect to the internet or access store with working internet connection. ive already tried updating to latest version and turning off windows firewall. running a new dell, windows 7 ultimate, no virus or firewall programs installed.

    This my sound too simple, but I just kept clikning on the arrow next to the selected music and it finally "Kicked" in.
    I live in Europe ,So Be persistent and don't give up !  Aug. 2013

  • I have a power mac g4 with mac os 10.4. 11 , I want to change the hard-drive ,what program  can I used  to transfer one hard-drive  to another  hard- drive  on this mac pc.

    I have a power mac g4 with mac os 10.4. 11 , I want to change the hard-drive
    ,what program  can I used  to transfer one hard-drive  data to another  hard- drive  on this mac pc.

    The Disk Utility, Carbon Copy Cloner, SuperDuper, or similar software. For best results, place the second drive inside the computer or in a FireWire enclosure and boot the computer from it before removing the internal drive.
    (66989)

  • I''m new to Mac, how do I install Adobe CD? I put it in the CD drive and get a menu, everything I click on goes nowhere. In Microsoft, I installed many programs with no problem

    I''m new to Mac, how do I install Adobe CD? I put it in the CD drive and get a menu, everything I click on goes nowhere. In Microsoft, I installed many programs with no problem

    Is the Adobe CD a MAC app ?
    If it is a program for Windows you will not be able to install it.
    If you nedd that program you can either buy the equivalent for Mac or install a way to run Windows under Mac (may be a cheaper solution)

Maybe you are looking for