Error committing transaction in Stored Proc call - prev solns not working

Hi All,
Our process invokes a DB adapter to fetch the response from the table for our request via Stored Procedure call but facing the below issue. Its a synchronous process. Stored Procedure is present inside the Package and we are calling the Stored procedure using that Package.
What we did is created a DB datasource of XA type and tried to call the Stored Proc but it was giving a problem “ORA-24777: use of non-migratable database link not allowed” and hence according to this thread Using DB links in Stored proc call in DB adapter 11G SOA we have modified the datasource as non-XA type.
While we do that, we could see that Stored Proc is called and the response is present in the reply payload inside the flow trace. But the instance is getting faulted and the error is “Error committing transaction:; nested exception is: javax.transaction.xa.XAException: JDBC driver does not support XA, hence cannot be a participant in two-phase commit. To force this participation, set the GlobalTransactionsProtocol attribute to LoggingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source.”
We have tried the properties of global transaction support as one phase commit, emulate two phase commit and logging last resource but error remains the same.
Database from which we are getting the response is of version "Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production". Will the database link error arises even if we connect to Oracle Database?
Please could you advise me solutions to resolve this issue.
Thanks in advance.

You are using Non-XA because it means (among all others) that the commit issue can be handle by the DB as well.
The Emulate Two Phase property imitating the XA transaction in that way, that it allows you to manage a local db transaction.
You can stay with XA connection, but then you will have to use "AUTONOMOUS_TRANSACTION pragma" in your procedure.
Enter the following link to find good explanation about all of your questions:
http://docs.oracle.com/cd/E15523_01/integration.1111/e10231/adptr_db.htm#BGBIHCIJ
Arik

