Using OleDbDataAdapter Update with InsertCommands and getting blocking locks on Oracle table

The following code snippet shows the use of OleDbDataAdapter with InsertCommands.  This code is producing many inserts on the Oracle table and is now suffering from contention... all on the same table.  How does the OleDbDataAdapter produce
inserts from a dataset... what characteristics do these inserts inherent in terms of batch behavior... or do they naturally contend for the same resource. 
oc.Open();
for (int i = 0; i < xImageId.Count; i++)
// Create the oracle adapter using a SQL which will not return any actual rows just the structure
OleDbDataAdapter da =
   new OleDbDataAdapter("SELECT BUSINESS_UNIT, INVOICE, ASSIGNMENT_ID, END_DT, RI_TIMECARD_ID, IMAGE_ID, FILENAME, BARCODE_LABEL_ID, " +
   "DIRECT_INVOICING, EXCLUDE_FLG, DTTM_CREATED, DTTM_MODIFIED, IMAGE_DATA, PROCESS_INSTANCE FROM sysadm.PS_RI_INV_PDF_MERG WHERE 1 = 2", oc);
// Create a data set
DataSet ds = new DataSet("documents");
da.Fill(ds, "documents");
// Loop through invoices and write to oracle
string[] sInvoices = invoiceNumber.Split(',');
foreach (string sInvoice in sInvoices)
    // Create a data set row
    DataRow dr = ds.Tables["documents"].NewRow();
    ... map the data
    // Populate the dataset
    ds.Tables["documents"].Rows.Add(dr);
// Create the insert command
string insertCommandText =
    "INSERT /*+ append */ INTO PS_table " +
    "(SEQ_NBR, BUSINESS_UNIT, INVOICE, ASSIGNMENT_ID, END_DT, RI_TIMECARD_ID, IMAGE_ID, FILENAME, BARCODE_LABEL_ID, DIRECT_INVOICING, " +
    "EXCLUDE_FLG, DTTM_CREATED, DTTM_MODIFIED, IMAGE_DATA, PROCESS_INSTANCE) " +
    "VALUES (INV.nextval, :BUSINESS_UNIT, :INVOICE, :ASSIGNMENT_ID, :END_DT, :RI_TIMECARD_ID, :IMAGE_ID, :FILENAME,  " +
    ":BARCODE_LABEL_ID, :DIRECT_INVOICING, :EXCLUDE_FLG, :DTTM_CREATED, :DTTM_MODIFIED, :IMAGE_DATA, :PROCESS_INSTANCE)";
// Add the insert command to the data adapter
da.InsertCommand = new OleDbCommand(insertCommandText);
da.InsertCommand.Connection = oc;
// Add the params to the insert
da.InsertCommand.Parameters.Add(":BUSINESS_UNIT", OleDbType.VarChar, 5, "BUSINESS_UNIT");
da.InsertCommand.Parameters.Add(":INVOICE", OleDbType.VarChar, 22, "INVOICE");
da.InsertCommand.Parameters.Add(":ASSIGNMENT_ID", OleDbType.VarChar, 15, "ASSIGNMENT_ID");
da.InsertCommand.Parameters.Add(":END_DT", OleDbType.Date, 0, "END_DT");
da.InsertCommand.Parameters.Add(":RI_TIMECARD_ID", OleDbType.VarChar, 10, "RI_TIMECARD_ID");
da.InsertCommand.Parameters.Add(":IMAGE_ID", OleDbType.VarChar, 8, "IMAGE_ID");
da.InsertCommand.Parameters.Add(":FILENAME", OleDbType.VarChar, 80, "FILENAME");
da.InsertCommand.Parameters.Add(":BARCODE_LABEL_ID", OleDbType.VarChar, 18, "BARCODE_LABEL_ID");
da.InsertCommand.Parameters.Add(":DIRECT_INVOICING", OleDbType.VarChar, 1, "DIRECT_INVOICING");
da.InsertCommand.Parameters.Add(":EXCLUDE_FLG", OleDbType.VarChar, 1, "EXCLUDE_FLG");
da.InsertCommand.Parameters.Add(":DTTM_CREATED", OleDbType.Date, 0, "DTTM_CREATED");
da.InsertCommand.Parameters.Add(":DTTM_MODIFIED", OleDbType.Date, 0, "DTTM_MODIFIED");
da.InsertCommand.Parameters.Add(":IMAGE_DATA", OleDbType.Binary, System.Convert.ToInt32(filedata.Length), "IMAGE_DATA");
da.InsertCommand.Parameters.Add(":PROCESS_INSTANCE", OleDbType.VarChar, 10, "PROCESS_INSTANCE");
// Update the table
da.Update(ds, "documents");

