Getting nested TransactionScopes working

Hello,
I'm using ODP.NET 2.111.7.20 and database 11.1.0.7.0 - 64bit.
I'm trying something like this, only the insert method is in another DLL and the insert is a bit more complicated:
Even if I didn't complete the root transaction the rows are inserted and not rolled back. I check Transaction.Current in both places and they seem to be the same transaction so I can't figure out what's wrong here.
Method1()
    using (TransactionScope ts = new TransactionScope())
      for (int i = 0; i < 10; i++)
       InsertMethod();
InsertMethod();
            using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required))
            using (OracleConnection conn = new OracleConnection(""))
            using (OracleCommand cmd = conn.CreateCommand())
                cmd.CommandText = "insert into exampleTable values (:1)";
                cmd.CommandType = CommandType.Text;
                cmd.ArrayBindCount = 3
                cmd.Parameters.Add(new OracleParameter(string.Empty, OracleDbType.Int32, new int[] { 1, 2, 3 }, ParameterDirection.Input));
                conn.Open();
                recordsAffected = cmd.ExecuteNonQuery();
                conn.Close();
                ts.Complete();
}Edited by: KarlTrumstedt on 2010-jul-20 05:09

Yes, this seems to do the trick. I got it to work. Well not really, I often receive ORA-603. I use connection.EnlistTransaction(Transaction.Current) for my connections and havean enclosing using(TransactionScope ...) in the "main method".
For alert.log:
Incident details in: d:\app\exkatr\diag\rdbms\testdb\testdb\incident\incdir_63768\testdb_ora_8848_i63768.trc
Errors in file d:\app\exkatr\diag\rdbms\testdb\testdb\incident\incdir_63768\testdb_ora_8848_i63768.trc:
ORA-00603: ORACLE server session terminated by fatal error
ORA-00600: internal error code, arguments: [ktcirs:hds], [0x01AF68078], [0x006F10BF0], [0x021728078], [], [], [], [], [], [], [], []
ORA-00600: internal error code, arguments: [ktcirs:hds], [0x01AF68078], [0x006F10BF0], [0x021728078], [], [], [], [], [], [], [], []
ORA-00600: internal error code, arguments: [ktcirs:hds], [0x01AF68078], [0x006F10BF0], [0x021728078], [], [], [], [], [], [], [], []
I don't really know how to read the trc file? When i use tkprof I don't see anything helpful in the generated file.