Similar Messages

  • Oracle stored procedure call failed,but not captured by the error handling

    Hi All,
    I have a unix shelll script which calls a stored proc in Oracle, the stored proc call failed due to "ORA-01033: ORACLE initialization or shutdown in progress".
    But it is not captured in the error handling block, Any ideas why this had happened?
    SQL file had : my_test_sql.sql
    exec my_proc(..............);
    Unix shell script has this call:
    sqlplus -s my_user/my_pwd@db1 @my_test_sql.sql
    if [[ $? -ne 0 ]]; then
    echo "failed"
    exit 1
    else
    echo "success"
    fi
    If i execute the above shell, I'm getting the following
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    SP2-0306: Invalid option.
    Usage: CONNÝECT¨ Ýlogon¨ ÝAS SYSDBA¨
    where <logon> ::= <username>Ý/<password>¨Ý@<connect_identifier>¨ | /
    success.
    This puzzled me, any pointers?

    The $? status variable shows the return code of the last command executed. It will be difficult to determine what the exit status of your sql script is without knowing the script. Do you have any "WHENEVER SQLERROR EXIT" statements in the script?
    The ORA-01033 error happens when the database is not open, perhaps in recovery, or startup or shutdown is halted due to a failed or full disk, error in archiving or writing to redo, etc.

  • Non blocking stored proc call

    HI
    I have written a c application using OCI which can call stored proc. but that is using blocking call. Is it possible to call stored proc in non blocking mode? So that I can receive output in call back function. Actually stored proc take much time to execute can I associate some Subscription callback-function with my stored proc call. Any idea?
    Thanks
    Kamran

    If you want to do non-blocking calls in OCI, you just need to set the server handle (svrhp below) attribute:
    sb2 polling=1;
    OCIAttrSet((dvoid *)svrhp,
    (ub4)OCI_HTYPE_SERVER,
    (dvoid *)&polling,
    (ub4)0,
    (ub4)OCI_ATTR_NONBLOCKING_MODE,
    (OCIError *) errhp);
    And then you call you OCIExecute() as you would in blocking mode. The difference is that instead of blocking until the call is done on the server, it always returns immediately. So instead of calling it just once per statement and checking the return code, you must keep calling OCIExecute() until it does not equal OCI_STILL_EXECUTING. When the proc is done, the final call to OCIExecute() will then be OCI_SUCCESS, OCI_ERROR, whatever happened.

  • Stored Procedure with in param not working

    I have  a stored procedure that works  now I need to use an in Parameter . when I made modification now the stored proc says  "Source does not have a runnable target." I can't seem to figure out what is wrong wit it.
    using SQL developer  version 1.5.5
    here is the  stored proc
    CREATE OR REPLACE
    PROCEDURE STATEMENT_DOMESTIC_TEST
    ( s_date IN statement.statementdate%Type
    ) AS
    BEGIN
    INSERT INTO STATEMENT_DATA
                      (   STATEMENTNUMBER,
                          STATEMENTTOTAL,
                          STATEMENTDATE,
                          BALANCE_FORWARD,
                          CUSTID,
                          CUSTNAME,
                          STATEMENTPURCHASES,
                          STATEMENTPAYMENTS,
                          NOMAILNOPRINT,
                          SOLDTOCOUNTRYNAME,
                          CREDITZEROFLAG,
                          SOLDTOCOUNTRYCODE)
                SELECT  STATEMENTNUMBER,
                        STATEMENTTOTAL,
                        STATEMENTDATE,
                        BALANCE_FORWARD,
                        CUSTID,
                        CUSTNAME,
                        STATEMENTPURCHASES,
                        STATEMENTPAYMENTS,
                        NOMAILNOPRINT,
                        SOLDTOCOUNTRYNAME,
                        CREDITZEROFLAG,
                        SOLDTOCOUNTRYCODE
                            FROM  EROCKS.PS_JWF_STATEMENT
                                  WHERE (statementdate = s_date)and (STATEMENTTOTAL >0)
                                        and (SOLDTOCOUNTRYNAME is null or SOLDTOCOUNTRYNAME='US')
                                        and (TRIM(NOMAILNOPRINT) is null and NOMAILNOPRINT!='99');
    update STATEMENT_DATA H
                        set
                          ( H.REMTO_ZIP,
                            H.REMTO_CITY,
                            H.REMTO_STATE,
                            H.REMTO_MAILNAME,
                            H.REMTO_ADDR1,
                            H.REMTO_ADDR2,
                            H.REMTO_ADDR3,
                            H.SOLDTO_CITY,
                            H.SOLDTO_STATE,
                            H.SOLDTO_ZIP,
                            H.SOLDTO_ADDR1,
                            H.SOLDTO_ADDR2,
                            H.SOLDTO_ADDR3,
                            H.PHONE_PREFIX,
                            H.PHONE_NUMBER,
                            H.COMPANY_NUMBER,
                            H.STATEMENTMISC_CREDIT1,
                            H.STATEMENTMISC_CREDIT2)=
                      (SELECT J.REMTO_ZIP,
                              J.REMTO_CITY,
                              J.REMTO_STATE,
                              J.REMTO_MAILNAME,
                              J.REMTO_ADDR1,
                              J.REMTO__ADDR2,
                              J.REMTO_ADDR3,
                              J.SOLDTO_CITY,
                              J.SOLDTO_STATE,
                              J.SOLDTO_ZIP,
                              J.SOLDTO_ADDR1,
                              J.SOLDTO_ADDR2,
                              J.SOLDTO_ADDR3,
                              J.PHONE_PREFIX,
                              J.PHONE_NUMBER,
                              J.COMPANY_NUMBER,
                              J.STATEMENTMISC_CREDIT1,
                              J.STATEMENTMISC_CREDIT2
                              FROM STATEMENT_HEADER J
                                  WHERE  H.STATEMENTNUMBER= J.STATEMENTNUMBER);
    INSERT INTO EROCKS.STATEMENT_DATA_DETAILS
                      ( INVOICENUMBER,
                      STATEMENTNUMBER,
                      INVOICEDATE,
                      DOC_TYPE,
                      INVOICETOTAL,
                      PURCHASES,
                      PAYMENTS,
                      MISC_CREDIT1,
                      MISC_CREDIT2,
                      BUNUMBER,
                      BUNUMBER_RU,
                      REFERENCE_NUMBER,
                      DESCRIPTION, seq_number)
                        SELECT  H.INVOICENUMBER,
                                H.STATEMENTNUMBER,
                                H.INVOICEDATE,
                                H.DOC_TYPE,
                                H.INVOICETOTAL,
                                H.PURCHASES,
                                H.PAYMENTS,
                                H.MISC_CREDIT1,
                                H.MISC_CREDIT2,
                                H.BUNUMBER,
                                H.BUNUMBER_RU,
                                H.REFERENCE_NUMBER,
                                H.DESCRIPTION,
                                EROCKS.SEQ_STATEMENT.NEXTVAL
                        FROM STATEMENT  H
                            WHERE H.STATEMENTNUMBER IN
                                (SELECT STATEMENTNUMBER
                                    FROM STATEMENT_DOMESTIC);
    END STATEMENT_DOMESTIC_TEST;

    Hello,
    could it be, that you are not connected to a database? This is what the error message suggests.
    You cannot compile or execute a stored procedure without a database connection.
    Regards
    Marcus
    BTW: you should also consider to install a newer version of SQL Developer. The current version is 3.2.2

  • Trying to install iTunes on Windows 8.1.  Apple Application Support was not found.  Error 2.  Uniinstall iTunes and try again, does not work.  Is there a fix?

    Trying to install iTunes on Windows 8.1.  Apple Application Support was not found.  Error 2.  Uniinstall iTunes and try again, does not work.  Is there a fix?

    Let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
    Does it install properly for you?
    If instead you get an error message during the install, let us know what it says. (Precise text, please.)

  • Javascript calls via getURL not working anymore

    After upgrading to flash player 9,0,115,0 a simple call like
    getURL("javascript(alert'message')); doesn't work anymore on
    Internet Explorer (it fails without any error in policyfiles.txt,
    but it still work on Firefox). My IE version is 7.
    I can't use ExternalInterface 'cause i need to publish as
    Flash Player 7 AS2.0.
    Any comment or suggestion?

    I have a similar problem. When running a local HTML file,
    using IE7 and FP 9,0,115,0, all the getURL function calls cease to
    work.
    If I downgrade to FP8, still using IE7, everything works.
    If I downgrade to IE6, still using FP9.0.115.0, everything
    works.
    If I load the HTML via HTTP (instead of local), using IE7 and
    FP9.0.115.0, everything works.
    If I use Firefox, with FP9.0.115.0, everything works.
    So, the function calls fail only when the swf is contained on
    a
    local HTML file, using
    IE7, and
    FP9.0.115.0. The problem is, most of our customers have that
    software profile, and all of them need to load the content locally
    (its very heavy for network transmission).
    All the getURLs are like this:
    getURL("javascript:someFunction()");
    We're setting the 'allowScriptAccess' to 'always'.
    Also, if we put the OBJECT tag inside the HTML (instead on an
    external JS file), the function calls still do not work.

  • 1.call information such as call waiting,call forwarding, call holding is not working when caller the call me or im wait for my call i cant see any title by iphon , and also holding is the same.2. there is not any option for call baring.

    Hi. please solve my problem.
    .call information such as call waiting,call forwarding, call holding is not working when caller the call me or im wait for my call i cant see any title by iphon , and also holding is the same.2. there is not any option for call baring.3.playback music is not hearing by second partner during the call.4.i cant select ringing ton from saving tons.
    thank you in advance.

    Hi Ersin,
    Exception 1 would seem to be FORMATTING_ERROR, which suggests something in the design of the Smartform.  However, that doesn't fit with the form being generated from a report, but only erroring when called from a function module.  I can think of no reason why the different calling method would be a factor.
    When FORMATTING_ERROR is raise it should also set a message ID and number, are you able to determine what they are?
    Regards,
    Nick

  • Itunes 10 will not load on windows 7 64 bit. Error code 2324. Old Itunes is gone or not working. Cannot play anything although files are still there. What the ??? is error 2324. Seems like alot of people ar ehaving the same problem

    Itunes 10 will not load on windows 7 64 bit. Error code 2324. Old Itunes is gone or not working. Cannot play anything although files are still there. What the ??? is error 2324. Seems like alot of people ar ehaving the same problem

    I have had this problem with Windows 7 and iTunes updates for some time. Each time it takes hours to solve but with the over the air upgrade to IOS6 on my iPhone and iPad, I was determined to solve and remember what I did, So here it is:
    http://www.care4pcs.co.uk/2012/09/pear-shaped-apple-ios-6-for-iphone-ipad.html
    I hope this helps you and any other users.

  • Why copy option from recent call numbers is not working on ios7 [recent call logs in phone]?

    why copy option from recent call numbers is not working on ios7 [recent call logs in phone]?

    Here is a copy of my expressions and a copy of my data. The expressions match up going from left to right
    Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4"))
    sum(Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4")))
    count(Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4")))
    PUBLIC SHARED FUNCTION CalcPTD2(LookupArray AS OBJECT) AS INTEGER
         DIM i,Total AS INTEGER
         Total = 0
         FOR i = 0 to UBOUND(LookupArray)
               Total = Total + CINT(LookupArray(i))
         NEXT i
     NumberTimes  =   NumberTimes +1
    RETURN  Total
    END FUNCTION

  • Subscription to call Montenegro is not working.

    Hi I just bought another 9.99e subscription to call montenegro but when I try calling it's not working, what's happening ? Help plz
    This post was transferred from its previous location to create its own new topic here; its subject and/or title has been edited to differentiate the post from other inquiries and to reflect the post's content. A link to this post appears where the post was originally added.

    Dajana11 wrote:
    Hi I just bought another 9.99e subscription to call montenegro but when I try calling it's not working, what's happening ? Help plz
    Hello
    You purchased a Montenegro 60 mins Subscription on July 21st 2014 and used your full allocation of 60 minutes. You then purchased a further 60 minutes on July 30th 2014. As this is a monthly plan your newly purchased minutes will be added at or about midnight UTC/GMT on August 21st 2014. If you wish to add additional minutes before the monthly anniversary of your plan you have to purchase a different # of minutes (if that option exists).
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • HT4623 my voice call services is not working with cellular network...only works fine with wifi..please help?

    my voice call services is not working with cellular network...only works fine with wifi..please help?

    Since you have already done some sort of reset on your Airport Express, you might as well make sure it was a "hard reset" - follow the instructions for a hard reset found at:
    http://docs.info.apple.com/article.html?artnum=108044
    Since your Mac is running Leopard, you need to configure the Airport Express using the Airport Utility found in the Applictions->Utilities folder. You cannot install the old software that was supplied on the CD you got with the Airport Express.
    In future - if you do something bad with network settings on your Mac, do NOT try to fix it with the Airport Utility. The Airport Utility is only used to configure the Airport Express - and since the problem you have created is on the Mac and not the Airport Express, there is no need to be using the Airport Utility and especially there is no need to be resetting the Airport Express.

  • How do u get a Java method to call itself? Not working here.

    How do u get a Java method to call itself? Not working here. I am using the "this" keyword. Thanks.
    Below, I would like to call checkIt method in itself.
    Ex.
    public class ABC {
    public String checkIt(String abc){
    if....
    checkIt(abc);
    }

    Assuming you are getting stack overflows (likely if you're unfamiliar with recursive calls), you need to put some sort of check condition inside the method so it doesn't call itself endlessly (AKA "infinite recursion").

  • Call log does not work. Iphone 4

    Hi, I'm an Iphone 4 user, software currently on IOS 6.1.3, updated a couple of weeks ago.
    Everything's fine and all, though one major problem that's been persisting - the call history is not working. Whenever an oncalling call (regardless if it's someone in my contact list or not) comes, the call log does not record the number and the entire log remains blank. I've tried resetting the settings as well as 'hard reset', but neither of these two have worked.
    It's become absolutely frustrating, especially when I sold items off at Trademe and can't even track the phone numbers of anyone that gives a call saying they want to buy something (for the moment, I've currently got all pages saying that anyone interested should text my number, but as always, someone ignores that and just calls anyway). Not to mention it makes it a particularly big headache for work purposes as well and it obviously can't go on like this forever.
    It'd be really appreciated if anyone can come up with a solution that can resolve this issue.
    Thanks. 

    meehow wrote:
    ..I just upgrade my E52 from 034.001 to 052.003 and noticed that 'call log' function does not work anymore. The symptom is that nothing happens when pressing:
    - "green" call button,
    - Log option from the main menu,
    - missed calls from the desktop.
    I had to switch the phone to active Standby Mode which I never used before - this is the only way to see missed calls - the small "pop up" on the desktop.
    Any suggestions how to fix it? Is it a known issue?...
    I don't know how widespread your experience is but it is not universal as all the functions you describe work correctly for me with an E52 and 052.003 firmware.
    Even if the upgrade reverted the log settings for Log Duration to "None" the "Green" key and the Log menu icon should bring the log up but with it empty, of course.

  • My caller speaker is not working

    My caller speaker is not working, I can hear the person on the other side but they can't hear me, but when I activate the speaker phone then they can hear me please help me why is this happening is it the software or my speaker???

    Tobie19 wrote:
    My caller speaker is not working, I can hear the person on the other side but they can't hear me, but when I activate the speaker phone then they can hear me please help me why is this happening is it the software or my speaker???
    Whatever mode you are in, them hearing you has nothing to do with speakers. The microphone is working only in loudspeaker mode, therefore hardware is OK. 

  • Loudspeaker and call button is not working in my n...

    sometimes the green button i.e the call button is not working i am not able to call to the no. that are present in my contacts and also loudspeaker also wont work is there any solution plz help

    check whether new firmware is exists in your region and update your phone with the latest one. probably it will help to solve your problems.

Maybe you are looking for

  • Hyper-V creating external Vswitch disconnects from host

    Hello, I have a Windows 2012 R2 Server running HyperV. The moment i create a external Vswitch from the Virtual Switch Manager, i loose connectivity from the host machine. I then have to manually go back and delete the vswitch to have connectivity aga

  • Drill down is giving an error in Bex analyser.

    hi friends, when iam using the bex analyser, the repoort will open in a short time. And all the free characteristics are works fine. But one of the free char(company code) is not able to giving the drill down, insted it is getting the following error

  • Help with stock charts

    Is there any proper documentation / tutorial / help for creating stock charts in Calc? The built-in Help says almost nothing, and I can't find anything online.

  • Flash Header Position Displaying Incorrectly in Firefox

    Hi,  I'm hoping someone can assist me.  I designed a website in Fireworks CS4, then exported "CSS and Images" and brought it into Dreamweaver CS4.  I deleted the header "placeholder" and inserted a Flash SWF header of the same size.  Everything is di

  • Why can't I transfer any files to an external device?

    My MacBook Pro will not let me transfer any files to my external hard drive or android tablet. I can transfer from the device to the macbook but not the other way around. I used to be able to as I have transferred movies from the macbook to the hard