Here is what Oracle is showing as blocking locks and the SQL that has been identified with each of the SIDS.  Not sure why there is contention.  There are no triggers or joined tables in this piece of code.
Here is the SQL all of the SIDs below are running:
INSERT INTO sysadm.PS_RI_INV_PDF_MERG (SEQ_NBR, BUSINESS_UNIT, INVOICE, ASSIGNMENT_ID, END_DT, RI_TIMECARD_ID, IMAGE_ID, FILENAME, BARCODE_LABEL_ID, DIRECT_INVOICING, EXCLUDE_FLG, DTTM_CREATED, DTTM_MODIFIED, IMAGE_DATA, PROCESS_INSTANCE) VALUES (SYSADM.INV_PDF_MERG.nextval,
:BUSINESS_UNIT, :INVOICE, :ASSIGNMENT_ID, :END_DT, :RI_TIMECARD_ID, :IMAGE_ID, :FILENAME, :BARCODE_LABEL_ID, :DIRECT_INVOICING, :EXCLUDE_FLG, :DTTM_CREATED, :DTTM_MODIFIED, :IMAGE_DATA, :PROCESS_INSTANCE)
SID 1452 (BTSUSER,BIZTPRDI,BTSNTSvc64.exe) in instance FSLX1 is blocking SID 1150 (BTSUSER,BIZTPRDI,BTSNTSvc64.exe) in instance FSLX1
SID 1452 (BTSUSER,BIZTPRDI,BTSNTSvc64.exe) in instance FSLX1 is blocking SID 1452 (BTSUSER,BIZTPRDI,BTSNTSvc64.exe) in instance FSLX1
SID 1452 (BTSUSER,BIZTPRDI,BTSNTSvc64.exe) in instance FSLX1 is blocking SID 1156 (BTSUSER,biztprdi,BTSNTSvc64.exe) in instance FSLX3
SID 1452 (BTSUSER,BIZTPRDI,BTSNTSvc64.exe) in instance FSLX1 is blocking SID 6 (BTSUSER,BIZTPRDI,BTSNTSvc64.exe) in instance FSLX2
SID 1452 (BTSUSER,BIZTPRDI,BTSNTSvc64.exe) in instance FSLX1 is blocking SID 1726 (BTSUSER,BIZTPRDI,BTSNTSvc64.exe) in instance FSLX2
SID 1452 (BTSUSER,BIZTPRDI,BTSNTSvc64.exe) in instance FSLX1 is blocking SID 2016 (BTSUSER,biztprdi,BTSNTSvc64.exe) in instance FSLX2

