Can Oracle Bulkcopy write data within an external transaction?

Hi Everyone,
I am new to odp.net and I hope somebody can help me with an issue about bulkcopy. What I want to do is to make the process of a bulkcopy executed within a transaction. The transaction here should be external and when it comes to the point where bulkcopy is executed, the transation has already begun and has executed some other commands. The way how i want to do this is described as follow
Step 1: Create a connection (e.g. dbConn)
Step 2: Use that connection to start a transaction (e.g. dbConn.BeginTransaction)
Step 3: Use the connection to create and execute some commands (e.g. delete/insert/update some records in a table)
Step 4: Create an OracleBulkCopy instance with that connection (e.g. Dim copier As DBBulkCopy = New OracleBulkCopy(dbConn, OracleBulkCopyOptions.Default) )
Step 5: Use the WriteToServer function in the bulkcopy to copy some data across tables (e.g. copier.writetoserver(datatable))
Step 6: Commit the transaction.
Now when i run to Step 5, the WriteToServer function, an exception is thrown. The error is "ORA-26085: direct path operation must start its own transaction"
As far as I understand, it is telling me the transaction of the connection (dbConn in this example) has begun before the WriteToServer is executed. Howevery, putting the bulkcopy process within an transaction is exactly what I want and it is very critical to the task I am trying to finish.
Can any body let me know how to implement this?
Thanks very much

I see following note in Oracle Data Provider for .NET Developer's Guide 11g Release 1 (11.1.0.7.20) -
"Note: All bulk copy operations are agnostic of any local or distributed transaction created by the application."
Hence it seems that Bulk Copy operations should not be used with user transactions.