Similar Messages

  • Can't get JLayeredPane to work

    Hi,
    I'm trying to use the JLayeredPane as part of a large application, but I can't get a small example to work... What else do I need to set before I can see my JLabel?
    package views;
    import java.awt.Dimension;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JLayeredPane;
    public class Test extends JFrame {
          * @param args
         public static void main(String[] args) {
              new Test();
         public Test()
              super("Test");
              this.setVisible(true);
              this.setDefaultCloseOperation(EXIT_ON_CLOSE);
              this.setSize(new Dimension(200, 200));
              JLayeredPane pane = (JLayeredPane) this.add(new JLayeredPane());
              pane.add(new JLabel("Hello World"), new Integer(0));
              this.add(pane);
    }Edited by: TheDauntless on Oct 24, 2009 12:55 PM

    TheDauntless wrote:
    Thanks, that seems to work. You're welcome.
    I have a follow up question: How can I get my JLabel to take up the entire parents width & height?
    I usually use a GridBagLayout (with fill=horizontal, weightx=1, heightx=1, gridx=0, gridy=0), but I can't always get it to work. Is there a better way to make sure the size is 100%x100% ?I know that I use GridBagLayout, but only sparingly and only when other layouts (including nested layouts) won't work. I think that there are several in this same camp. In your situation, you could easily just use a BorderLayout and add the JLabel BorderLayout.CENTER.

  • ScrollFollow .. argh .. cant get it to work ..

    hi there
    I would like to use scrollfollow (or a simular function) to
    ensure that my lefthand side vertical meny is alwayes visible on
    the page, but I can not get it to work.
    I have made a small simpel test, which works after uploading
    it, but my main page wont work.
    What am I dooing wrong ?
    here is my small working eksampel
    http://www.natouren.dk/ScrollFollowEksampel.html
    here is my main page, which is not working
    http://www.natouren.dk/new4.html
    Regards
    Peter

    Mark A. Boyd posted in macromedia.dreamweaver
    > xang72 posted in macromedia.dreamweaver
    >
    >> I have made a small simpel test, which works after
    uploading it,
    >> but my main page wont work.
    >> What am I dooing wrong ?
    >>
    >> here is my small working eksampel
    >>
    http://www.natouren.dk/ScrollFollowEksampel.html
    >>
    >> here is my main page, which is not working
    >>
    http://www.natouren.dk/new4.html
    >
    > Your working example uses divs for layout.
    >
    > Your main page uses nested tables for layout. You won't
    be able to
    > force a cell to go outside its row or table.
    >
    > If you decide to move away from the table-based layout,
    you might
    > want to consider using a Stick CSS solution posted often
    in here
    > by Nancy O.
    >
    >
    http://alt-web.com/CSS2-Sticky-Text-Demo.html
    Wait a minute. I see you have tables, AP divs, and Spry
    menues in your
    main page. You should be able to combine Nancy's example with
    your's
    (again, no javascript). I just did a quick test with Nancy's
    code by
    adding this to your CSS_External.css stylesheet.
    It is showing on the bottom right, but you should be able to
    adjust to
    taste.
    #MenuBar1 {
    color:#FF0000;
    position:fixed; /** IE7+, Firefox, Mozilla, Opera, Safari,
    Konqueror...
    will use this **/
    bottom:2px;
    right:2px;
    padding: 0;
    /* Netscape 4, IE 4.x-5.0/Win and other lesser browsers will
    use this
    _position: absolute; right: 2px; bottom: 2px;
    Mark A. Boyd
    Keep-On-Learnin' :)

  • Making a join seems simple but I can't get it to work

    Hi All,
    I have 2 tables LUGallery and LUSubGallery, the tables are related by the GalleyID field
    LUGallery
    Gallery ID
    ClientID
    GalleryName
    5
    50
    Australia
    8
    50
    Weddings
    12
    33
    Portraits
    4
    33
    Landscapes
    LUSubGallery
    SubGalleryID
    GalleryID
    GalleryName
    67
    5
    NSW
    68
    5
    QLD
    69
    8
    Reception
    70
    8
    Location
    87
    8
    Ceromony
    97
    4
    Rain Forest
    What I am try to do seems simple but I can't get it to work the way I want it.
    I am trying to write a query to display Galleries from the LUGallery tbl that have a Sub Gallery attached to them (ie. It's GalleryID appears in the LUSubGallery tbl)
    So the query for the above example would list Australia, Weddings & Landscapes
    I have tried to write code both with inner joins and nested queries but just can't get it right,
    Any help would be greatly appreciated.
    Thanks in advance
    Kris

    I just want to
    display the GalleryNames from the LUGallery tbl once
    Then you probably do not want include all the extra columns from the LUSubGallery table.
    It returns all of the records from both tables that Have
    the same GalleryID
    That is the way this type of JOIN works. It will return one record for each matched GalleryID. If you only want to display the unique gallery names you can either:
    1) Use an EXISTS clause.  It will return the distinct records from the main gallery table IF a matching record exists in the LUSubGallery table
    --- Not tested ---
    SELECT  LUGallery.GalleryID,
    LUGallery.GalleryName
    FROM    LUGallery
    WHERE   EXISTS (
            SELECT  *
            FROM LUSubGallery
            WHERE LUGallery.GalleryID = LUSubGallery.GalleryID
    http://www.techonthenet.com/sql/exists.php
    ... OR ....
    2) Use the DISTINCT operator to return only the unique combinations of the selected columns. Note: DISTINCT considers all columns in the SELECT list . So if you only want unique galleries, do not include the LUSubGallery columns in the SELECT list.
    http://www.w3schools.com/SQl/sql_distinct.asp
    Message was edited by: -==cfSearching==-

  • So how do nested roles work?

    I'm trying to define an admin role that can be assigned to certain users in my directory, while enabling me to define a separate password policy for just this set of users.
    What I want to do is this:
    - create a managed admin role in a specific area of my directory (e.g. ou=roles, o=suffix)
    - add users to this role (they sit in ou=users,o=suffix)
    Now, I'm aware the roles only have scope over the subtree where they are created, so I've created a nested role at the root level (o=suffix) and added the managed admin role (cn=admin role,ou=roles,o=suffix).
    As far as I'm concerned this should give my admin role scope over the whole o=suffix tree?
    Unfortunately when I try to open up access using an ACI it doesn't seem to work. The only way I can get it to work is if I create the managed role at the suffix level (i.e. cn=admin role, o=suffix) and reference that role in the ACI.
    What am I missing here?

    http://docs.iplanet.com/docs/manuals/uds/50/toolref.pdf
    Page 159
    You should read the document but there is a snippet from the doc:
    Nesting event statements You can nest an event statement in your statement
    block either by using another event statement or by invoking a method that
    contains an event statement.
    A typical example is when you want to open a new window and the Display
    method for the window contains an event loop. Another example is using the
    start task statement to start a new task and then use the event statement to wait
    for the return or exception events.
    Code Example 3-13 Nesting event statements
    event loop
    when <quit_button>.Click do
    exit;
    when <start_task>.Click do
    tsk_desc : TaskDesc;
    tsk_desc = start task o.meth() where completion =
    event;
    event loop
    when o.meth_return(x = return) do
    when o.meth_exception(e = exception, f = errs);
    when <cancel_button>.Click do
    tsk_desc.SetCancel();
    end event;
    when <cancel_button>.Click do
    exit;
    end event;
    If more than one event statement is registered for the same event, the event
    statement that is currently executing when the event reaches the top of the queue is
    the one that handles the event. Once the event has been handled, it is removed
    from the queue. Therefore, an event is never handled more than once.
    ka

  • Apple Mini-DVI to Video Adapter - Can't get it to work!

    Bought the Apple Mini-DVI to Video Adapter to hook up my Macbook to my TV. I tried it when it first arrived and it worked within minutes of setting up. Great! I go to set it up and use it again a week later, and it wouldn't work at all. I went through every possible setting I could to try and get it to work, nothing. Do these things have a tendency to go out or short out or something? I'm getting nothing but scrambled screens, grey screens, etc. Nothing seems to work.
    http://store.apple.com/us/product/M9319G/A?mco=MTY3ODQ5OTY
    Any other solutions for playing my laptop on my TV?

    Hey Rob,
    Is your profile information accurate? The MacBook 2,1 was introduced in November of 2006 and discontinued in May of 2007, so the mini-DVI to video adapter ought to work.
    What, exactly, do you see on your screen? Are all of the connections nice and snug? Do you have another RCA cable you can try? You can use a white or red one if you want; they all will work as long as you're connecting the video adapter to the yellow port on the TV.
    ~Lyssa

  • IOS Remote Desktop app and computers connected to SBS 2008--can't get it to work

    I can connect directly to the server without a remote resource in the IOS app.
    But I'd like to be able to connect to computers in the office like we can through RWW. RWW works fine, but not from my phone. (Yes I can connect to the server and take over computers from the phone but I don't want other people in the office to log
    into the server first!).
    I can never get the remote resources section in the app to connect. I usually get "Unable to locate any remote resources for the URL". error in the resources section. I've tried a simple "https://remote.domain.com", "https://remote.domain.com:987",
    etc.  
    We have a self-signed certificate. I can't think of anything in the server setup that is anything other than normal.
    I can do direct connect using "Remote Desktop Connection" in windows 7. In the remote desktop server settings I just put remote.domain.com and "Ask for password (NTLM)" for the login method. Then on the general tab I have just the
    simple computer name and the domain\username. That's all I had to setup to get that to work.
    Any suggestions?

    Hi Michael,
    Thank you for posting in Windows Server Forum.
    Have you setup RD Gateway server in your environment? Are you trying to access the RWW through it?
    On server side you can choose “Bypass RD Gateway server for local addresses” under RemoteApp manager and check the result.
    For more information, you can check below links for detail.
    Remote Desktop Client on iOS: FAQ
    http://technet.microsoft.com/en-us/library/dn473015.aspx
    Getting Started with Remote Desktop Client on iOS
    http://technet.microsoft.com/en-us/library/dn473013.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Have entrourage and want to use Mail. Can't get it to work.

    I had a macbook and purchased the Microsoft office for Mac which included Entrourage.
    I have now purchased a new macbook Pro and want to begin to use Mail rather than Entrourage. 
    I have Entrourage on my new computer but i can't get it to transfer my information to the the Mail program
    I am on Charter.net at my office and sbcglobal.net at home.
    How can i get this to work.  I can receive on Mail, but i can't send.

    check your outgoing port settings and make sure it's using a specific port and not the default port, also you might want to check to see if it is using SSL, TLS or any other encryption.  Verify the setting from your old machine setup.

  • Got my password wrong twice and my mini is disable. I connected to iTunes, but can't get it to work. Can some one guide my through?

    got my password wrong twice and my mini is disable. I connected to iTunes, but can't get it to work. Can some one guide my through?

    If it's showing the red disabled screen due to incorrect passcodes then you may need to put the iPad into recovery mode : http://support.apple.com/kb/ht1808 - you should then be able to reset the iPad via your computer's iTunes and restore/resync your content to it

  • HT1151 i have a new apple external dvd drive, and i can't get it to work with my iMac?

    I have a new apple dvd drive, I was told it will work with my imac,  but when i plug it in ...nothing... iv been for update... still nothing. How can i get it to work???

    If it is this drive, note that it is for MBA's and Mini's only:
    http://store.apple.com/us/product/MC684ZM/A
    Ciao.

  • HT1203 iTunes: How to share music between different accounts on a single computer - I tried to use the instructions to configure 2 different windows users sharing the same iTunes library.  I could not get this to work per the instructions.

    I tried to configure 2 windows users accounts using a single library per the instructions in HT1203.  My iTunes library is on an external drive.  I cannot get this to work.  Any suggestions?

    To give other users read-only access to your iTunes library, use the Sharing features of iTunes. Sharing works over the local network as well as on the same computer. See the built-in help for details.
    If you want to give full read/write access to more than one user, see the support article linked below.
    iTunes: How to share music between different accounts on a single computer
    There is a way to share the library without moving it to a secondary volume. If you really need to do that, ask for instructions.

  • I have 2 ipod touch's that both have frozen screens and will not reset or show up in itunes. They both froze after trying to update to the latest software version. How do I get them to work?

    I have 2 touch's that froze when trying to update to the latest ios version. Neither respond to restarting the devices. They are also not recognized in windows or itunes. How do I get these to work. I followed all of the instructions on  the apple website and they still don't work. I have verified that I have apple support for mobile devices installed in itunes and my version of itunes is 11.0.1. I am running windows 7 64bit with service pack 1 installed and all of my updates are current. Is anybody else having this problem with their apple devices?

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • I could not get ExportPDF to work. Something about a network error when trying to sign in.

    I could not get ExportPDF to work. Trying to convert a pdf to a Word document. Got an error message. Something about a network error when attempting to sign in.

    Try the following:
    1. Reset
    Hold the Sleep and Home button down until you see the Apple logo
    2. Restore:
    http://support.apple.com/kb/HT1414
    3. Recovery:
    http://support.apple.com/kb/HT1808

  • Can not use all the tools in my drawing markups any ideas on getting them to work?

    Can not use all the tools in my drawing markups any ideas on getting them to work?

    Hi tonys60181,
    Could you please let me know what version of Adobe Acrobat are you using.
    What all drawing tools are you unable to access?
    Is this issue specific to one PDF file or all?
    What exactly happens when you try to use any drawing markup?
    Please let me know.
    Regards,
    Anubha

  • I purchased and downloaded Photoshop Elements 13, but the installer fails to initialise. How do I get it to work?

    I have Photoshop Elements 10 and Premier Elements 10 installed on my PC. Both were installed from discs that I bought a few years ago. I recently purchased the upgrade (by download) for both applications to version 13. In accordance with the (scant) instructions received by email, I downloaded the four files required from the Adobe site. I subsequently ran the .exe files, which in turn created directories on my PC, including set-up.exe files for both applications. When I run the setup files, I get an error message stating that the installer failed to initialise. The error message advised me to download the Adobe Support Advisor to detect the problem. That tool does not exist. I then sought assistance from the Abobe support site, initially using the hyperlink suggestions, which were of no use, then using the chat function. The operator kept trying to get me to do something with something called 'Creative Cloud'; which I am not familiar with, and do not use. He then instructed me to download and run a CS5 cleaner tool; however, none of the choices offered by that tool include my issue, or either Photoshop Elements or Premier Elements. I am reluctant to uninstall version 10 of the programs in case I end up losing the lot and therefore wasting even more money than the purchase price for this upgrade.
    All I want to do is upgrade my two applications from version 10 to version 13. I have paid the requisite fee but it clearly does not work. I appear to have totally wasted my money. Can anyone please tell me how to get it to work? I do not want to have anything to do with the so-called ‘Creative Cloud’ as I have no idea what it is, and I do not want to lose what I already have (and have paid for previously).
    I have tried for a few days to access the so-called 24/7 chat assistance but appeared to have been locked out as every time I try to access it, I get a message that the (24/7) chat is closed. Adobe has taken my money for a product that does not work, and also refuse to help me fix it.
    I am very frustrated with a product I bought that does not work, and a 24/7 support service that clearly is not 24/7, and which refuses to assist me. Can anyone PLEASE tell me how to get this to work? Rod.

    Hi,
    Can you please share the logs?
    You can use the Adobe  Log Collector tool (Log Collector Tool) and share the corresponding zip file @ [email protected]
    Thanks,
    Shikha

Maybe you are looking for

  • Unable to Install Creative Cloud App

    I just tried creative cloud and tried installing creative cloud application. The installation is consistently failing. I get a popup alert saying We've encountered the following issues: Sorry, there seems to be a problem with the installation process

  • Installation 8.1.5 with Response File

    Dear Oracle-on-Linux Users I have installed / configured Oracle 8.1.5 EE from the CD-ROM without any serious problems. Oracle 8i works fine on our Web-Server with RedHat Linux 6.0 / Apache / DBI-DBD::Oracle and Oracle 8i. If you like, you can downloa

  • Wireless headset and i-heart radio app

    I have an i-phone 4 and want to buy a wireless headset because I want to be able to listen to i-heart radio without using the earbuds from my i-pod. Is this possible and are there any suggestions?

  • Strings on Screens

    I have a requirement to have a STRG type element on a screen. I wish to populate this field with data that is longer than the visible length of the field but as the field is scrollable (greyed out checkbox) and does indeed allow me to scroll I though

  • Can I get the SAP Logo

    Hi I am a SAP certified Solution consultant (Order fulfillment), also I have got the S-user ID. Could you help me in getting the logo ? Whom should I send the S-user ID and Training Center details? Rgds CGRA