Transaction abort Entity framework - Oracle 10g

Hi.
I have a problem using entity framework and Oracle 10g, i m using a transactionScope in my code, but when the transaction is finishing is throwed a exception "Transaction Abort" , it's a problem only when i am using Oracle i don't have any problem with SQL server.
Thanks in advance for your help.

Hi.
I have a problem using entity framework and Oracle 10g, i m using a transactionScope in my code, but when the transaction is finishing is throwed a exception "Transaction Abort" , it's a problem only when i am using Oracle i don't have any problem with SQL server.
Thanks in advance for your help.

Similar Messages

  • Declarative transaction not working  for oracle 10g as.

    Hi Friends,
    While migrating from sun app server to oracle 10g as, i have problem in declarative transactions.
    I created stateless and stateful beans with declarative transactions. Transactions were working fine till they were in sun app server environment, but they fail in oracle 10g as environment.
    I build the ear through sun IDE and deployed the ear on oracle 10g as. Things worked fine till transactions come onto picture.Declarative transaction get failed in case of oracle 10g as.
    Please if you have faced such problem or have any way to solve this problem, Pls revert back.
    rgds,
    m_khanduri

    sb92075 thank you for reply. Please see the command outputs.
    $ hostname
    LONDAN
    $ id
    uid=503(oaprod) gid=5002(dba) groups=5002(dba)
    $ uname -a
    Linux LONDAN 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
    $ ps -ef | grep -i pmon | grep -v grep
    oaprod    3810     1  0 May11 ?        00:02:24 ora_pmon_OID
    jgarry thank u also. please see the response.
    $ ls -rl $ORACLE_HOME/dbs
    total 2848
    -rw-rw---- 1 oaprod dba    3584 May  8 14:33 spfileOID.ora
    -rw-r----- 1 oaprod dba 2867200 Sep 10 10:17 snapcf_OID.f
    -rwSr----- 1 oaprod dba    1536 May  5 06:17 orapwOID
    -rw-rw---- 1 oaprod dba      24 May 11 17:24 lkOID
    -rw------- 1 oaprod dba    8385 May  5 05:18 init.ora
    -rw------- 1 oaprod dba   12920 May  5 05:18 initdw.ora
    -rw-rw---- 1 oaprod dba    1544 May 11 17:24 hc_OID.dat
    ok. previously I set TNS_ADMIN. Now I set TWO_TASK, while connecting now am getting different error "insufficient privilege". Please check following.
    $ export TWO_TASK=OID
    $sqlplus / as sysdba
    SQL*Plus: Release 10.1.0.5.0 - Production on Wed Sep 11 05:22:28 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    ERROR:
    ORA-01031: insufficient privileges
    But, now while connecting with "sys", I don't need to supply "@OID" it's connecting directly with "sqlplus sys as sysdba" command.

  • Transaction Isolation Level in Oracle 10g XE

    Hi All
    I have two CMP entities (EJB3) defined over two tables in Oracle 10g XE DB, namely User & UserDetails. UserDetails references User entity in One-to-one unidirection fashion.
    When I create a new User I have to insert a record using User entity & a corresponding record using the UserDetail.
    Since the first insert is not committed when the UserDetails entity tries to insert the record in the UserDetails table. The parent child relationship fails.
    Where should I define the DB isolation level?
    Thanks in advance.
    Regards
    Abhinav

    Hi All
    I have two CMP entities (EJB3) defined over two tables in Oracle 10g XE DB, namely User & UserDetails. UserDetails references User entity in One-to-one unidirection fashion.
    When I create a new User I have to insert a record using User entity & a corresponding record using the UserDetail.
    Since the first insert is not committed when the UserDetails entity tries to insert the record in the UserDetails table. The parent child relationship fails.
    Where should I define the DB isolation level?
    Thanks in advance.
    Regards
    Abhinav

  • How do I verify that Trap autonomous transactions is enabled in Oracle 10G?

    The Center for Internet security suggests the following parameter be set in Oracle 10G databases:
    13.02 Auditing Trap autonomous transactions is enabled. This will ensure that audit captures actions performed by users even if they are later rolled back.
    How do I verify that this is set in our production database?

    Ask them ... and while you are at it ask for an explanation of it is about an anonymous transaction running that makes it a security threat.
    I haven't a clue what they're talking about and it is likely they don't either.

  • How to Increase distributed Transaction parameter value in oracle 10g r2

    Hello,
    Can you please let me know how to increase the value of Distributed Transaction Parameter in oralce 10g R2
    Thanks
    Usman

    Why do you want to increase this?
    If you are getting ORA-02042, you have to reduce the number of concurrent distributed transactions you are running or restart your database to clear existing ones.

  • Calling Oracle stored procedure with out param of user define type from Entity Framework 5 with code first

    Guys i am using Entity Framework 5 code first (I am not using edmx) with Oracle and all works good, Now i am trying to get data from stored procedure which is under package but stored procedure have out param which is user define type, Now my question is
    how i will call stored procedure from entity framework
    Thanks in advance.

    I agree with you, but issue is we have lots of existing store procedure, which we need to call where damn required. I am sure those will be few but still i need to find out.
    If you think you are going to get existing MS Stored Procedures  or Oracle Packages that had nothing to do with the ORM previously to work that are not geared to do simple CRUD operations with the ORM and the database tables, you have a rude awakening
    coming that's for sure. You had better look into using ADO.NET and Oracle Command objects and call those Oracle Packages by those means and use a datareader.
    You could use the EF backdoor, call Oracle Command object and use the Packages,  if that's even possible, just like you can use MS SQL Server Stored Procedures or in-line T-SQL via the EF backdoor.
    That's about your best shot.
    http://blogs.msdn.com/b/alexj/archive/2009/11/07/tip-41-how-to-execute-t-sql-directly-against-the-database.aspx

  • Entity Framework - Code First - Migration - How to access SQL Server and Oracle using the same context?

    Hello,
    I use Entity Framework code first approach.
    My project is working fine with SQL Server. But, I want to access Oracle too. I want to switch SQL Server and Oracle in run time.
    I am able to access Oracle using "Oracle.ManagedDataAccess.EntityFramework.dl" in a new project.
    But, Is this possible to access SQL Server and Oracle in the same project.
    Thanks,
    Murugan

    This should be possible with a Code-First workflow.  In Code-First the database mapping layer is generated at runtime.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • WLS 8.1 - Entity Beans CMP - Oracle 10g Audit Tool

    Hi,
    We are defining the architecture of a new application on WebLogic Server 8.1 and Oracle 10g.
    We are thinking in using CMP Entity Beans and we need to integrate our system with Oracle Audit Tool.
    Can anybody give us some information about this issue ?
    Thanks,
    Javier Cano

    I really don't see the point of using CMP with an expensive, fully featured database like Oracle. MySQL or a flat file maybe. Otherwise it is just a waste of purchased resources.

  • [Oracle 10g] How to show concurrent transactions during a period?

    Hello all,
    I used Oracle 10g database
    I try to select the number of concurrent transactions during a period.
    I know how to select the number of transactions executed in one day, but i want to know the concurrent transactions.
    Can you help me ?
    Thanks in advance
    Regards
    Mathieu

    Which transactions do you wish to track?
    Are you referring to transactions that occur against a specific set of tables or all transactions against a schema and/or database instance?

  • Oracle 10g database as Resource manager and heuristic transaction decision

    Hi,
    I have read in documents about distributed tarnsaction that resource manager like oracle databasecthat are involved in distributed transaction can take heuristic decision(unilateral decision) and can either rollback or commit the transaction associated with itself without having confirmation from the transaction manager.
    I want to know how a resource manager take this unilateral decision and can we set this as parameter either in resource manager or in application server.
    Thanks in advance

    Hi,
    Following are some links to documents.
    Handling Heuristic Completions
    http://edocs.bea.com/wls/docs81/ConsoleHelp/jta.html
    A heuristic completion (or heuristic decision) occurs when a resource makes a unilateral decision during the completion stage of a distributed transaction to commit or rollback updates. This can leave distributed data in an indeterminate state. Network failures or resource timeouts are possible causes for heuristic completion. In the event of an heuristic completion, one of the following heuristic outcome exceptions may be thrown:
    HeuristicRollback—one resource participating in a transaction decided to autonomously rollback its work, even though it agreed to prepare itself and wait for a commit decision. If the Transaction Manager decided to commit the transaction, the resource's heuristic rollback decision was incorrect, and might lead to an inconsistent outcome since other branches of the transaction were committed.
    HeuristicCommit—one resource participating in a transaction decided to autonomously commit its work, even though it agreed to prepare itself and wait for a commit decision. If the Transaction Manager decided to rollback the transaction, the resource's heuristic commit decision was incorrect, and might lead to an inconsistent outcome since other branches of the transaction were rolled back.
    HeuristicMixed—the Transaction Manager is aware that a transaction resulted in a mixed outcome, where some participating resources committed and some rolled back. The underlying cause was most likely heuristic rollback or heuristic commit decisions made by one or more of the participating resources.
    2. Understanding EJB Transaction
    http://www2.sys-con.com/itsg/virtualcd/Java/archives/0504/tyagi/index.html
    Unilateral Decisions
    The transaction manager allows certain heuristic or speculative decisions to be made based on the state of all participating resources in a transaction and the underlying two-phase commit protocol. A heuristic decision occurs when one of the resources in the transaction unilaterally decides to commit or roll back the transaction without permission from the transaction manager
    3. Oracle® Containers for J2EE
    http://download.oracle.com/docs/cd/B31017_01/web.1013/b28958.pdf
    Heuristics
    To achieve consensus, two-phase commit is a blocking protocol. This means that, if a coordinator fails before delivering the final phase messages, the participants must remain blocked, holding onto resources. Modern transaction systems add heuristics to two-phase commit, which allows such participants to make unilateral decisions about whether they will commit or rollback. If a participant makes a choice that turns out to be different from the one taken by other participants, then non-atomic behavior occurs.
    I got this problem while trying to do a distributed J2EE tarnsaction with two XA (one MQ and other Oracle 10g database XA) and one non-xa (oracle 10g database). According to above docs a resource manager can decide tarnsaction final state unilaterally and that can result in unatomic transaction.
    Do oracle also make such decision and if yes then on what ground it takes decision? Can we change this according to our requirement either always rollback/commit anywhere as parameter setting?
    Thanks

  • Entity Framework -  unable to select the oracle data connection

    Entity Framework - unable to select the oracle data connection from the wizard that allows you to select the data provider. Even though we successfully added a data connection that points to an oracle database, we still can't select an existing data connection or create a new database provider that points to an oracle instance.
    we are using both vs 2008 sp1 and vs 2010. We connect to oracle 11g and we use the latest oracle odp.net driver. the Driver is installed and working in vs studio.

    I had this exact problem when I started. I think I had downloaded the wrong odbc (the 64x version). When I unloaded that version and downloaded the 32bit version it worked.
    Hope that helps. ~ Darla

  • Oracle XE 11g and Entity Framework 4.4

    I have Windows Server 2008 R2 32bit and Oracle 11g Release 2 Express Edition installed on my server machine.
    I have Windows 7 Pro 64bit, Visual Studio 2010 SP1 32bit, .NET 4.0 and Oracle .NET Data Provider (ODTwithODAC1120320_32bit) installed on my development machine.
    The data provider download mentioned Entity Framework support. Existing tutorials on how to use Oracle with the Entity Framework makes me believe that EF is indeed supported! But when I try to create a new ADO.NET Entity Model, the Oracle data provider nor data source isn't listed!
    Image: http://i.stack.imgur.com/4SnW8.png
    On the other hand, if I want to create a new database connection, via the Server Explorer view, there are no problems connection to Oracle's DB.
    Image: http://i.stack.imgur.com/ipXSV.png
    The reason I need Entity Framework support is because we're migrating from MSSQL to Oracle and are looking for the most painless route to do so.
    Edited by: 916761 on Dec 4, 2012 3:24 AM

    I had to create a New Connection, when the dropdown menu didn't contain it.

  • Help with Oracle Entity Framework and synonyms

    Hi.
    I have some troubles using schemas and synonyms of tables. It means that we are working with diferent schemas, one of those is the owner of tables and other one use synonyms with permissions to access, modify and delete in these tables, this one is the schema that the application use. So whats the way to use this synonyms to tables using the application schema with Entity Framework?
    While I'm using the application data schema I couldn't get data from tables, because the application schema doesn't have tables just use synonyms to them.
    Thanks in advanced
    Cesar.

    I have the same problem. I have created a data connection in the VS2010 server explorer to my oracle database. In the filter I have added the schemas that my user id has access to and the tables are shown in the server explorer. However, when I go through the ADO.NET entity wizard, the tables are not shown.

  • Sorting is wrong with Entity Framework for oracle

    Hi,
    I've downloaded the Entity Framework for Oracle beta and I found a bug. It's easy to repro:
    - Create a model with a simple table
    - Create a dynamic data web app
    - display the content of your table and try to sort
    -> the sql generated is wrong and only sorts on the currently displayed rows and not the entire data.
    Did anyone else notice that?
    Edited by: lnu on 14 févr. 2011 05:51

    Before ODP.NET beta with EF was available I was working with OracleEFProvider from CodePlex (sample alpha version but works with VS2010).
    I found the same issue there. Since I had a source code I managed to find the solution.
    In class which implemented the base class DbExpressionVisitor there was a method: public override ISqlFragment Visit(DbSkipExpression e)
    I had to add sort clause AFTER visiting the expression (which was done too early in previous code).
    As the main idea of DbExpressionVisitor should be the same in case of Oracle provider, this can be the reason of improper sorting in queries with paging.

  • Mvc with oracle entity framework

    Hi,
    I am new to both MVC and Oracle EF...i have installed the necessary components (ODAC beta 3) and tried out the tutorial that oracle has put up and was able to successfully finish it...
    Now i want to create a new MVC 3 app (based on MVC Movie tutorial available online) ...
    I have a model generated from my oracle database..however when i add a controller in MVC, the controller does not seem to recognize my model..What do i need to do so that controller can recognize the model that i generated from oracle database..????
    Is there an example out there that builds an asp.net MVC app using oracle entity framework??
    Thanks.

    Hello,
    is a week that I document but I still have a bit of confusion.
    Work on Oracle 11g with VS2010 I installed ODTwithODAC112030.
    I have to make a data entry form after the registration of an account.
    Can I create an application with MVC and EntityFramework then using Razor for pages CSHTML?.
    WHAT HAVE I DONE:
    1) Creating the Oracle schema QUESTIONARIO.
    2) Execution of InstallAllOracleASPNETProviders.sql
    3) Create application with MVC 3
    4) Insert the web.config connection parameters
    <connectionStrings>
        <add name="OraQuestConnString" connectionString="DATA SOURCE=...;....;USER ID=QUESTIONARIO;PASSWORD=*****" providerName="Oracle.DataAccess.Client" />
    5) Insertion of the parameters in the web.config for the management of user profiles
    <membership defaultProvider="OracleMembershipProvider">
    <profile>
            <providers>
              <clear />
              <add name="OracleProfileProvider" type="Oracle.Web.Profile.OracleProfileProvider, Oracle.Web, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342" connectionStringName="OraQuestConnString" applicationName="questionario_casa_ufficio" />
            </ Providers>
          </ Profile>
          <roleManager enabled="true" defaultProvider="OracleRoleProvider"> .......
    6) The application works and I registered users ORA_ASPNET_USERS etc..
    7) I have created the table "Questionnaire" in the DB
    8) I have created the Model of table "Questionnaire"
    9) I created the corresponding Controller and the Views pages with Razor who created in the "Views/Questionnaire" directory all management pages (Index.cshtml - Create.cshtml - Edit.cshtml - Delete.cshtml)
    10) when the application starts tells me I can not open the databasel SQL-Server, I suppose that it work only with SQL Server!! Or did I do something wrong?
    11) Then I create the Model from DATABASE using "ADO. NET Entity Data Model"
    12) But I did not understand if I can use the EDMX Model to create pages with Razor or with another tool.
    13) Is there an automated way to create pages of data management starting from the Model EMDX or do I have to create them all manually?
    Please help me.
    Thank you very much

Maybe you are looking for