Similar Messages

  • Trying to use Message Signing with Webservices and getting exception!

    Here is the exception I'm getting....
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: [Security:090377]Identity Assertion Failed, weblogic.security.spi.IdentityAssertionException: [Security:090245]No mapping for Identity User Name
    Detail:
    null; nested exception is:
         javax.xml.rpc.soap.SOAPFaultException: [Security:090377]Identity Assertion Failed, weblogic.security.spi.IdentityAssertionException: [Security:090245]No mapping for Identity User Name
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: [Security:090377]Identity Assertion Failed, weblogic.security.spi.IdentityAssertionException: [Security:090245]No mapping for Identity User Name
    Detail:
    null; nested exception is:
         javax.xml.rpc.soap.SOAPFaultException: [Security:090377]Identity Assertion Failed, weblogic.security.spi.IdentityAssertionException: [Security:090245]No mapping for Identity User Name
    I followed step by step the example given on the Weblogic "edocs" pages, but I am at a loss as to what to put on the Identity Asserter Detail screen under "Default User Name Mapper Attribute Type" and "Default User Name Mapper Attribute Delimiter".
    I'm using the example code you can find at the following URL - http://e-docs.bea.com/wls/docs81/webserv/security.html#1061856
    I'm creating my client key pair as specified with a keyname of client_key and password of client_key_password.
    I'm also creating a user in the Admin Console called auth_user with a password of auth_user_password.
    HELP!!!!!

    The error message means you haven't configured the identity mapping between your client cert and a WLS user.
    Here is the WLST script I used in my dev2dev sample(https://codesamples.projects.dev2dev.bea.com/servlets/Scarab?id=S18)
    rlm = cmo.getSecurityConfiguration().getDefaultRealm()
    ia = rlm.lookupAuthenticationProvider("DefaultIdentityAsserter")
    activeTypesValue = array(["X.509"],java.lang.String)
    ia.setActiveTypes(activeTypesValue)
    ia.setDefaultUserNameMapperAttributeType('CN');
    ia.setUseDefaultUserNameMapper(Boolean('true'));
    So I add the X.509 to the ActiveTypes of IdentityAsserter, then I choose the "CN" as the DefaultUserNameMapperAttributeType, finally enable UseDefaultUserNameMapper.

  • Using music library with Genius and getting third party that sounds like ad

    what could be the problem when listening to library that I get audio ads playing in the background an it sounds like multiple streaming ads at one time

    Certainly, have a look at my mod thread for all the info you need:
    http://www.mac-forums.com/forums/showthread.php?p=211953#post211953

  • Macbook pro. app tries to use flash player and get " Blocked plugin" how to uninstall and reinstall flash player. update does nothing ?

    Wife has an older MacBook Pro. when an app uses flash player "Blocked plugin" comes up. I don't know much about mac, tried to update flash player and get newer version already installed, and update and still get same message. How do I uninstall flash player and reinstall?

    Sounds like it is blocked for the website you are at. Check with this:
    You can quickly test whether a recently added plug-in is causing problems by blocking it.
    Choose Safari > Preferences, click Security, then click Website Settings next to Allow Plug-ins.
    Select the plug-in you want to disable on the far left, then click each pop-up menu on the right and choose Block.For some plug-ins, you see pop-up menus for different websites, and you can choose to block each one individually. Use the “When visiting other websites” pop-up menu to block all other websites that don’t have individual settings.

  • How do I block this msg from always popping up "iTunes requires Safari 4.0.3 or later to be installed to use the iTunes Store within iTunes. Use Software Update to download and install the latest version of Safari" bc I can't download the latest software?

    How do I block this msg from always popping up "iTunes requires Safari 4.0.3 or later to be installed to use the iTunes Store within iTunes. Use Software Update to download and install the latest version of Safari". I cannot download this software bc my lap top is to old. The msg literally pops up everytime I make any moves on itunes and is VERY annoying.

    I have a 2006 MacBook with an Mac OS X version 10.5.
    In that case, try downloading a Safari 5.0.5 for leopard from the following location:
    http://www.apple.com/safari/download/

  • Using iPhone 4s with IOS5 and my Music icon has disappeared.  How do I get it back?  Please.

    Using iPhone 4s with IOS5 and my Music icon has disappeared.  Please help me to get it back.

    It should be in your applications folder.  Locate it; click and hold onto it then drag it back to where it was.

  • I used my visa to buy an album, it appeared and i was listenting to it, now when i try to update my iphone and get apps i cannot, it says my card was declined but yet i receviecd the cd

    i used my visa to buy an album, it appeared and i was listenting to it, now when i try to update my iphone and get apps i cannot, it says my card was declined but yet i receviecd the cd>

    Thank you for clarify I'm supposed to read the ENTIRE article. I thought I was just supposed to read the title and magically everything will fix itself. I appreciate you taking the time to help me however I do not appreciate the caps and the way you have addressed the situation. If you are not going to kindly help people/make suggestions just don't try! And for the record my conclusions are not illogical, the iOS7 thing is on the website in small font (which I got by reading the ENTIRE thing) and you should really find a new hobby because your socialization skills need some help! That goes for you too Chris. Not everyone is a tech nerd

  • TS3694 ipod 4gwill not update with computer: i get error 3194 also 1.6gb of other

    ipod will not update with computer: i get error 3194.. i updated itunes and still nothing. tryed to restore,same thing... now i have no music(random) and 1.6 GB of "OTHER"....help me

    This device is not eligible for the requested build: Also sometimes displayed as an "error 3194." If you receive this alert, update to the latest version of iTunes. Third-party security software or router security settings can also cause this issue. To resolve this, follow Troubleshooting security software issues.
    Downgrading to a previous version of iOS is not supported. If you have installed software to perform unauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. First you must uninstall the unauthorized modification software from the computer, then edit out the "gs.apple.com" redirect from the hosts file, and then restart the computer for the host file changes to take affect.  For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Troubleshooting iTunes Store on your computer, iPhone, iPad, or iPod—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart. Also, using an older or modified .ipsw file can cause this issue. Try moving the current .ipsw file, or try restoring in a new user to ensure that iTunes downloads a new .ipsw.
    Error 3194: Resolve error 3194 by updating to the latest version of iTunes. "This device is not eligible for the requested build" in the updater logs confirms this is the root of the issue. For more Error 3194 steps see: This device is not eligible for the requested build above.
    Above from:
    http://support.apple.com/kb/TS3694#error3194

  • TS3694 my iphone 4s said it needed updating to ios7.2 and so far its displaying the itunes logo and saying plug into itunes so i tried updating with itunes and it keeps saying it has failed (3194)

    my iphone 4s said it needed updating to ios7.2 and so far its displaying the itunes logo and saying plug into itunes so i tried updating with itunes and it keeps saying it has failed (3194)

    Hello Amz_Bajwa,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694#error3194
    Unable to contact the iOS software update server gs.apple.com
    Error 1004, 1013, 1638, 3014, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
    Install the latest version of iTunes.
    Check security software and ensure that communication to gs.apple.com is allowed. Follow these stepsfor assistance with security software.
    Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. Follow theadvanced iTunes Store troubleshooting steps to edit the hosts file or revert to a default hosts file. See "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information."
    Try to restore from another known-good computer and network.
    If the errors persist on another computer, the device may need service.
    Best of luck,
    Mario

  • I have IPod Touch 4 Gen can i update to ISO5 and get Siri, i cloud etc?

    I have IPod Touch 4 Gen can i update to ISO5 and get Siri, i cloud etc?
    Is there any Problem to the IPod Touch??

    You can get iOS 5
    Siri is not realeased for the iPod.
    You can use iCloud with yur iPod with iOS 5
    To also use iCloud with your computer you need Lion for a Mac and at least Vista for a PC.
    SOme users have rported some slowness and shartr batter life with iPOS 5 and some Music app problem.

  • Trying to register with ePrint and getting error code.Ajax submit failed: error = 403, Forbidden.

    Trying to register with ePrint and getting error code.Ajax submit failed: error = 403, Forbidden. I need help??

    To bypass this error attempt either a restart of your computer, or use an alernate broser such as firefox or chrome. If you already have another browser the latter may be the easier fix.
    Jon-W
    I work on behalf of HP
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    Click the KUDOS STAR on the left to say “Thanks” for helping!

  • Authorizations with PNP and Get Pernr.

    We have just noticed an issue with how our custom reports are working in regards to authorizations.  Our users have authorization to see Basic Pay infotype information up to the point where an associate becomes an executive.  When running our reports the latest salary shows up instead of the last one they are allowed to see or just leaving that field blank.  We are using the PNP logical database and Get Pernr.  Isn't that supposed to pick up whatever authorization is assigned to the person?
    Thanks,
    Mary

    I do not know how you come to this statement. Of course LDB checks ALL HR Authorization defined. This incoporates the personnel administration part as well as the combination to structural authorizations.
    However PNP will skip a PERNR if the user has only partial authorization by default. To get also only the restricted data what the user can see you must use the switch PNP_SW_SKIP_PERNR = 'N' at INITIALIZATION point.
    Please see the documentation available here:
      http://service.sap.com/erp-hcm
    On the left side follow the links:
      Services for mySAP ERP HCM
        Special Documentation
    Regards,
    Michael

  • Hi, I have a specific website that keeps blocking me from going to website I want to view.  It is called vnebo.pro or mobi. I also have a pc computer with Kaspersky and it blocks it.  How do I remove it or block it from my computer.

    Hi,
    I have a specific website that keeps blocking me from going to website I want to view.  It is called vnebo.pro or mobi. I also have a pc computer with Kaspersky and it blocks it.  How do I remove it or block it from my computer?  It only appears at my home, when I use my mac at other places I don't have a problem.
    Thanks for any help!

    Thank you for the reply. I wanted to wait awhile in order to ensure that this corrected the issue. For a brief while, it did! However, it did not take long before the screen began once again hijacking my home button presses. This occurs even with Firefox removed from default applications ( triple-checked ).
    This never happened before version 35.

  • Printer is overprinting old jobs on top of new jobs.  Using a Mac with OSx and a HP photosmart for over a year.  this just started happening.

    Printer is overprinting old jobs on top of new jobs.  Using a Mac with OSx and a HP photosmart for over a year.  this just started happening.

    RReset printing system again and the restart in Safe Mode . This will clear some caches,to do this hold down the Shift key when you hear the startup tone until a progress bar appears, after it has fully booted restart normally and add the printer.

  • HT4623 I downloaded update with itunes and now all I see is itunes logo and arrow to a plug

    I downloaded an update with itunes and now myiphone is black and only shows itunes logo with an arrow and plug.  no phone tried holding down on off still black  please help I need this phone

    http://support.apple.com/kb/ht1808

Maybe you are looking for

  • SPRO empty - cant activate Gateway 2.0 on Netweaver 7.4 - is the system ok?

    Hi, I feel confused. As you can see the System is relatively up-to-date and all components seem to be in the System. But in SPRO - nothing Yes, I am new to Netweaver 7.4 and the NWG2.0. But I have been looking around yesterday and cant find anything

  • 9.2.1 update can't scroll my videos in iphoto with trackpad

    Since my update to 9.2.1 I can no longer scroll videos (fast forward or rewind with two fingers) with trackpad. I was able to do this with all videos in iphoto albums prior to update. Is there a setting or solution to this? Very dissapointed as this

  • AOL & Flash Player 10 Incompatibility

    Here we go again and again and again... Found out some time ago when my AOL "Finance" dropdown menu was blank that there was a problem after downloading Adobe Flash Player 10, but some things require that version to be played. AOL said the fix (early

  • Can berkeley db open thousands of db in an environment ?

    In my application, I need open thousands of db in an enviroment, but the error "unable to allocate memory for mutex; resize mutex region" will occure at last. I look the source, and find that berkeley db will allocate much memory for mutexs which are

  • IPhone 5 is lagging

    I got my iPhone 5 a month and a half ago. It was working perfectly until just this week. I noticed it when I was playing a game (Subway Surfer) when the phone didn't respond to my swipe motions. This is unusual, because I originally found the iPhone