Similar Messages

  • HT4337 Can you relocate OS, data to an external SSD,

    I am running Lion on an early 2009 iMac.  I use two external drives, one for Time Machine and the other for LR4 files. 
    Can I relocate OS, date to an external ssd.  I am told that this solution willl marked speed up the machine.
    Thanks
    David

    BD;
    I do think you are incorrect.  I answered my question from a number of site.  In short the answer is a resounding yes, it will speed up the machine markedly!!! As one installs the ssd, you make a clone of the hd on the ssd and go on your merry way.
    Good for me, now I don't have to buy a new machine.
    David

  • Can V find Master data datasource by having Transaction data datasource?

    Hello All
    I have a datasource in r/3 side by this can v find Master data datasource?
    The Transaction datasource is 2lis_02_scl?
    how to find Master datasource for this?
    Many Thanks
    balaji

    AHP hello
    Thanks for info given
    Can v view same for customized datasources also?
    is it possible?
    so for datasource 2lis_11_vaitm,if v click on "Infosource Overview" v can view all the Infosource name,by this v can find our Master Datasource.?
    so for ex.,I can c infosource 0CUST_GRP1,so this is the datasource for Master data from r/3 side?
    Is it correct?
    Many Thanks
    balaji

  • Can I programmaly write data to Data Source Filter in view External List?

    Hi, everybody. I need a help with external list. View in external list has parameter named "Data Source Filter" for write filter data for BCS query to DB. I wanna programmaly write data to this parameter but I haven't any ideas about class, property
    or method what can write data to it. Any idea?
    Aleksandr Shramko

    Hi Alexksandr Shramko,
    To set the filter value for a SharePoint common list, SPView.SetViewXml property is used to set the filter value. Following thread contains sample to help get a better understanding about how to use it:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/0ddca0f6-2b17-4f4a-9d66-f3d684ed4a11/how-to-set-orderedview-of-the-list-view-programmatically?forum=sharepointdevelopmentprevious
    However, I haven’t make it work for external list. In this situation, I would suggest you to custom control to display the list item instead of customizing the existing list view filter. You can choose to use gridview or other table to show the data.
    A sample here:
    http://stackoverflow.com/questions/7647941/retriving-splistitem-through-external-lists-whose-source-is-from-sql-server-08
    Thanks,
    Qiao Wei
    TechNet Community Support

  • How can I save/write data on the hard disc of the Real-Time System?

    I would like to acquire huge size of data via LabView Real-Time System.
    Since data is so huge, I am now thinking that it might be good idea to
    write/save data on the hard disc of the Real-Time System first and then
    transfer the data file to a data processing PC using FTP etc.
    If you know how to save/write data on the hard disc of the Real-Time System
    (Ver. 7.1), please let me know.
    Thanks,

    Just to add to Aitortxo's good answer,
    Since you have only one Drive ( C:\) on your RT, just keep monitering the availible disc space.
    After every few set of file writes keep transferring Backups delete these files, so that you  keep C:\ drive space for running your applications.
    Regards

  • How can I make selectable data within a cell?

    Within numbers I would like to create a selectable item list from which I can select one item for the cell?  In excell I can create a pull down within the cell, does this function exist within numbers?

    DH,
    Yes, in Numbers the Format is called "Pop-up menu".
    Download the Numbers User Guide from the Help Menu and read about Cell Formats.
    Jerry

  • How can I extract trading data within sales data

    hi experts,
                    How can I extract trading data (2LIS_46_ITM) with sales data (2lis_11_VAITM) ? I want only one data source and extract data of both data source. I have noticed that many fields are common but other fields are not common.
    Message was edited by:
            rakesh jangir

    Hi ganesh,
                    Thanks for answer. it is correct that Generic is the final solution.
    But is there any other solution if i don't want to create generic data source due to some issues.
    Message was edited by:
            rakesh jangir

  • Oracle property manager data import from external system to oracle..

    Hi All,
    currently im working on Oracle property manager module..
    i have a requirement like upload and update the properties from external  system to oracle applications.
    how we can import Data from others systems to oracle,, is any API's or Open interfaces available  for this requirement.
    Please suggest me..
    Thanks all.

    Hi,
    You will  have to study the business needs and populate according data, You may also raise an SR with respect to this and get the support from Oracle if you don't have any experienced superiors on this subject/module to ask from.
    Please see if the following links help you.
    Oracle Property Manager Implementation Guide
    http://docs.oracle.com/cd/A85964_01/acrobat/pntrm.pdf
    Thanks &
    Best Regards,

  • How can I read/write data files (text file) from PL/SQL Script

    I had an oracle forms pl/sql program to read/write a data file (text file). When this code is run on a command line as a PL/SQL script using the SQL*Plus I am getting an error:
    -- sample.sql
    DECLARE
      vLocation                 VARCHAR2(50)  := 'r:\';
      vFilename                 VARCHAR2(100) := 'sample.dat';
      vTio                   TEXT_IO.FILE_TYPE;
      vLinebuf               VARCHAR2(2000);
      vRownum               NUMBER        := 0;
      -- use array to store data FROM each line of the text file     
      TYPE           array_type IS VARRAY(15) OF VARCHAR2(100);
      vColumn      array_type := array_type('');
      PROCEDURE prc_open_file(p_filename IN VARCHAR, p_access IN VARCHAR2) is
      BEGIN
        vTio := TEXT_IO.FOPEN(vLocation||p_filename,p_access);
      EXCEPTION
        WHEN OTHERS then
          --  raise_application_error(-20000,'Unable to open '||p_filename);
          message(sqlerrm);pause;
      END;
      PROCEDURE prc_close_file is
      BEGIN
        IF TEXT_IO.IS_OPEN(vTio) then
           TEXT_IO.FCLOSE(vTio);
        END IF;
      END;
    BEGIN
      --extend AND initialize the array to 4 columns
      vColumn.EXTEND(4,1);
      prc_open_file(vFilename,'r');
      LOOP
          LTEXT_IO.GET_LINE(vTio,vLinebuf);
          vColumn(1)  := SUBSTR(vLineBuf, 1, 3);
          vColumn(2)  := SUBSTR(vLineBuf, 5, 8);
          vColumn(3)  := SUBSTR(vLineBuf,10,14);     
          Insert Into MySampleTable
          Values
            (vColumn(1), vColumn(2), vColumn(3));
          EXIT WHEN vLinebuf IS NULL;
       END LOOP;
       prc_close_file;
    END;
    SQL> @c:\myworkspace\sql\scripts\sample.sql;
    PLS-00201: identifier 'TEXT_IO.FILE_TYPE' must be declaredIt works on the oracle forms but not on the SQL*Plus. Is there an alternative method using a PL/SQL script? A simple sample would help. Thanks.

    Did you ever noticed the search box at the right side of the forum?
    A quick search (limited to this years entries) brought up this thread for example
    Re: UTL_FILE Examples

  • Can SharePoint 2010 read data from an external SQL Server 2012 data Source?

    Hi,
     I would like to Know whether SharePoint can read the data from a SQL server 2012 external data source?
    I am not talking about SharePoint internal database. I need to get the data from an sql database which is used by some other application. For My SharePoint server I am using SQL 2008 R2 as an internal database engine. But I need to get some other data from
    another data Source which is configured in SQL server 2012.  Can any one help me on this whether is there any problem on accessing the data from SQL 2012. If there is no problem for that, please provide me the version of SQL data source compatible with
    SharePoint 2010 and SP 2010 sp1. 
    Thanks!
    Regards,
    Henoy 

    Hi Romeo ,
    I have already visited this page. But there is no answer for my question. I just want to know whether we
    can done the same from a SQL 2012 server.
    Please help me to know whether SharePoint 2010 is Compatible to get the data from SQL 2012 external data source.
    Thanks for your instant reply.
    Regards,
    Henoy TM.
    +919035752610

  • How can I secure confidential data within LabVIEW?

    I am writing a VI hierarchy that handles confidential data received across a network and sends it out over another communications link.
    If I password-protect all the VIs that handle the confidential data, will this render it as secure as it can be within the LabVIEW domain?
    Or is there still a way of intercepting the data as it is passed between VIs in the call hierarchy?
    Is it possible to hook into low level TCP components that don't show up in the call hierarchy?
    I'm anxious to do the best I can without going completely OTT. Please can someone advise?
    Many thanks
    Nick

    Nick;
    A trick I do is to use a state diagram and a local variable. With the
    state diagram I force LabVIEW to keep the data in memory and then
    outside I rewrite the control with an empty value. That way the data
    will not stay in the control so somebody can read it and will go away
    as soon as the VI finishes. This is to get the data into the sub VI.
    See the attached picture.
    Encrypt data and keep it encrypted until need to be processed. Check my library Crypto-G at:  www.visecurity.com
    Regards;
    Enrique
    Message Edited by Enrique on 07-05-2005 04:23 PM
    www.vartortech.com
    Attachments:
    sample.gif ‏2 KB

  • Can Oracle Portal read data from an access DB and loaded it an Oracle DB?

    Hi All.
    Does Oracle Portal provides a portlet to read data from an access db so that i can transfer it to my Oracle DB?.
    I believe Application Express does that .... Any portlet maybe ...?
    Regards, Luis ...!

    There are portlets that read from a DB to make reports, you can try to create a form portlet so you can make inputs to the database, no buil-in like you wish, has to be done manually.
    greetings.

  • Can TimeMachine also backup data from my external harddisk?

    I have an harddisk of 500gb (usb external), I use the hd for putting my raw capture material on it (video files).
    Is it possible that timemachine also backups my external hd with video on it AND still my macbook pro data? (timemachine backups are going to another external usb hd of 1 tb...)

    yes, it's possible. in fact TM will do this by default. the external has to be formatted mac os extended.

  • Can oracle temporary tables be used with distributed transactions?

    Hello,
    Does anybody know if temporary tables are supported with distributed transactions?
    We use a temporary table to store query results and see no problems when the JDBC driver (Type 2 or Type 4) is used with local transactions. The temporary tables are set for transaction-level data persistence (delete rows on commit).
    When we switch to JDBC/XA driver we occasionally get ORA-14450 error (java.sql.SQLException: ORA-14450: attempt to access a transactional temp table already in use).
    Many thanks...

    I have been able to use temporary tables on remote databases, so I don't think that it is forbidden. Of course, I'm not using JDBC so that might be a problem.
    The other thing that occurs to me is that you are doing something other than DML with the table e.g. trying to drop it. If that is the case you should re-read the documentation and remind yourself of the purpose of temporary tables.
    Cheers, APC

  • Cant write/edit data on my external hard disk! Help please!~~

    Okay guys, currently, i'm using Tiger version 10.4.11. My problem is that i cant edit data or write data to any external hard disks, like the maxtor One Touch and so on. Only thing i can do is to extract the data from the disks. I have tried to write on multiple hard disks but in all my attempts i have failed. i've tried to edit my network settings, but no results.
    So, i seek help from anyone out here!

    Hello, yea.. thanks man =)
    Basically, its a shared hard disk between my macbook and a windows PC. So i kinda use the PC to write all my backups and data on the hard disk.
    I have quite a few hard disk and they all have the same issue. It says 'The item 'file x'cannot be moved because 'my hard disk' cannot be modified.'I've used the software provided from the hard disk manufacturer, Maxtor/Seagate, to reformat the brand new portable hard disk which i bought yesterday.
    Its connected via USB, same as all the other ones i have.
    eh. the get info for it says
    Kind: Volume
    Created: --
    Modified: Thursday, 23 Aprl 2009 3:24AM
    Format: Windows NT Filesystem
    Capacity: 232.88 GB
    Available: 232.57 GB
    Ownerships & Permissions: You can only read.
    erm... its a portable drive which i carry around, so i guess its not a network drive? and how doi determine the network settings? Sorry man.. not really good at these =x

