ORA-02074

Hi
I have a c# application in which i call a procedure. In the procedure i coomit/rollback after doing some DML operations. It works properly in my test database but if i connect the same to the production database it gives an error "ORA-02074 - Cannot commit or rollback in a distributed transaction".
Why is this happening? Is there any parameter setting related to this?
Expecting your reply ASAP.
Thanks
Sasikala

Are your test and production databases at the same version? How are you connecting - ODBC? If so, are the drivers the same version in your test and production environments?
Cheers, APC

Similar Messages

  • ORA-02074: cannot ROLLBACK in a distributed transaction

    I have a stored procedure that successfully creates a portal user when I run it with SQLPLUS.
    However when I call the same procedure through ODP.Net, I get the following error.
    "ORA-20001: ORA-02074: cannot ROLLBACK in a distributed transaction\nORA-06512: at \"PORTAL30.WWSEC_API\", line 1915\nORA-02074: cannot SET SAVEPOINT in a distributed transaction\nORA-06512: at \"PORTAL30.PRO_CREATE_WEB_USER\", line 28\nORA-06512: at line 1"
    The portal version is 3.0.9.8.2 The stored proc is in the portal30 schema and I am connecting as portal30 user.
    Any help is greatly appreciated...
    Thanks.
    The following is the code for the stored procedure:-
    CREATE OR REPLACE PROCEDURE PORTAL30.PRO_CREATE_WEB_USER (
    puser IN varchar2,
    puser_last_name IN varchar2,
    puser_first_name IN varchar2,
    puser_group IN varchar2,
    password IN varchar2
    ) AS
    l_group_id number;
    l_id number;
    e_code number;
    begin
    l_id := wwsec_api.add_portal_user(p_User_Name => puser,p_Last_Name => puser_last_name,p_First_Name => puser_first_name,p_Portal_User => 'Y');
    wwsec_api.activate_portal_user(puser);
    portal30_sso.WWSSO_API_USER_ADMIN.CREATE_USER(P_USERNAME=> puser,P_PASSWORD=>password,p_error_code=> e_code);
    wwsec_api.add_user_to_list(p_person_id => l_id,p_to_group_id => wwsec_api.group_id (p_name => puser_group),p_is_owner => wwsec_api.NOT_OWNER);
    wwsec_api.set_defaultgroup(p_groupid => wwsec_api.group_id (p_name => puser_group),p_username => puser);
    commit;
    exception
    when others then
    raise_application_error(-20001,substr(sqlerrm,1,200));
    end;
    The foll is the code I am using to call the stored proc.
    private void createUser()
    string retval ;
    OracleConnection oraconn = new OracleConnection(Data Source=testdb;User ID=portal30;Password=portal30" );
    OracleCommand cmd = new OracleCommand("PRO_CREATE_WEB_USER", oraconn);
    cmd.CommandType = CommandType.StoredProcedure;
    OracleParameter a_uid = new OracleParameter("puser" ,OracleDbType.Varchar2,20);
    a_uid.Direction = ParameterDirection.Input ;
    a_uid.Value = (txtUserId.Text).Trim() ;
    cmd.Parameters.Add(a_uid);
    OracleParameter a_last_name = new OracleParameter("puser_last_name" ,OracleDbType.Varchar2,20);
    a_last_name.Direction = ParameterDirection.Input ;
    if (( txtLName.Text).Trim() != "" )
    a_last_name.Value = (txtLName.Text).Trim() ;
    else
    a_last_name.Value = " ";
    cmd.Parameters.Add(a_last_name);
    OracleParameter a_first_name = new OracleParameter("puser_first_name" ,OracleDbType.Varchar2,20);
    a_first_name.Direction = ParameterDirection.Input ;
    if ((txtFName.Text).Trim() != "")
    a_first_name.Value = (txtFName.Text).Trim() ;
    else
    a_first_name.Value = " ";
    cmd.Parameters.Add(a_first_name);
    OracleParameter a_type = new OracleParameter("puser_group" ,OracleDbType.Varchar2,20);
    a_type.Direction = ParameterDirection.Input ;
    a_type.Value = (lstUserType.SelectedValue).Trim() ;
    cmd.Parameters.Add(a_type);
    OracleParameter a_passwd = new OracleParameter("password" ,OracleDbType.Varchar2,20);
    a_passwd.Direction = ParameterDirection.Input ;
    a_passwd.Value = (txtPassword.Text).Trim() ;
    cmd.Parameters.Add(a_passwd);
    try
    oraconn.Open();
    cmd.ExecuteNonQuery();
    lblMsg.ForeColor = System.Drawing.Color.FromName("blue");
    lblMsg.Text = "User Created.";
    catch(OracleException e)
    { retval = e.Message ;
    lblMsg.ForeColor = System.Drawing.Color.FromName("red");
    lblMsg.Text = "Error Creating user" ;
    finally
    oraconn.Close();

    Also note that remote procedure/function calls (e.g. from ODP.NET), do not support distributed transactions (i.e. a SAVEPOINT/ROLLBACK block within the PL/SQL procedure/function) before database version Oracle 9i.
    So if you are using say Oracle 817 you must use the "OracleTransaction" object in ODP.NET instead.
    See:
    http://www.dotnet247.com/247reference/msgs/39/197274.aspx

  • Need help on  ORA-02074: cannot SET NLS in a distributed transaction

    Hi All,
    I am Writing a plsql Code like this
    DECLARE
    op_job_id NUMBER;
    op_object_version_number NUMBER;
    x_job_definition_id NUMBER;
    op_name VARCHAR2(1000);
    L_VERIFY_FLAG VARCHAR2(1);
    l_error_message VARCHAR2(2000);
    BG_ID NUMBER;
    lv_job_group_id APPS.per_job_groups.job_group_id@SYSTEM_LINK_VISMA%TYPE;
    CURSOR C1 IS SELECT * FROM EBS_PER_JOBS_STG;
    BEGIN
    FOR H1 IN C1
    LOOP
    BEGIN
    IF H1.BUSINESS_GROUP_NAME IS NOT NULL THEN
    SELECT BUSINESS_GROUP_ID,job_group_id INTO BG_ID,lv_job_group_id
    FROM APPS.PER_JOB_GROUPS@SYSTEM_LINK_VISMA
    WHERE DISPLAYED_NAME=H1.JOB_GROUP_NAME;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    L_VERIFY_FLAG := 'E';
    l_error_message := 'Entered Job Group Name is Wrong';
    END;
    -->> JOB GROUP ID <<--
    APPS.hr_job_api.CREATE_JOB@SYSTEM_LINK_VISMA
    (p_business_group_id => BG_ID
    ,p_date_from => H1.DATE_FROM
    ,p_approval_authority => H1.APPROVAL_AUTHORITY
    ,p_emp_rights_flag => H1.EMP_RIGHTS_FLAG
    ,p_benchmark_job_flag => H1.BENCHMARK_JOB_FLAG
    ,p_job_group_id => lv_job_group_id
    ,p_job_information1 => H1.JOB_INFORMATION1
    ,p_job_information2 => H1.JOB_INFORMATION2
    ,p_job_information3 => H1.JOB_INFORMATION3
    ,p_job_information4 => H1.JOB_INFORMATION4
    ,p_job_information5 => H1.JOB_INFORMATION5
    ,p_job_information6 => H1.JOB_INFORMATION6
    ,p_job_information7 => H1.JOB_INFORMATION7
    ,p_segment3 => H1.JOB_CODE --JOB_CODE
    ,p_segment6 => H1.JOB_NAME --JOB_NAME
    ,p_job_id => op_job_id
    ,p_object_version_number => op_object_version_number
    ,p_job_definition_id => x_job_definition_id
    ,p_name => op_name);
    dbms_output.PUT_LINE('OUTPUT JOB NAME CREATED : '||op_name);
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.PUT_LINE('Error Message Is: '||SQLERRM);
    END;
    i am running it in Another database Using database link connecting to Apps.
    when i am running it am getting the following Error:
    Error Message Is: ORA-02074: cannot SET NLS in a distributed transaction
    ORA-06512: at "APPS.HR_KFLEX_UTILITY", line 2423
    ORA-06512: at "APPS.HR_KFLEX_UTILITY", line 2380
    ORA-06512: at "APPS.PER_JBT_UPD", line 468
    ORA-02074: cannot SET NLS in a distributed transaction
    ORA-06512: at "APPS.HR_JOB_API", line 878
    Please help me on this, this is quite urgent to me.
    thanks
    sri

    Please see these docs.
    ORA-02074: Cannot SET NLS in a Distributed Transaction [ID 556391.1]
    Portal Used To Call PO_CHANGE_API1_S: ORA-20001: ORA-02074: Cannot SET NLS In A Distributed Transaction [ID 561246.1]Why are Concurrent Programs Calling FND_GLOBAL.APPS_INITIALIZE Using DBLinks Failing? [ID 466800.1]
    ORA-02074 when Executing set_nls over a DB Link [ID 132679.1]
    Thanks,
    Hussein

  • ORA-02074 Error and MS Data Provider

    I have no idea where to post this kind of stuff, but let's give this a try and if it should be posted elsewhere, just let me know and I will move it!
    My C++ developers use the MS Data Provider to access our 9i database. They call stored procedures to do the usual kind of application tasks. Nothing special. Many of the procs take parameters and insert/update/ or delete rows in tables and either ROLLBACK or COMMIT. No transactions are left pending at the end of any proc.
    Well, some procedures yield a "ORA-02074: cannot ROLLBACK in a distributed transaction" error message when two conditions are met:
    (1) The procedure has a non-conditional "ROLLBACK" AND
    (2) The procedure has been WRAPped and is obfuscated.
    This is quite odd. It seems that that Oracle code behaves differently when WRAPped! Creating the same proc not WRAPped functions correctly! The WRAPped procs run fine in SqlPlus, but when called from the data provider the procs croke!
    Any ideas? I mean, rational ones?
    Regards
    Michael

    The table does have a primary key (Cust_id), and like I said, I can update the data.
    Thanks for the thought.... Any other ideas? Anyone have a datagrid sample that they want to share? (as long as it updates and you can add records to it).
    Thanks - Jim

  • ORA-02074 in oracle 8 Worked fine in 7.x

    Executing a plsql string from msaccess
    via an odbc passthrough query..
    for some reason the oracle8 odbc driver is
    enforcing a transaction
    is there a known work around?????
    ORA-02074 cannot string in a distributed transaction
    Cause: A commit or rollback was attempted from session other than the parent
    of a distributed transaction.
    Action: Only commit or roll back from the parent session.

    HELP!!... Okay here goes..
    I am using an passthrough query to Oracle
    It worked in Oracle 7.4,
    but is not working in 8i
    **This is the error
    [Oracle][ODBC][Ora]
    ORA-02074: cannot SET SAVEPOINT in a distributed transaction
    ORA-06512: at "FuncName", line 1391
    ORA-06512: at "FuncName", line 1995
    ORA-06512: at "FuncName", line 2016
    ORA-06512: at line 1
    (#2074)
    **This is the PL/SQL
    begin call_isrconpick('36719288', 0, 0, 1, 'DPR'); end;
    **This is the VB code..
    Function CommitOnePick(strtask_id As String, _
    intpicked_q As Integer, _
    intoverflow As Integer, _
    intshort As Integer, _
    strperf_by As String)
    'On Error GoTo eTrap
    Dim strConn As String
    Dim qdf As QueryDef
    'If MsgBox("Are you sure you want execute the PLSQL statement?", _
    vbOKCancel + vbQuestion + vbDefaultButton2) = vbOK Then
    DoCmd.Hourglass True
    strConn = CurrentDb.TableDefs("MOVE_TABLE_DATA").Connect
    Set qdf = CurrentDb.CreateQueryDef("")
    qdf.Connect = strConn
    qdf.SQL = "begin call_isrconpick('" & _
    strtask_id & "', " & _
    intpicked_q & ", " & _
    intoverflow & ", " & _
    intshort & ", '" & _
    strperf_by & "'); end;"
    Debug.Print qdf.SQL 'sanity check
    qdf.ReturnsRecords = False
    DoCmd.Hourglass False
    qdf.Execute dbSQLPassThrough
    DoCmd.Hourglass False
    'End If
    Exit Function
    eTrap:
    DoCmd.Hourglass False
    MsgBox "An unexpected error occured:" & vbCrLf & vbCrLf & Err & " - " & Error, vbExclamation, "Error"
    End Function
    null

  • 원격지 서버의 Package를 DB Link로 구동시 ORA-02074 발생

    각설하고 문의드립니다.
    1. 구성
    - 부산 서버의 A 유저에 있는 Package를
    동일 서버의 B 유저에 GRANT하였습니다.
    - 서울 서버의 C 유저에서 B 유저로 DB Link를 구성하였습니다.
    - 서울 서버의 C 유저에서 부산 서버의 A 유저의 Package를 실행하였습니다.
    (EXECUTE A_USER.A_PACKAGE.A_PROCEDURE@SB_LINK;)
    - A_PACKAGE.A_PROCEDURE는 A 유저의 테이블뿐만아니라,
    C 유저의 TABLE도 SELECT/UPDATE합니다.
    물론 부산 서버에서 C 유저로 DB Link를 구성하였습니다.
    2. 결과
    - "ORA-02074 cannot COMMIT or ROLLBACK in a distributed transaction"
    이 발생합니다.
    지원업체의 DB 관리자에게 문의하였더니, Oracle8i는 DB Link를 통하여
    Package를 구동할 수 없을지도 모른다고 합니다.
    하지만, 저는 무언가 설정이 잘못되었다고 생각합니다.
    무엇이 문제인지 가르쳐 주시면 감사하겠습니다.

    시스템 정보가 필요합니다.
    OS version, OS word size(32bit, 64bit), DB version, DB word size(32bit, 64bit)
    필요합니다. odbc사용여부도요
    그리고 사항에 따라 다른데 찾아보니 8i의 버그인데
    9i가 되어서야 고쳐진 것도 있네요.
    metalink itar를 열어서 공식적으로 진행해보시죠.
    왜냐하면 업그레이드를 해야 한다고 나와있긴 하지만 해당 사항에
    대한 코드패치가 있다면 적용시키고 해결할 수도 있을테니까요.
    9i로 업그레이드를 한다면 oracle 7버젼과는 db link가 안됩니다.
    다른 서비스와의 연계성때문에 9i로 못올릴 수도 있으니
    오라클에 공식 요청해서 정확하게 알아내는 것이 중요할 것 같습니다.
    여러 문서중 하나..;;
    note 215554.1 Calling a Remote Stored Procedure Fails with ORA-2074 error

  • ORA-02074 when calling proc from VB

    Anyone have any idea why a stored procedure that sets a savepoint will fail with
    [Oracle][ODBC][Ora]ORA-02074: cannot ROLLBACK in a distributed transaction
    ORA-02074: cannot SET SAVEPOINT in a distributed transaction
    ORA-06512: at "PIPS_ADMIN.PKG_ACAS_COMMON", line 1098
    ORA-06512: at line 1
    when called from Visual Basic via an ADO connection through ODBC BUT
    will succeed when called from SQL*Plus or TOAD or other tool.
    Any ideas appreciated.
    Mike

    The change was only made to a local variable in a function that was called from the original function that got the parameters from the java client.
    I changed it from localtimestamp to systimestamp and it works fine.
    Do i have to make any settings about the time zone in the jdbc thin client ?

  • Oracle DB Adapter throwing NLS_LANGUAGE' by invoking SP in  BPEL Process

    Hi,
    While i am invoking a Store procedure, the DB Adapter in BPEL process reslting throwing following below error in
    <fault>
    <bpelFault>
    <faultType>0</faultType>
    <bindingFault>
    <part name="summary">
    <summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'ESOAAdd_DBWraper' failed due to: Stored procedure invocation error. Error while trying to prepare and execute the BPEL_ESOAADD_DBWRAPER.XXEMC_INT_PKG$AR_TRX_PRC API. An error occurred while preparing and executing the BPEL_ESOAADD_DBWRAPER.XXEMC_INT_PKG$AR_TRX_PRC API. Cause: java.sql.SQLException: ORA-20001: Oracle error -20001: ORA-20001: Oracle error -2074: ORA-02074: cannot SET NLS in a distributed transaction has been detected in fnd_global.set_nls.set_parameter('NLS_LANGUAGE','AMERICAN'). has been detected in fnd_global.set_nls. ORA-06512: at "APPS.APP_EXCEPTION", line 72 ORA-06512: at "APPS.FND_GLOBAL", line 245 ORA-06512: at "APPS.FND_GLOBAL", line 1426 ORA-06512: at "APPS.FND_GLOBAL", line 1684 ORA-06512: at "APPS.FND_GLOBAL", line 2309 ORA-06512: at "APPS.FND_GLOBAL", line 2447 ORA-06512: at "APPS.FND_GLOBAL", line 2385 ORA-06512: at "APPS.XXEMC_INT_PKG", line 22 ORA-06512: at "APPS.BPEL_ESOAADD_DBWRAPER", line 620 ORA-06512: at line 1 Check to ensure that the API is defined in the database and that the parameters match the signature of the API. This exception is considered not retriable, likely due to a modelling mistake. To classify it as retriable instead add property nonRetriableErrorCodes with value "-20001" to your deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff. All properties are integers. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary>
    </part>
    <part name="detail">
    <detail>ORA-20001: Oracle error -20001: ORA-20001: Oracle error -2074: ORA-02074: cannot SET NLS in a distributed transaction has been detected in fnd_global.set_nls.set_parameter('NLS_LANGUAGE','AMERICAN'). has been detected in fnd_global.set_nls. ORA-06512: at "APPS.APP_EXCEPTION", line 72 ORA-06512: at "APPS.FND_GLOBAL", line 245 ORA-06512: at "APPS.FND_GLOBAL", line 1426 ORA-06512: at "APPS.FND_GLOBAL", line 1684 ORA-06512: at "APPS.FND_GLOBAL", line 2309 ORA-06512: at "APPS.FND_GLOBAL", line 2447 ORA-06512: at "APPS.FND_GLOBAL", line 2385 ORA-06512: at "APPS.XXEMC_INT_PKG", line 22 ORA-06512: at "APPS.BPEL_ESOAADD_DBWRAPER", line 620 ORA-06512: at line 1 </detail>
    </part>
    <part name="code">
    <code>20001</code>
    </part>
    </bindingFault>
    </bpelFault>
    </fault>
    Can any one gude me to over come from this error.
    Thanks,
    Srikanth

    I believe you are invoking a Standard Seeded API in Oracle EBS. Please use the Oracle Apps Adapter instead of the Database Adapter.
    Also, before the API call, make sure you invoke the SET_CLIENT_INFO procedure under the package DBMS_APPLICATION_INFO. While invoking this set client info procedure, you need to pass an input of 0 (zero) . Confirm the same with your EBS Experts in the team.
    Also, now when calling the Standard API, you need to pass the credentials in the invoke activity header properties.
    look at this link for my suggestions on the same
    Re: Error while Uploading PO's into Oracle
    Let me know...
    Hope this helps,
    N

  • Error while Uploading PO's into Oracle

    I tried 2 different ways of uploading PO into Oracle
    SOA Suuite 11.1.1.3.0
    JDev : 11.1.1.3.0
    Oracle EBS 11.5.10.2
    1. Calling the Stored procedure which has fnd_request.submit_request
    2. Using Oracle Applications Adapter and calling the standard concurrent program
    When I do step 1 I was able to create PO in every alternate session. it gives the following error for every other instance. But this error comes only every alternate time.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'RF_POImport' failed due to: Stored procedure invocation error. Error while trying to prepare and execute the APPS.RFCUST_PKG_PO_IMPORT.RFCUST_PO_IMPORT_PROC API. An error occurred while preparing and executing the APPS.RFCUST_PKG_PO_IMPORT.RFCUST_PO_IMPORT_PROC API. Cause: java.sql.SQLException: ORA-20001: Oracle error -20001: ORA-20001: Oracle error -2074: ORA-02074: cannot SET NLS in a distributed transaction has been detected in fnd_global.set_nls.set_parameter('NLS_LANGUAGE','AMERICAN'). has been detected in fnd_global.set_nls. ORA-06512: at "APPS.APP_EXCEPTION", line 72 ORA-06512: at "APPS.FND_GLOBAL", line 245 ORA-06512: at "APPS.FND_GLOBAL", line 1426 ORA-06512: at "APPS.FND_GLOBAL", line 1684 ORA-06512: at "APPS.FND_GLOBAL", line 2309 ORA-06512: at "APPS.FND_GLOBAL", line 2447 ORA-06512: at "APPS.FND_GLOBAL", line 2385 ORA-06512: at "APPS.RFCUST_PKG_PO_IMPORT", line 1096 ORA-06512: at line 1 ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary>
    </part>
    <part name="detail">
    <detail>ORA-20001: Oracle error -20001: ORA-20001: Oracle error -2074: ORA-02074: cannot SET NLS in a distributed transaction has been detected in fnd_global.set_nls.set_parameter('NLS_LANGUAGE','AMERICAN'). has been detected in fnd_global.set_nls. ORA-06512: at "APPS.APP_EXCEPTION", line 72 ORA-06512: at "APPS.FND_GLOBAL", line 245 ORA-06512: at "APPS.FND_GLOBAL", line 1426 ORA-06512: at "APPS.FND_GLOBAL", line 1684 ORA-06512: at "APPS.FND_GLOBAL", line 2309 ORA-06512: at "APPS.FND_GLOBAL", line 2447 ORA-06512: at "APPS.FND_GLOBAL", line 2385 ORA-06512: at "APPS.RFCUST_PKG_PO_IMPORT", line 1096 ORA-06512: at line 1 </detail>
    I tried the Oracle Applications adapter...I'm getting the following error. But If i set the org,user and application in FND_GLOBAL for the first time and call the apps adapter its working fine for some time. I guess some caching issue with DB and apps adapter was not able to set the org,resp and user
    Encountered an error while getting the ORACLE user account for your concurrent request. Contact your system administrator
    Please Advice.
    Thanks In Advance,
    Satish

    Hi,
    I faced this issue and was able to resolve by doing the following.
    1. For Oracle Apps adapter, set the NLS Lang, Org Id, Username, Responsibility, Application details.
    2. Instead of using an XA transaction data source, create a non-XA data source connection and use it in the Apps adapter JNDI.
    This should resolve your issue.
    Thanks,
    Gautham

  • Error while calling Workflow APIs remotely

    I have standalone workflow engine. I have created views and workflow packages in another databases. These packages are calling workflow APIs internally using DB Link. I call these packages inside Powerbuilder. I start process from the PowerBuilder, process started successfully. User responded to the notification by logging into powerbuilder, it is also successful.
    But when user responds to last notification to END the process, I am getting following error:
    ORA-02074: cannot ROLLBACK in a distributed transaction
    ORA-06512: at "OWF_MGR.WF_ENGINE_UTIL", line 1263
    ORA-02074: cannot SET SAVEPOINT in a distributed transaction
    Is it wrong to call Workflow APIs remotely ? Any solution ?
    Regards

    Hi,
    I think, we had the same problem and was resolved by the following approach:
    1. define the external function call within one transaction unit...can use pragma.
    2. commit the transaction and then close the DB link using alter session....
    Suprabhat.

  • E-Business Suite apps_initialize and SOA Global Transactions

    Hi,
    We are developing an integration which sends data from one system to an Oracle E-Business Suite instance. In order to load the data into E-Business we need to call API’s which require the fnd_global.apps_initialize to be run.
    We have a custom PL/SQL procedure which calls the API
    e.g.
    SOA -> custom PL/SQL -> E-Biz API
    The custom PL/SQL runs apps_initialize.
    The problem is when we call this from SOA via a XA connection we get the following error:
    <P_ERR_MESSAGE>Error - Failed to delete the interface records after reading result! Message: Unknown Error ORA-20001: Oracle error -20001: ORA-20001: Oracle error -2074: ORA-02074: cannot SET NLS in a distributed transaction
    has been detected in fnd_global.set_nls.set_parameter('NLS_LANGUAGE','AMERICAN').
    has been detected in fnd_global.set_nls. ORA-06512: at "APPS.APP_EXCEPTION", line 72
    ORA-06512: at "APPS.FND_GLOBAL", line 245
    ORA-06512: at "APPS.FND_GLOBAL", line 1426
    ORA-06512: at "APPS.FND_GLOBAL", line 1684
    ORA-06512: at "APPS.FND_GLOBAL", line 2309
    ORA-06512: at "APPS.FND_GLOBAL", line 2447
    ORA-06512: at "APPS.FND_GLOBAL", line 2385
    ORA-06512: at "APPS.ICSOA_UTIL_PKG", line 42
    ORA-06512: at "APPS.ICAR_INT_PKG", line 521
    </P_ERR_MESSAGE>
    The main error here is cannot SET NLS in a distributed transaction.
    This is caused by fnd_global.apps_initialize running SET NLS commands in order to do it’s thing.
    We are looking to use the functionality of global transactions in order to achieve reliable messaging.
    Does anyone have any experience with calling custom PL/SQL from SOA XA connections?
    Robert

    Robert,
    I have the similar use case. I am using a seeded Oracle API to insert data into the tables. I want the user information to be populated in the WHO columns (CREATED_BY, LAST_UPDATED_BY). I have mentioned the jca.apps.username and jca.apps.responsibility in the Invoke activity.
    But unfortunately, the columns are not populated with the data. I am using the Oracle Apps Adapter to call the API.
    Any inputs will be really helpful.
    Thanks,
    Sakthi.

  • [질문]MTS 와 Dispatcher 관련 Error 메시지

    안녕하세요 ^^ alert log 에 관해서 질문 하나 올립니다 ~
    우선 alert log 에 아래와 같은 에러 메시지가 떨어졌습니다.
    Errors in file /oracle/app/oracle/admin/HLC2/udump/hlc2_ora_5670.trc:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-02067: transaction or savepoint rollback required
    ORA-02055: distributed update operation failed; rollback required
    ORA-02074: cannot ROLLBACK in a distributed transaction
    ORA-06512: at "HDTSN.SP_RF_STAV_MAIN", line 212
    ORA-02064: distributed operation not supported
    우선 OS는 Sun sparc 5.8 이구요~
    오라클은 8.1.6.3 입니다....
    제가 찾아본 결과 MTS 와 DISPATCHER 가 데이터베이스 링크을 하는 도중
    타이밍 아웃이 발생하면서 생기는 오류 라고 합니다. 그래서 INIT 파일에서 MTS 에 관한 값을 false 로 설정하면 된다고 나오는데...
    그래서 이와 관련된 parameter 값을 확인해보니
    mts_servers=0
    mts_max_servers=20
    mts_max_dispatchers=5
    mts_dispatchers=null 이렇게 값들이 설정이 되있더라구요...
    우선 제가 오류 분석을 제대로 했는지는 모르겠지만...제가 한 분석대로 해석을
    한다면 mts_dispatcher 값이 주어지지 않았는데...어떻게 저런 error 메시지가
    떨어지는 건지 궁금합니다...
    그리고 제가 오류 판단을 잘못했다면 어떠한 과정을 통해서 저런 error 메시지가
    떨어졌는지도 궁금합니다...^^;
    글 수정:
    키노미르

    죄송하지만.. 어디에서 어디로 링크를 걸은 것인지요?
    SUN < -> windows (ODBC) 인지요?
    찾으신 "Disable MTS"라는 것은..
    윈도우즈의 ODBC설정에서
    Disable distributed Microsoft Transaction Server 을 선택하라는
    것입니다.
    이에 대한 것은
    metalink note 163986.1 Unable to Use SET SAVEPOINT While Using ODBC Application
    이구요..
    만약 유닉스 장비라면..
    remote로 프로시저를 수행하려고 하지 않으셨는지요?
    9i이상에서만 에러없이 진행된다고 아는데요.
    그리고 8.1.6버젼은 no certification이니 업그레이드 테스트해서
    어플리케이션들이 정상동작하는지 확인후, 9i 이상으로 업그레이드
    하는 것이 좋을 것 같습니다.

  • Getting NLS setting issues when calling procedure

    Hi,
    Can anybody suggest me what could the problem in the below issue?.
    i am invokeing procedure using DBAdapter. My soa version is 11.1.1.5. When i am calling procedure first time it is working fine. But when i am invoke second time
    it is showing below error. I observed that i am getting error alternativly. So kinldy advice me what could be the issue.
    Error:
    Cause: java.sql.SQLException: ORA-20001: Oracle error -20001: ORA-20001: Oracle error -2074: ORA-02074: cannot SET NLS in a distributed transaction has been detected in fnd_global.set_nls.set_parameter('NLS_LANGUAGE','AMERICAN'). has been detected in fnd_global.set_nls. ORA-06512: at "APPS.APP_EXCEPTION", line 72 ORA-06512: at "APPS.FND_GLOBAL", line 240 ORA-06512: at "APPS.FND_GLOBAL", line 1410 ORA-06512: at "APPS.FND_GLOBAL", line 1655 ORA-06512: at "APPS.FND_GLOBAL", line 2171 ORA-06512: at "APPS.FND_GLOBAL", line 2313 ORA-06512: at "APPS.FND_GLOBAL", line 2251 ORA-06512: at
    Regards,
    Adhi

    Hi:
    Another way to avoid this, is to use an Non-XA Datasource.
    Hope this helps
    best

  • CreateUserWizard error with duplicate email / username

    Hi, I am using the oracle membership provider for an application and have found that I can create users and log in just fine however if I try to create a user with a duplicate email address or username the application crashes with the message below. I was thinking this would all be gracefully handled between the CreateUserWizard and the membership provider but apparently not? I've managed to repeat this on two machines but I am certainly no expert in all this.
    Anyone come across this before and have any advise on how to sort it out.
    Oracle9, .NETv2
    Thanks
    Jason
    ==================================================================
    ORA-02074: cannot ROLLBACK in a distributed transaction
    ORA-06512: at "CAGMOCK_OWNER.ORA_ASPNET_MEM_CREATEUSER", line 171
    ORA-00001: unique constraint (CAGMOCK_OWNER.SYS_C003174) violated
    ORA-06512: at line 1
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: Oracle.DataAccess.Client.OracleException: ORA-02074: cannot ROLLBACK in a distributed transaction
    ORA-06512: at "CAGMOCK_OWNER.ORA_ASPNET_MEM_CREATEUSER", line 171
    ORA-00001: unique constraint (CAGMOCK_OWNER.SYS_C003174) violated
    ORA-06512: at line 1
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [OracleException (0x80004005): ORA-02074: cannot ROLLBACK in a distributed transaction
    ORA-06512: at "CAGMOCK_OWNER.ORA_ASPNET_MEM_CREATEUSER", line 171
    ORA-00001: unique constraint (CAGMOCK_OWNER.SYS_C003174) violated
    ORA-06512: at line 1]
    Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure) +295
    Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src) +21
    Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery() +3456
    Oracle.Web.Security.OracleMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) +2793
    System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +318
    System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +102
    System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +418
    System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +161
    System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +19
    System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
    System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +118
    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
    System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

    Hi, thanks for the help. First I will qualify my answer with the fact that I am by far from any expert in Oracle.
    The version I have is 9.2.0.1.0 which is installed on the same machine as the web server there is certainly no remote database involved in this transaction (or there shouldn't be). Using ODAC 11.1.0.6.21
    also, not sure if there could be any issues with having Oracle client 9 installed at the same time as this?
    Connection string is as follows:
    {color:#808080}&lt;connectionStrings&gt;
    &lt;add name="CPMOC_ConnectionString" connectionString="Data Source=MOC;User Id=CAGMOCK_OWNER;Password=ABC;"/&gt;
    &lt;/connectionStrings&gt;
    &lt;membership defaultProvider="MyOracleMembershipProvider"&gt;
    &lt;providers&gt;
    &lt;add name="MyOracleMembershipProvider"
    type="Oracle.Web.Security.OracleMembershipProvider,Oracle.Web, Version=2.111.6.20, Culture=neutral,
    PublicKeyToken=89b483f429c47342"
    connectionStringName="CPMOC_ConnectionString"
    applicationName="MOC"
    enablePasswordRetrieval="false"
    enablePasswordReset="true"
    requiresQuestionAndAnswer="true"
    requiresUniqueEmail="true"
    passwordFormat="Hashed"
    maxInvalidPasswordAttempts="4"
    minRequiredPasswordLength="6"
    minRequiredNonalphanumericCharacters="0"
    passwordAttemptWindow="8" /&gt;
    &lt;/providers&gt;
    &lt;/membership&gt;{color}
    Edited by: JasonY on Mar 6, 2009 12:59 PM

  • CreateUserWizard error with duplicate email

    Hi, I am using the oracle membership provider for an application and have found that I can create users and log in just fine however if I try to create a user with a duplicate email address or username the application crashes with the message below. I was thinking this would all be gracefully handled between the CreateUserWizard and the membership provider but apparently not?
    Anyone come across this before and have any advise on how to sort it out.
    Oracle9, .NETv2
    Thanks
    Jason
    ==================================================================
    ORA-02074: cannot ROLLBACK in a distributed transaction
    ORA-06512: at "CAGMOCK_OWNER.ORA_ASPNET_MEM_CREATEUSER", line 171
    ORA-00001: unique constraint (CAGMOCK_OWNER.SYS_C003174) violated
    ORA-06512: at line 1
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: Oracle.DataAccess.Client.OracleException: ORA-02074: cannot ROLLBACK in a distributed transaction
    ORA-06512: at "CAGMOCK_OWNER.ORA_ASPNET_MEM_CREATEUSER", line 171
    ORA-00001: unique constraint (CAGMOCK_OWNER.SYS_C003174) violated
    ORA-06512: at line 1
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [OracleException (0x80004005): ORA-02074: cannot ROLLBACK in a distributed transaction
    ORA-06512: at "CAGMOCK_OWNER.ORA_ASPNET_MEM_CREATEUSER", line 171
    ORA-00001: unique constraint (CAGMOCK_OWNER.SYS_C003174) violated
    ORA-06512: at line 1]
    Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure) +295
    Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src) +21
    Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery() +3456
    Oracle.Web.Security.OracleMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) +2793
    System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +318
    System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +102
    System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +418
    System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +161
    System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +19
    System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
    System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +118
    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
    System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

    Hi Jason,
    For best results, you may want to post this over in the [Oracle Providers for ASP.NET|http://forums.oracle.com/forums/forum.jspa?forumID=383] forum.
    Greg

Maybe you are looking for

  • Hard Drive Failure on HP DV 6000 Pavilion laptop Windows-XP​sp3 OS - Need Data Recovery Help

    Hard Drive Failure on HP DV 6000 Pavilion laptop - Need Data Recovery Help HP Pavilion DV 6108 NR, RG365UA, purchased in late 2006 at Best Buy, with Windows XP, upgraded to Service Pack 3. It has a Fujitsu hard disk, 60 gigabyte, partitioned into C:

  • How can I copy and paste events in the calendar?

    Does anyone know how to cut and paste or copy and past events in the calendar?  The events happen at different times and on different days so I can't just "repeat".  Thanks in advance!

  • How to convert string into date

    Hi all, I m new to JDeveloper I m taking the date as a string then passing it as a string in the method. I want to convert tht string into the date of format (DD-MON-YYYY) or any other format require yur assistance in this job. THANKXX in advance ank

  • Safari 6.0.5 Broken

    Can anyone test this page and see if you can close the pop up box? I can't close it in Safari, but I can in Firefox. http://news.cnet.com/8301-13579_3-57606004-37/apple-releases-os-x-mavericks-gold en-master-to-developers/ Safari doesn't work on abou

  • Save copy delete is failed

    Dear All, When i try to run this script /usr/sap/GQR/SYS/exe/run/brarchive -d util_file -scd -c -u  <username>/<password>@GQR in  ORASID, i got this error BR0006I Start of offline redo log processing: aeakekpv.cpd 2009-04-21 16.08.59 BR0484I BRARCHIV