Maybe you are looking for

  • Every website I try to go to (such as Facebook, Twitter, etc that are safe) is saying that the website is unsafe and that I must accept the certificate).

    Yesterday my Firefox seemed to spasm and I believe I had a virus (every time I hit the "home" button which is google.com for me, it would send me to this weird site that I knew wasn't safe). I uninstalled and re-installed Firefox and ran virus scanne

  • How to disable control records in Idoc

    Hi All, I've a small problem in my scenario.i have a idoc in my input and i want output as a idoc in a flat file.i m using abap class fr this.that abap class is changing idoc into idoc as a flat file.but i have to remove control records in my output.

  • IWeb and svBuilder and  Simpleviewer 2

    I just bought SV Pro and I generated a gallery in Photoshop using the Simpleviewer script. I used svBuillder to customize it. But I have some problems. No matter what I do the images and thumbnails show up off center to the right. Also the images are

  • Movie start points in a session

    In addition to my previous post, i have a problem with Movie start points and tempo changes as well. Please correct me if i am wrong but in Logic 7 it was possible to set a movie smpte point (say 10.20.17.22) as Bar 1 of the arrangement thus meaning

  • ADE reader

    Hallo, I have an error message E_ACT_TOO_MANY_ACTIVATIONS. Who can help me? Can you reset my activation limit?