Cannot start a global transaction. A LocalTransactionContainment is already

Getting 'javax.transaction.NotSupportedException: java.lang.IllegalStateException: Cannot start a global transaction. A LocalTransactionContainment is already active with work.' while running the following code using XA datasource.
Setup: WAS 5.0.2, TopLink 9.0.4.4, Oracle JDBC Driver (XA), Oralce9i database flatform, using external transaction controller.
Code:
SessionManager sm = SessionManager.getManager();
Server serverSession = (Server)sm.getSession("PersistenceUnitTest");
ClientSession clientSession = serverSession.acquireClientSession();
int key = 1003;
Customer customerPK = new Customer();
customerPK.setId(new Integer(key));
ReadObjectQuery query =
new ReadObjectQuery(customerPK.getClass());
query.setSelectionKey(clientSession.keyFromObject(customerPK));
Customer customer = null;
try {
customer = (Customer)clientSession.executeQuery(query);
} catch (Exception e) {
clientSession.release();
InitialContext ctx = new InitialContext();
UserTransaction userTxn = (UserTransaction) ctx.lookup("java:comp/UserTransaction");
try {
userTxn.begin();
userTxn.rollback();
} catch (Exception e) {
e.printStackTrace();
} finally {
clientSession.release();
Trace:
2005.03.14 01:04:57.452--ServerSession(863114877)--Thread[Servlet.Engine.Transports : 0,5,main]--client acquired
2005.03.14 01:04:57.462--ServerSession(863114877)--Thread[Servlet.Engine.Transports : 0,5,main]--Connection(1731483245)--SELECT PERSON_TYPE, ID, GENDER, VERSION, LAST_NAME, FIRST_NAME, MIDDLE_INITIAL, HOME_ADDRESS_ID, PREFERRED_CUSTOMER, DISCOUNT_RATE, CONTACT_NUMBER, WORK_ADDRESS_ID FROM USER04.PERSON WHERE ((ID = ?) AND (PERSON_TYPE = ?))
     bind => [1003, C]
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R javax.transaction.NotSupportedException: java.lang.IllegalStateException: Cannot start a global transaction. A LocalTransactionContainment is already active with work.
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at com.ibm.ejs.jts.jta.UserTransactionImpl.begin(UserTransactionImpl.java:173)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at com.ford.it.persistence.impl.toplink.unittest.GlobalTransactionTest.testXA(GlobalTransactionTest.java:808)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at java.lang.reflect.Method.invoke(Native Method)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at junit.framework.TestCase.runTest(TestCase.java:154)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at junit.framework.TestCase.runBare(TestCase.java:127)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:295)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:156)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:130)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:158)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at org.apache.cactus.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:138)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:158)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:109)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:158)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
[3/14/05 13:04:57:502 EST] 17d31642 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:948)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:431)
[3/14/05 13:04:57:512 EST] 17d31642 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
[3/14/05 13:04:57:492 EST] 17d31642 LocalTransact E WLTC0018E: Cannot begin a LocalTransactionContainment. A LocalTransactionContainment is already active.
2005.03.14 01:04:57.512--ClientSession(1258968685)--Thread[Servlet.Engine.Transports : 0,5,main]--client released
If we perform a query on a thread and then subsequently start a UserTransaction, we get the above failure on the begin() method of the UserTransaction
Did anyone experience this before? Your inputs/comments are greatly appreciated.
Haiwei

James, thanks very much for your response.
I hope you did not mis-understand my previous posts in this thread.
In the example I provided, the database query was outside the UserTransaction. I could successfully perform rollback on an XA db connection after the query was executed. The rollback call cleans up the resources used in the local transaction that was created for the query; thus allows the UserTransaction to start following the query.
The local transaction was created for the query because autoCommit property was false for XA datasource connections. If I set autoCommit to true after getting the connection from XA datasource, the query will finish with the commit of the local transaction that's created for the query. The WAS code appears to work correctly.
If using non-XA datasource, the local transaction created for the query will be committed because the autoCommit is default to true for the non-XA connections.
While using TopLink, there seems to be two options for solving my problem (which was stated at the begining of this thread):
1) after the execution of a TopLink query, trap the connection.close() event and call the connection.rollback() before closing the connection to clean up the resources used in the local transaction; or
2) trap the getConnection() event, and call conneciton.setAutoCommit(true) on the connection if the query is not part of the TopLink transaction or UserTransaction.
I studied and experimented with the TopLink code. Option 1) is not do-able. After the execution of a TopLink qeury, TopLink's PreReleaseConnection event does not contain the connection that was used in the query. The connection was closed in the executeCall method of DatabaseAccessor.
The postConnect event seems to provide some possibility of implementing option 2). However, when TopLink executes a query (at least, the ReadObjectQuery that I used in my testing), after getting a connection from DatabaseLogin, the executeCall method in DatabaseAccessoor never triggers the postConnect event.
I posted a seperate note on the issue. Here is the link: postConnect event .
or use a non-JTA DataSource for the TopLink session read login.<We use WAS connection pooling. Did you mean using non-XA datasource for TopLik read?
your own TopLink ExternalConnectionPool subclass to workaround the issue<Could you elaborate the details? Or where can I find more information on the technique?
Your help would be greatly appreciated.
Haiwei
Haiwei

Similar Messages

  • Cannot connect on OWB - "started new global transaction without ending..."

    Hi, folks.
    I had to change my computer and reinstall my OWB 11.1.0.6.0 in my PC (Windows 7 64b), but thus far I couldn't connect to OWB and we don't really know what to do here.
    We've been experiencing these following mistakes:
    "PRS-00322: Internal Error: started new global transaction without ending existing global transaction. Please contact Oracle Support with the stack trace and details on how to reproduce it".
    "API5022: It's not possible to establish connection with the specified account. Check out the connection information".
    Do I have to change something on the TNSNAMES.ora or something like this?
    Thanks for your help

    have u tried this
    alter system session kill immediate""..
    else
    login as sys and check status of OWB design user...see if that is locked
    or at last
    if possible reboot the database server

  • Mix Local and Global Transaction using XA Driver for Oracle

    Hi all,
    We are trying to use a XA Driver which can support both local as well as global
    transaction. We tried using the Weblogic jDriver (XA Driver) type 2 that comes
    along with Weblogic installation but unfortunaltely it cannot mix local as well
    as global transaction.
    Please let me know in case we have any XA JDBC driver for Oracle Database which
    supports both local and global transaction together.
    Thnx,
    Kumar
    Environment:
    Weblogic 8.1 server
    Database used : Oracle8i

    Most database drivers can support local and global transactions, with some
    restrictions.
    The JDBC spec has been changed to require compliant drivers to let the
    application
    know if they try to start a global transaction while a local transaction has
    not been
    completed (or vice verse). So most of the database drivers have been
    changed to enforce
    this restriction (breaking a lot of code that is out there).
    "Kumar Raman" <[email protected]> wrote in message
    news:4033457c$[email protected]..
    >
    Hi all,
    We are trying to use a XA Driver which can support both local as well asglobal
    transaction. We tried using the Weblogic jDriver (XA Driver) type 2 thatcomes
    along with Weblogic installation but unfortunaltely it cannot mix local aswell
    as global transaction.
    Please let me know in case we have any XA JDBC driver for Oracle Databasewhich
    supports both local and global transaction together.
    Thnx,
    Kumar
    Environment:
    Weblogic 8.1 server
    Database used : Oracle8i

  • Ending a global transaction into WB

    Hi,
    today when I tried ton connect to my OWB project through the client, I get the following error:
    PRS-00322:internal error, started new global transaction without ending existing global transaction.
    I suppose there would be an "appended" global transaction into a still open procedure/session. I tried to kill all open sessions from the enterprie manager, but the error still exists.
    Does anyone has any suggestions about this, or knows how to solve it?
    Best regards,
    Alessandro

    have u tried this
    alter system session kill immediate""..
    else
    login as sys and check status of OWB design user...see if that is locked
    or at last
    if possible reboot the database server

  • Multiple LV instances, web server cannot start, port already in use

    Hi there,
    I have a general question about webserving VIs in case either
    a) multiple instances of the LV development environment are running (this is possible in windows XP for instance when "switch users" is allowed and each user launches LV)
    b) multiple compiled LV executables are run by the same user
    c) any mixture of the two above
    I have an application case when either of the three above would be a very good solution, was not for the problem encountered. Say, b): the user is given two deployed executables, and can decide to run either or both concurrently. Moreover, I want these applications to be visible on the web, so they are compiled with the webserver turned on, default settings.
    The problem I've seen (LV8.5.1, winXp for sure, but I think I've seen it as well in linux and other versions as well) is that each new instance of the LV engine tries to get hold of the tcp port (default 80), so that all instances beyond the first complain about "The Web Server cannot start. Is the Web Server port already in use?"
    While I can understand the origin of the message, and found some posts on the forums somehow related to it, I don't like it too much. 
    I could think only of two workarounds here: 1) set different web server ports for each LV instance, and instruct the remote users to direct their browsers to a webserverort link to access each VI; 2) run all the applications from the same instance of the LV dev system. The latter is not so convenient for me, due to conflicts in global VIs between all instances of the applications [compiling executables IS a way to privatize memory spaces in this case, AND global variables are imho well justified for the fairly complex application I have in mind here].
    Is there a third, more elegant solution perhaps, which I'm missing?
    Thanks, Enrico

    NathanK wrote:
    What is it in particular that you dislike about the message?
    How would you like LabVIEW to behave in this case?
    No problem with the message, but I'd just be very happy if a single
    web server would serve all my instances of the executables on the same
    port. I.e., if 2.exe is open and wants to start another server on the
    same port used already by 1.exe, then 2.exe becomes served by the
    server already opened. Am I demanding too much? Am I missing some
    necessary logic?
    At the moment, anyway, I'm stuck with the vi being served correctly,
    but not the compiled application, and I can't figure out why. It's
    LV8.5.1, and yes, I have in the .ini
    WebServer.DirectoryIndex="index.htm"
    WebServer.LogPath=C:\Program Files\National Instruments\LabVIEW 8.5\www.log
    WebServer.MimeTypes="htm;text/html;gif;image/gif;j​pg;image/jpeg;png;image/png;txt;text/plain;html;te​xt/html;jpeg;image/jpeg;css;text/css;llb;applicati​on/x-labview-llb;vi;application/x-labview-vi;doc;a​pplication/msword;dot;application/msword;bin;appli​cation/octet-stream;exe;application/octet-stream;r​tf;application/rtf;pdf;application/pdf;ai;applicat​ion/postscript;eps;application/postscript;ps;appli​cation/postscript;csh;application/x-csh;gtar;appli​cation/x-gtar;gz;application/x-gz;sh;application/x​-sh;tar;application/x-tar;zip;application/zip;hqx;​application/mac-binhex40;ua;audio/basic;wav;audio/​wav;tif;image/tiff;tiff;image/tiff;xbm;image/x-xbi​tmap;rtx;text/richtext;qt;video/quicktime;mov;vide​o/quicktime;avi;video/x-msvideo;movie;video/x-sgi-​movie;aif;audio/aif;aifc;audio/aif;aiff;audio/aif;​aim;application/x-aim;dif;video/x-dv;div;video/x-d​v;js;application/x-javascript;pntg;image/x-macpain​t;xlb;application/vnd.ms-excel;xls;application/vnd​.ms-excel;ppa;application/vnd.ms-powerpoint;ppt;ap​plication/vnd.ms-powerpoint;pps;application/vnd.ms​-powerpoint;pot;application/vnd.ms-powerpoint;pwz;​application/vnd.ms-powerpoint;mid;audio/mid;midi;a​udio/mid;enc;video/mpeg;m1v;video/mpeg;mp2;video/m​peg;mpa;video/mpeg;mpe;video/mpeg;mpeg;video/mpeg;​mpg;video/mpeg;psd;image/x-photoshop;bmp;image/bmp​;pic;image/pic;ra;audio/vnd.rn-realaudio;rf;image/​vnd.rf-realflash;rm;application/vnd.rn-realmedia;r​p;image/vnd.rn-realpix;ram;audio/x-pn-realaudio;rm​m;audio/x-pn-realaudio;rnx;application/vnd.rn-real​player;rt;text/vnd.rn-realtext;rv;video/vnd.rn-rea​lvideo;smi;application/smil;ssm;application/stream​ingmedia;sithqx;application/mac-binhex40;sit;appli​cation/x-stuffit"
    WebServer.Port=80  [### or 8000]
    WebServer.Enabled=True
    WebServer.RootPath=C:\Program Files\National Instruments\LabVIEW 8.5\www
    WebServer.TcpAccess="c+*"
    WebServer.ViAccess="+*"
     [hints welcome here]. That is, I'm at the moment unable to use even my workaround 1 above.
    Enrico

  • MSS:  Cannot Start Transaction HRWPC_FC_EXEC

    We have three custom ABAP reports setup for the 'Reports' tab in MSS.  Two of them work fine, but one of them is giving this error message:
    Cannot Start Transaction
    The Internet Transaction Server could not start the transaction "HRWPC_FC_EXEC" because of the following error: .
    It doesn't give an error message, so I have no idea what the error is.  Any ideas?

    I would check/try the following:
    1)Does the transaction exist and does it need to be published to the ITS?
    2)Does the user have the appropriate security profile to run the report - try with SAP_ALL and SAP_NEW as a test?
    3)Run the transaction directly in R/3 SAPGui with your test user ID, what happens?
    4)Is your test user appropriately integrated into your org chart (does the MSS report rely on this?)
    Just some ideas.... hope something gives you a clue

  • ESS - Cannot Start Transaction

    Hi,
    After maintaining infotyp 0105 and subtyp 0001, I'm getting and error message as folows (after clicking on almost all the functions, e.g. Personal Data):
    Cannot Start Transaction
    The Internet Transaction Server could not start the Transaction "pzxx" because of the following error. You are not authorized to use Transaction PZXX.
    Appreciate if someone could help me on this. Thank you.
    Best Regards,
    Hapizorr Rozi Alias

    Dear Srinivasa,
    I found your blog "What is UDDI?". I liked!
    I have a question about UDDI.
    I had configured the UDDI on server host XXXXX and can access it though
    the links (the UDDI works):
    - http://<host>:50100/uddiclient
    - http://<host>:50100/uddi/api/inquiry
    - http://<host>:50100/uddi/api/publish
    But when I try to enter virtual URL http://uddi.<domain>.net/publish I
    receive the message error "HTTP 404 - File not found Internet
    Information Services"
    Could you help me?
    Thanks a lot!
    Luciana
    Brazil

  • Cannot start transaction SMEN

    Hi ,
       When we try to execute any transaction after loggging in to our system we are getting a message "    Cannot start transaction SMEN".Any idea to what may be wrong .Please help.
    Max

    This is normal. SMEN cannot be started by giving transaction code in CMD field. When you execute it you will a pop up with message. There is question mark icon in the pop up which explains the same. Only if you check it !!
    Regards.
    Ruchit.

  • SRM portal: Cannot start transaction for shopping cart -wizard

    Hello All,
    User is not able to access the Shopping cart-wizard in EB portal, user has updated the internet  explorer to internet explorer V7 still he is not able to access.
    When user clicks on Shopping cart-wizard he gets the following error "Cannot Start Transaction**
    *The internet transaction server could not start the transaction "BBPSC02"* .
    Please let me know how can I resolve this issue.
    Have checked the attributes for this user it is maintained to access portal, all roles are properly assigned.
    Thanks.

    Hello,
    Service BBPSC02 is only not started from portal or you cannot start it as well when using the ITS link?
    Are you able to test the service via transaction SICF?
    Regards,
    Ricardo

  • Reg:"System is not a central XI;cannot start program" Err

    Hi..
    I am trying to execute the transaction IDX5 on XI system and am getting the err "System is not a central XI;cannot start program".Can anyone please tell me the reason for this?

    Are you sure that you are executing TCODE on XI Server.
    Normally this message is displayed for R3 Servers
    Check SXMB_ADM --> Check the Integration Engine Configuration
    In the Global Configuration Data :
    Role of Business System should be Integration server
    Corresponding IS  should point to Pipeline URL
    regards
    Gangaprasad
    Edited by: gangaprasad chintala on Nov 18, 2008 3:26 PM

  • Advise on using DBMS_XA with multiple branches under one global transaction

    Dear all
    I need some advise on using DBMS_XA from PL/SQL with tightly coupled multiple branches under one global transaction. Basically, I've successfully written some PL/SQL code that in 3 different sessions attaches to 3 different branches of one global transaction and before ending each branch they can see each others uncommitted data. So far so good.
    However, I'm not sure I completely understand how each branch must call xa_end, xa_prepare and xa_commit correctly using two phase commit and my calls result in errors like:
    ORA-24767: transaction branch prepare returns read-only (XA error code 3 = Transaction was read-only and has been committed)
    ORA-24756: transaction does not exist (XA error code -4 = XID is not valid)
    ORA-02051: another session or branch in same transaction failed or finalized
    This is the structure of my programs (3 SQL*Plus sessions):
    main: Uses xid 123|0 (branch 0 of global transaction 123). This should be the coordinator that commits using two phase commit across the 3 branches
    m1.xa_start tmnoflags
    m2.DML
    m3.Wait for thread A + B to manually be started and run xa_end
    m4.xa_end tmsuccess
    m5.xa_prepare
    m6.xa_commit false
    thread A: Uses xid 123|A (branch A of global transaction 123)
    a1.xa_start tmnoflags
    a2.DML -- thread A can see main and thread B's data
    a3.xa_end tmsuccess
    a4.xa_prepare -- required?
    a5.Should we also call xa_commit false?
    thread B: Uses xid 123|B (branch B of global transaction 123)
    b1.xa_start tmnoflags
    b2.DML -- thread B can see main and thread A's data
    b3.xa_end tmsuccess
    b4.xa_prepare -- required?
    b5.Should we also call xa_commit false?
    The failing steps are:
    m5
    m6
    a4
    a5
    b4
    b5
    Before starting calling xa_end I see 3 rows in V$GLOBAL_TRANSACTION, eg (hex 7B = decimal 123):
    FORMATID GLOBALID BRANCHID BRANCHES REFCOUNT PREPARECOUNT STATE FLAGS COUPLING
    203348753 0000007B 00000000000000000000000000000000 3 3 0 ACTIVE 0 TIGHTLY COUPLED
    203348753 0000007B 0000000000000000000000000000000A 3 3 0 ACTIVE 0 TIGHTLY COUPLED
    203348753 0000007B 0000000000000000000000000000000B 3 3 0 ACTIVE 0 TIGHTLY COUPLED
    Thanks a lot in advance.
    Cheers
    Finn

    OK, I've figured it out. This is poorly documented as it's not well explained how to handle the various return codes. Turns out that all but the last xa_prepare calls return dbms_xa.xa_rdonly (tightly coupled branches are combined -- "read only" optimization), the last one returns dbms_xa.xa_ok and this is when you should call xa_commit.
    Now my next problem is that DBMS_XA doesn't work from within jobs (DBMS_JOB and DBMS_SCHEDULER), which makes it very difficult to use DBMS_XA. My purpose of using DBMS_XA is to coordinate work across multiple sessions in one transaction but if I can't easily create the multiple sessions, I'm stuck.
    When called from a job, xa_start throws:
    ORA-24789: start not allowed in recursive call
    on Oracle 11.2. In Oracle 11.1 it works, but xa_end fails with
    ORA-25352: no current transaction
    so I guess in fact the xa_start call didn't really work either, even though it returned tm_ok.
    I'm now trying to find a workaround on how to use DBMS_XA from within jobs, please comment if you have any suggestions. Or if you have any suggestions on other means of establishing the concurrent sessions (I wouldn't like to resort to external programs that need username/password to connect as password management would be a security issue).
    Thanks in advance.
    Cheers
    Finn

  • Urgent: cannot start the shadow instance at phase STARTSAP_TRANS

    We are upgrading to NW2004s (ABAP only) from 640.
    <u><b>How to re-start the shadow instance?</b></u>
    At this point, <b>anyway we cannot start the shadow instance.</b>
    At SAPMMC, the disp+work
    1) first show "running but the dialog queue standstill"
    2) then show" running but not connected to the message server"
    3) then the disp+work dies.
    Above happens in 1 minute after re-start.
    <b>The dev_ms reads:
    trc file: "dev_ms", trc level: 1, release: "700"
    [Thr 4740] Mon Apr 02 15:07:53 2007
    [Thr 4740] MsSSetTrcLog: trc logging active, max size = 20971520 bytes
    systemid   560 (PC with Windows NT)
    relno      7000
    patchlevel 0
    patchno    94
    intno      20050900
    make:      multithreaded, ASCII, optimized
    pid        2932
    [Thr 4740] ***LOG Q01=> MsSInit, MSStart (Msg Server 1 2932) [msxxserv.c   1824]
    [Thr 4740] load acl file = D:\usr\sap\put\XYZ\SYS\global\ms_acl_info.DAT
    [Thr 4740] MsGetOwnIpAddr: my host addresses are :
    [Thr 4740]   1 : [10.10.10.68] houston (HOSTNAME)
    [Thr 4740]   2 : [127.0.0.1] houston.monet.local (LOCALHOST)
    [Thr 4740] Mon Apr 02 15:07:54 2007
    [Thr 4740] MsHttpInit: full qualified hostname = houston.monet.local
    [Thr 4740] HTTP logging is switch off
    [Thr 4740] MsHttpOwnDomain: own domain[1] = monet.local
    [Thr 4740] ms/icf_info_server : deleted
    [Thr 4740] *** I listen to port sapmsSHDXYZ (3660) ***
    [Thr 4740] CUSTOMER KEY: >B0790292062<
    [Thr 4740] Mon Apr 02 15:08:54 2007
    [Thr 4740] *** ERROR => MsSClientHandle: no server provides service ENQ  (4), requested from houston_XYZ_60 [msxxserv.c   4679]
    [Thr 4740] Mon Apr 02 15:19:35 2007
    [Thr 4740] *** ERROR => MsSCheckConnections: no response from client C0 (10.10.10.68) after 300 secs received [msxxserv.c   3165]
    [Thr 4740] *** ERROR => MsSCheckConnections: disconnect now [10.10.10.68] [msxxserv.c   3169]</b>
    The dev_disp reads:
    trc file: "dev_disp", trc level: 1, release: "700"
    sysno      60
    sid        XYZ
    systemid   560 (PC with Windows NT)
    relno      7000
    patchlevel 0
    patchno    95
    intno      20050900
    make:      multithreaded, ASCII, optimized
    pid        4036
    Mon Apr 02 15:07:53 2007
    kernel runs with dp version 224(ext=109) (@(#) DPLIB-INT-VERSION-224)
    length of sys_adm_ext is 360 bytes
    SWITCH TRC-HIDE on ***
    ***LOG Q00=> DpSapEnvInit, DPStart (60 4036) [dpxxdisp.c   1239]
         shared lib "dw_xml.dll" version 95 successfully loaded
         shared lib "dw_xtc.dll" version 95 successfully loaded
         shared lib "dw_stl.dll" version 95 successfully loaded
         shared lib "dw_gui.dll" version 95 successfully loaded
         shared lib "dw_mdm.dll" version 95 successfully loaded
    rdisp/softcancel_sequence :  -> 0,5,-1
    Mon Apr 02 15:07:58 2007
    WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds
    MtxInit: 30000 0 0
    DpSysAdmExtInit: ABAP is active
    DpSysAdmExtInit: VMC (JAVA VM in WP) is not active
    DpIPCInit2: start server >houston_XYZ_60                         <
    DpShMCreate: sizeof(wp_adm)          19888     (904)
    DpShMCreate: sizeof(tm_adm)          3605136     (17936)
    DpShMCreate: sizeof(wp_ca_adm)          18000     (60)
    DpShMCreate: sizeof(appc_ca_adm)     6000     (60)
    DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528040/528048
    DpShMCreate: sizeof(comm_adm)          528048     (1048)
    DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    DpShMCreate: sizeof(slock_adm)          0     (96)
    DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    DpShMCreate: sizeof(file_adm)          0     (72)
    DpShMCreate: sizeof(vmc_adm)          0     (1280)
    DpShMCreate: sizeof(wall_adm)          (22440/34344/56/100)
    DpShMCreate: sizeof(gw_adm)     48
    DpShMCreate: SHM_DP_ADM_KEY          (addr: 05BF0040, size: 4240712)
    DpShMCreate: allocated sys_adm at 05BF0040
    DpShMCreate: allocated wp_adm at 05BF1A28
    DpShMCreate: allocated tm_adm_list at 05BF67D8
    DpShMCreate: allocated tm_adm at 05BF6808
    DpShMCreate: allocated wp_ca_adm at 05F66A98
    DpShMCreate: allocated appc_ca_adm at 05F6B0E8
    DpShMCreate: allocated comm_adm at 05F6C858
    DpShMCreate: system runs without slock table
    DpShMCreate: system runs without file table
    DpShMCreate: allocated vmc_adm_list at 05FED708
    DpShMCreate: allocated gw_adm at 05FED748
    DpShMCreate: system runs without vmc_adm
    DpShMCreate: allocated ca_info at 05FED778
    DpShMCreate: allocated wall_adm at 05FED780
    MBUF state OFF
    DpCommInitTable: init table for 500 entries
    EmInit: MmSetImplementation( 2 ).
    MM global diagnostic options set: 0
    <ES> client 0 initializing ....
    <ES> InitFreeList
    <ES> block size is 1024 kByte.
    Using implementation view
    <EsNT> Memory Reset disabled as NT default
    <ES> 2039 blocks reserved for free list.
    ES initialized.
    WARNING => System running without ICM - check rdisp/start_icman [dpxxdisp.c   12314]
    rdisp/http_min_wait_dia_wp : 1 -> 1
    ***LOG Q0K=> DpMsAttach, mscon ( houston) [dpxxdisp.c   11663]
    DpStartStopMsg: send start message (myname is >houston_XYZ_60                         <)
    DpStartStopMsg: start msg sent
    CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
    CCMS: Initalizing shared memory of size 40000000 for monitoring segment.
    CCMS: start to initalize 3.X shared alert area (first segment).
    DpMsgAdmin: Set release to 7000, patchlevel 0
    MBUF state PREPARED
    MBUF component UP
    DpMBufHwIdSet: set Hardware-ID
    ***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c   1050]
    DpMsgAdmin: Set patchno for this platform to 95
    Release check o.K.
    Mon Apr 02 15:08:38 2007
    ERROR => W0 (pid 1084) died [dpxxdisp.c   14318]
    ERROR => W1 (pid 4200) died [dpxxdisp.c   14318]
    ERROR => W2 (pid 3316) died [dpxxdisp.c   14318]
    ERROR => W3 (pid 5276) died [dpxxdisp.c   14318]
    ERROR => W4 (pid 5348) died [dpxxdisp.c   14318]
    ERROR => W5 (pid 3436) died [dpxxdisp.c   14318]
    ERROR => W6 (pid 3920) died [dpxxdisp.c   14318]
    ERROR => W7 (pid 4868) died [dpxxdisp.c   14318]
    ERROR => W8 (pid 5380) died [dpxxdisp.c   14318]
    ERROR => W9 (pid 4584) died [dpxxdisp.c   14318]
    my types changed after wp death/restart 0x1f --> 0x1e
    ERROR => W10 (pid 4188) died [dpxxdisp.c   14318]
    my types changed after wp death/restart 0x1e --> 0x1c
    ERROR => W11 (pid 2700) died [dpxxdisp.c   14318]
    my types changed after wp death/restart 0x1c --> 0x18
    ERROR => W12 (pid 4604) died [dpxxdisp.c   14318]
    ERROR => W13 (pid 4916) died [dpxxdisp.c   14318]
    ERROR => W14 (pid 4440) died [dpxxdisp.c   14318]
    ERROR => W15 (pid 4544) died [dpxxdisp.c   14318]
    ERROR => W16 (pid 1888) died [dpxxdisp.c   14318]
    ERROR => W17 (pid 548) died [dpxxdisp.c   14318]
    ERROR => W18 (pid 2800) died [dpxxdisp.c   14318]
    ERROR => W19 (pid 2080) died [dpxxdisp.c   14318]
    ERROR => W20 (pid 2888) died [dpxxdisp.c   14318]
    my types changed after wp death/restart 0x18 --> 0x10
    ERROR => W21 (pid 5572) died [dpxxdisp.c   14318]
    my types changed after wp death/restart 0x10 --> 0x0
    DP_FATAL_ERROR => DpWPCheck: no more work processes
    DISPATCHER EMERGENCY SHUTDOWN ***
    increase tracelevel of WPs
    NiWait: sleep (10000ms) ...
    NiISelect: timeout 10000ms
    NiISelect: maximum fd=1609
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Mon Apr 02 15:08:48 2007
    NiISelect: TIMEOUT occured (10000ms)
    dump system status
    Workprocess Table (long)               Mon Apr 02 20:08:48 2007
    ========================
    No Ty. Pid      Status  Cause Start Err Sem CPU    Time  Program  Cl  User         Action                    Table
    0 DIA     1084 Ended         no      1   0             0                                                             
    1 DIA     4200 Ended         no      1   0             0                                                             
    2 DIA     3316 Ended         no      1   0             0                                                             
    3 DIA     5276 Ended         no      1   0             0                                                             
    4 DIA     5348 Ended         no      1   0             0                                                             
    5 DIA     3436 Ended         no      1   0             0                                                             
    6 DIA     3920 Ended         no      1   0             0                                                             
    7 DIA     4868 Ended         no      1   0             0                                                             
    8 DIA     5380 Ended         no      1   0             0                                                             
    9 DIA     4584 Ended         no      1   0             0                                                             
    10 UPD     4188 Ended         no      1   0             0                                                             
    11 ENQ     2700 Ended         no      1   0             0                                                             
    12 BTC     4604 Ended         no      1   0             0                                                             
    13 BTC     4916 Ended         no      1   0             0                                                             
    14 BTC     4440 Ended         no      1   0             0                                                             
    15 BTC     4544 Ended         no      1   0             0                                                             
    16 BTC     1888 Ended         no      1   0             0                                                             
    17 BTC      548 Ended         no      1   0             0                                                             
    18 BTC     2800 Ended         no      1   0             0                                                             
    19 BTC     2080 Ended         no      1   0             0                                                             
    20 BTC     2888 Ended         no      1   0             0                                                             
    21 SPO     5572 Ended         no      1   0             0                                                             
    Dispatcher Queue Statistics               Mon Apr 02 20:08:48 2007
    ===========================
    --------++++--
    +
    Typ
    now
    high
    max
    writes
    reads
    --------++++--
    +
    NOWP
    0
    1
    2000
    1
    1
    --------++++--
    +
    DIA
    3
    3
    2000
    3
    0
    --------++++--
    +
    UPD
    0
    0
    2000
    0
    0
    --------++++--
    +
    ENQ
    0
    0
    2000
    0
    0
    --------++++--
    +
    BTC
    0
    0
    2000
    0
    0
    --------++++--
    +
    SPO
    0
    0
    2000
    0
    0
    --------++++--
    +
    UP2
    0
    0
    2000
    0
    0
    --------++++--
    +
    max_rq_id          7
    wake_evt_udp_now     0
    wake events           total     3,  udp     3 (100%),  shm     0 (  0%)
    since last update     total     3,  udp     3 (100%),  shm     0 (  0%)
    Dump of tm_adm structure:               Mon Apr 02 20:08:48 2007
    =========================
    Term    uid  man user    term   lastop  mod wp  ta   a/i (modes)
    Workprocess Comm. Area Blocks               Mon Apr 02 20:08:48 2007
    =============================
    Slots: 300, Used: 1, Max: 0
    --------++--
    +
    id
    owner
    pid
    eyecatcher
    --------++--
    +
    0
    DISPATCHER
    -1
    WPCAAD000
    NiWait: sleep (5000ms) ...
    NiISelect: timeout 5000ms
    NiISelect: maximum fd=1609
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Mon Apr 02 15:08:53 2007
    NiISelect: TIMEOUT occured (5000ms)
    DpHalt: shutdown server >houston_XYZ_60                         < (normal)
    DpJ2eeDisableRestart
    DpModState: buffer in state MBUF_PREPARED
    NiBufSend starting
    NiIWrite: hdl 2 sent data (wrt=110,pac=1,MESG_IO)
    MsINiWrite: sent 110 bytes
    MsIModState: change state to SHUTDOWN
    DpModState: change server state from STARTING to SHUTDOWN
    Switch off Shared memory profiling
    ShmProtect( 57, 3 )
    ShmProtect(SHM_PROFILE, SHM_PROT_RW
    ShmProtect( 57, 1 )
    ShmProtect(SHM_PROFILE, SHM_PROT_RD
    DpWakeUpWps: wake up all wp's
    Stop work processes
    Stop gateway
    killing process (2072) (SOFT_KILL)
    Terminate gui connections
    wait for end of work processes
    wait for end of gateway
    [DpProcDied] Process lives  (PID:2072  HANDLE:1580)
    waiting for termination of gateway ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1609
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Mon Apr 02 15:08:54 2007
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process died  (PID:2072  HANDLE:1580)
    DpStartStopMsg: send stop message (myname is >houston_XYZ_60                         <)
    NiIMyHostName: hostname = 'houston'
    AdGetSelfIdentRecord: >                                                                           <
    XYZvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
    XYZvtRecToExt: opcode 4 (AD_STARTSTOP), ser 0, ex 0, errno 0
    DpConvertRequest: net size = 189 bytes
    NiBufSend starting
    NiIWrite: hdl 2 sent data (wrt=562,pac=1,MESG_IO)
    MsINiWrite: sent 562 bytes
    send msg (len 110+452) to name                    -, type 4, key -
    DpStartStopMsg: stop msg sent
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 recv would block (errno=EAGAIN)
    NiIRead: read for hdl 2 timed out (0ms)
    DpHalt: no more messages from the message server
    DpHalt: send keepalive to synchronize with the message server
    NiBufSend starting
    NiIWrite: hdl 2 sent data (wrt=114,pac=1,MESG_IO)
    MsINiWrite: sent 114 bytes
    send msg (len 110+4) to name           MSG_SERVER, type 0, key -
    MsSndName: MS_NOOP ok
    Send 4 bytes to MSG_SERVER
    NiIRead: hdl 2 recv would block (errno=EAGAIN)
    NiIPeek: peek successful for hdl 2 (r)
    NiIRead: hdl 2 received data (rcd=114,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=114
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 114 bytes
    MSG received, len 110+4, flag 3, from MSG_SERVER          , typ 0, key -
    Received 4 bytes from MSG_SERVER                             
    Received opcode MS_NOOP from msg_server, reply MSOP_OK
    MsOpReceive: ok
    MsSendKeepalive : keepalive sent to message server
    NiIRead: hdl 2 recv would block (errno=EAGAIN)
    Mon Apr 02 15:08:55 2007
    NiIPeek: peek for hdl 2 timed out (r; 1000ms)
    NiIRead: read for hdl 2 timed out (1000ms)
    DpHalt: no more messages from the message server
    DpHalt: sync with message server o.k.
    detach from message server
    ***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c   11976]
    NiBufSend starting
    NiIWrite: hdl 2 sent data (wrt=110,pac=1,MESG_IO)
    MsINiWrite: sent 110 bytes
    MsIDetach: send logout to msg_server
    MsIDetach: call exit function
    DpMsShutdownHook called
    NiBufISelUpdate: new MODE -- (r-) for hdl 2 in set0
    SiSelNSet: set events of sock 1488 to: ---
    NiBufISelRemove: remove hdl 2 from set0
    SiSelNRemove: removed sock 1488 (pos=2)
    SiSelNRemove: removed sock 1488
    NiSelIRemove: removed hdl 2
    MBUF state OFF
    AdGetSelfIdentRecord: >                                                                           <
    XYZvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
    XYZvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
    XYZvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
    blks_in_queue/wp_ca_blk_no/wp_max_no = 1/300/22
    LOCK WP ca_blk 1
    make DISP owner of wp_ca_blk 1
    DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 9)
    MBUF component DOWN
    NiICloseHandle: shutdown and close hdl 2 / sock 1488
    NiBufIClose: clear extension for hdl 2
    MsIDetach: detach MS-system
    cleanup EM
    EsCleanup ....
    EmCleanup() -> 0
    Es2Cleanup: Cleanup ES2
    ***LOG Q05=> DpHalt, DPStop ( 4036) [dpxxdisp.c   10333]
    Good Bye .....
    <b>The dev_w21 reads:
    trc file: "dev_w21", trc level: 1, release: "700"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, MJ

    B Mon Apr 02 15:08:01 2007
    B  create_con (con_name=R/3)
    B  Loading DB library 'D:\usr\sap\put\exe\dbmssslib.dll' ...
    B  Library 'D:\usr\sap\put\exe\dbmssslib.dll' loaded
    B  Version of 'D:\usr\sap\put\exe\dbmssslib.dll' is "700.08", patchlevel (0.87)
    B  New connection 0 created
    M sysno      60
    M sid        XYZ
    M systemid   560 (PC with Windows NT)
    M relno      7000
    M patchlevel 0
    M patchno    95
    M intno      20050900
    M make:      multithreaded, ASCII, optimized
    M pid        5572
    M
    M  kernel runs with dp version 224(ext=109) (@(#) DPLIB-INT-VERSION-224)
    M  length of sys_adm_ext is 360 bytes
    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc21 5572) [dpxxdisp.c   1301]

    I Mon Apr 02 15:08:02 2007
    I  MtxInit: 30000 0 0
    M  DpSysAdmExtCreate: ABAP is active
    M  DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
    M  DpShMCreate: sizeof(wp_adm)          19888     (904)
    M  DpShMCreate: sizeof(tm_adm)          3605136     (17936)
    M  DpShMCreate: sizeof(wp_ca_adm)          18000     (60)
    M  DpShMCreate: sizeof(appc_ca_adm)     6000     (60)
    M  DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528040/528048
    M  DpShMCreate: sizeof(comm_adm)          528048     (1048)
    M  DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    M  DpShMCreate: sizeof(slock_adm)          0     (96)
    M  DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    M  DpShMCreate: sizeof(file_adm)          0     (72)
    M  DpShMCreate: sizeof(vmc_adm)          0     (1280)
    M  DpShMCreate: sizeof(wall_adm)          (22440/34344/56/100)
    M  DpShMCreate: sizeof(gw_adm)     48
    M  DpShMCreate: SHM_DP_ADM_KEY          (addr: 063F0040, size: 4240712)
    M  DpShMCreate: allocated sys_adm at 063F0040
    M  DpShMCreate: allocated wp_adm at 063F1A28
    M  DpShMCreate: allocated tm_adm_list at 063F67D8
    M  DpShMCreate: allocated tm_adm at 063F6808
    M  DpShMCreate: allocated wp_ca_adm at 06766A98
    M  DpShMCreate: allocated appc_ca_adm at 0676B0E8
    M  DpShMCreate: allocated comm_adm at 0676C858
    M  DpShMCreate: system runs without slock table
    M  DpShMCreate: system runs without file table
    M  DpShMCreate: allocated vmc_adm_list at 067ED708
    M  DpShMCreate: allocated gw_adm at 067ED748
    M  DpShMCreate: system runs without vmc_adm
    M  DpShMCreate: allocated ca_info at 067ED778
    M  DpShMCreate: allocated wall_adm at 067ED780
    X  EmInit: MmSetImplementation( 2 ).
    X  MM global diagnostic options set: 0
    X  <ES> client 21 initializing ....
    X  Using implementation view
    M  <EsNT> Memory Reset disabled as NT default
    X  ES initialized.
    M  ThInit: running on host houston

    M Mon Apr 02 15:08:03 2007
    M  calling db_connect ...
    C  Thread ID:4020
    C  Thank You for using the SLOLEDB-interface
    C  Using dynamic link library 'D:\usr\sap\put\exe\dbmssslib.dll'
    C  dbmssslib.dll patch info
    C    patchlevel   0
    C    patchno      87
    C    patchcomment MSSQL: UTAB/ATAB/Dynp-access via clientside cursor (1002914)
    C  np:(local) connection used on houston
    C  CopyLocalParameters: dbuser is 'XYZ_shd'
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.
    C  Provider Release:9.00.1399.06
    C  Using Provider SQLNCLI
    C  OpenOledbConnection: MARS property was set successfully.
    C  Can't use MARS (on sql 8.0).  Reconnecting without MARS functionality.
    C  Using Provider SQLNCLI
    C  Provider Release:9.00.1399.06
    C  Using Provider SQLNCLI
    C  CheckCodepageType: line 24329. hr: 0x80040e37 Invalid object name 'DBPROPERTIES'.
    C  sloledb.cpp [CheckCodepageType,line 24329]: Error/Message: (err 208, sev 16), Invalid object name 'DBPROPERTIES'.
    C  Procname: [CheckCodepageType -- no proc]
    C  Cache sizes: header 52 bytes, 20000 names (26720000 bytes), 500 dynamic statements (2724000 bytes), total 29444052 bytes
    C  Initializing shared procedure name cache houston_XYZXYZ_XYZ_SHD_MEM.
    C  procedure cache created/attached
    C  PSP: 0 procedure names registered
    C  Connected to db server : [houston] server_used : [np:(local)], dbname: XYZ, dbuser: XYZ
    C  pn_id:houston_XYZXYZ_XYZ_SHD
    C  Not using MARS (on sql 8.0)
    B  Connection 0 opened (DBSL handle 0)
    B  Wp  Hdl ConName          ConId     ConState     TX  PRM RCT TIM MAX OPT Date     Time   DBHost         
    B  000 000 R/3              000000000 ACTIVE       NO  YES NO  000 255 255 20070402 150803 houston       
    C  The IRow interface is supported by this OLEDB provider
    C  sloledb.cpp [ParamStmtExec,line 12988]: Error/Message: (err 8180, sev 0), Statement(s) could not be prepared.
    C  Procname: [##YshoustonXYZ00000055720000000001150803]
    C  sloledb.cpp [ParamStmtExec,line 12988]: Error/Message: (err 208, sev 16), Invalid object name 'SVERS'.
    C  Procname: [##YshoustonXYZ00000055720000000001150803]
    C  ParamStmtExec failed.  HR 80040e14 DBSL retcode 103. stmt: [SELECT TOP      1 VERSION FROM SVERS ]
    C  Conn_i:1 selection:1 singleton:1 flag_fupd:0 use_cursor:0 chksum: 112156
    C  DbSlRead - Error 103 (dbcode 208) on open
    C  DbSlRead - <##YshoustonXYZ00000055720000000001150803>
    C  DbSlRead - Error 103 (dbcode 208) on fetch
    C  DbSlRead - <##YshoustonXYZ00000055720000000001150803>
    B  ***LOG BZA=> table SVERS      does not exist on database            [dblink#3 @ 1299] [dblink  1299 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 004096) [thxxhead.c   1426]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10240]

    M  Info for wp 21

    M    stat = WP_RUN
    M    waiting_for = NO_WAITING
    M    reqtype = DP_RQ_SPOWP
    M    act_reqtype = NO_REQTYPE
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source =
    M    last_tid = 0
    M    last_mode = 0
    M    semaphore = 0
    M    act_cs_count = 0
    M    csTrack = 0
    M    csTrackRwExcl = 0
    M    csTrackRwShrd = 0
    M    control_flag = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M    vm = no VM

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server houston_XYZ_60 on host houston (wp 21)
    M  *  ERROR       ThInit: db_connect
    M  *
    M  *  TIME        Mon Apr 02 15:08:03 2007
    M  *  RELEASE     700
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        10439
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   720]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  260]
    M  Entering ThSetStatError
    M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc21 5572) [dpnttool.c   327]</b>
    On SDN there are many discussions about similar errors but none
    of them fits our situation.
    Please give your advice. Points will be given.
    Thanks!

    Target SAP system is ADC
    Enter the SAP instance number [59]:
    ? INSTANCE NUMBER   =
    Waiting for input since Mar 22, 2007 1:20:45 PM
    > INSTANCE NUMBER   =  59
    Type of database system is MSS
      >>>>>>>>>> Input Wizard <<<<<<<<<<
    Please enter up to 24 mount points for CDs.
    Enter at least the mount point for the CD titled "Upgrade Master CD/DVD"
    ? MOUNT POINT 01 =
    ? MOUNT POINT 02 =
    ? MOUNT POINT 03 =
    ? MOUNT POINT 04 =
    ? MOUNT POINT 05 =
    ? MOUNT POINT 06 =
    Please enter up to 24 mount points for CDs.
    Enter at least the mount point for the CD titled "Upgrade Master CD/DVD"
    ? MOUNT POINT 07 =
    ? MOUNT POINT 08 =
    ? MOUNT POINT 09 =
    ? MOUNT POINT 10 =
    ? MOUNT POINT 11 =
    ? MOUNT POINT 12 =
    Please enter up to 24 mount points for CDs.
    Enter at least the mount point for the CD titled "Upgrade Master CD/DVD"
    ? MOUNT POINT 13 =
    ? MOUNT POINT 14 =
    ? MOUNT POINT 15 =
    ? MOUNT POINT 16 =
    ? MOUNT POINT 17 =
    ? MOUNT POINT 18 =
    Please enter up to 24 mount points for CDs.
    Enter at least the mount point for the CD titled "Upgrade Master CD/DVD"
    ? MOUNT POINT 19 =
    ? MOUNT POINT 20 =
    ? MOUNT POINT 21 =
    ? MOUNT POINT 22 =
    ? MOUNT POINT 23 =
    ? MOUNT POINT 24 =
    Waiting for input since Mar 22, 2007 1:20:49 PM
    > MOUNT POINT 12 =  D:\D12\SAP_CRM_5.0_SR2_Installation_Export
    > MOUNT POINT 23 =  D:\D23\51032247
    > MOUNT POINT 18 =  D:\D18\NW_2004s_SR2_liveCache_7.6.00_Bd._29
    > MOUNT POINT 15 =  D:\D15\NW_2004s_SR2_Upgrade_Master
    > MOUNT POINT 09 =  D:\D9
    > MOUNT POINT 14 =  D:\D14\SAP_CRM_5.0_SR2_Installation_Export
    > MOUNT POINT 01 =  D:\D1\SAP_CRM_5.0_SR2_Upgrade_Export
    > MOUNT POINT 08 =  D:\D8\SAP_CRM_5.0_SR2_Languages
    > MOUNT POINT 20 =  D:\D20\NW_2004s_SR2_Languages
    > MOUNT POINT 03 =  C:\D3\SAP_CRM_5.0_SR2_Upgrade_Export
    > MOUNT POINT 06 =  C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86
    > MOUNT POINT 10 =  D:\D10
    > MOUNT POINT 17 =  D:\D17\51032257
    > MOUNT POINT 21 =  D:\D21\NW_2004s_SR2_Languages
    > MOUNT POINT 19 =  D:\D19\51032257
    > MOUNT POINT 05 =  C:\D5\SAP_CRM_5.0_SR2_Upgrade_Export
    > MOUNT POINT 04 =  C:\D4\SAP_CRM_5.0_SR2_Upgrade_Export
    > MOUNT POINT 11 =  D:\D11\SAP_CRM_5.0_SR2_Installation_Export
    > MOUNT POINT 07 =  D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master
    > MOUNT POINT 24 =  D:\D24
    > MOUNT POINT 02 =  C:\D2\SAP_CRM_5.0_SR2_Upgrade_Export
    > MOUNT POINT 22 =  D:\D22\NW_2004s_SR2_Languages
    > MOUNT POINT 16 =  D:\D16\BS_2005_SR2_SAP_Installation_Master
    > MOUNT POINT 13 =  D:\D13\SAP_CRM_5.0_SR2_Installation_Export
    Reading data from "Upgrade Master CD/DVD"...
    Extracting archive "D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master\UMN_WINDOWS_I386\DBINDEP\CTRL7000.SAR" to "D:\usr\sap\put" ...
    Archive D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master\UMN_WINDOWS_I386\DBINDEP\CTRL7000.SAR successfully unpacked to D:\usr\sap\put.
    Extracting archive "D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master\UMN_WINDOWS_I386\DBINDEP\CTRL700X.SAR" to "D:\usr\sap\put" ...
    Archive D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master\UMN_WINDOWS_I386\DBINDEP\CTRL700X.SAR successfully unpacked to D:\usr\sap\put.
    Extracting archive "D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master\UMN_WINDOWS_I386\MSS\UPTOOLS.SAR" to "D:\usr\sap\put" ...
    Archive D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master\UMN_WINDOWS_I386\MSS\UPTOOLS.SAR successfully unpacked to D:\usr\sap\put.
    Extracting archive "D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master\UMN_WINDOWS_I386\MSS\UPTOOLS2.SAR" to "D:\usr\sap\put" ...
    Archive D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master\UMN_WINDOWS_I386\MSS\UPTOOLS2.SAR successfully unpacked to D:\usr\sap\put.
    Welcome to the SAP upgrade control program.
    Important information for this upgrade is included
    in the upgrade Note and further Notes mentioned therein.
    Refer to the upgrade manual for the number of this note.
    It is advisable to obtain this Note before starting any process
    since it also contains important information about preparing
    the upgrade.
    It is essential that you get a current version of this Note
    before starting the upgrade with SAPup. It contains a keyword
    which is necessary to start the upgrade procedure.
    Please look into the SAP Service Marketplace or, if not available,
    use the form in your packet to request the upgrade Note.
    ? continue
    ? cancel
    Waiting for input since Mar 22, 2007 1:24:47 PM
    > cancel
    Connection to SAPup  was closed
    Target SAP system is ADC
    Enter the SAP instance number [59]:
    ? INSTANCE NUMBER   =
    Waiting for input since Mar 22, 2007 1:28:34 PM
    > INSTANCE NUMBER   =  59
    Type of database system is MSS
    Reading data from "Upgrade Master CD"...
    Extracting archive "D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master\UMN_WINDOWS_I386\DBINDEP\CTRL7000.SAR" to "D:\usr\sap\put" ...
    Archive D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master\UMN_WINDOWS_I386\DBINDEP\CTRL7000.SAR successfully unpacked to D:\usr\sap\put.
    Extracting archive "D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master\UMN_WINDOWS_I386\DBINDEP\CTRL700X.SAR" to "D:\usr\sap\put" ...
    Archive D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master\UMN_WINDOWS_I386\DBINDEP\CTRL700X.SAR successfully unpacked to D:\usr\sap\put.
    Extracting archive "D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master\UMN_WINDOWS_I386\MSS\UPTOOLS.SAR" to "D:\usr\sap\put" ...
    Archive D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master\UMN_WINDOWS_I386\MSS\UPTOOLS.SAR successfully unpacked to D:\usr\sap\put.
    Extracting archive "D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master\UMN_WINDOWS_I386\MSS\UPTOOLS2.SAR" to "D:\usr\sap\put" ...
    Archive D:\D7\SAP_CRM_5.0_SR2_Upgrade_Master\UMN_WINDOWS_I386\MSS\UPTOOLS2.SAR successfully unpacked to D:\usr\sap\put.
    Welcome to the SAP upgrade control program.
    Important information for this upgrade is included
    in the upgrade Note and further Notes mentioned therein.
    Refer to the upgrade manual for the number of this note.
    It is advisable to obtain this Note before starting any process
    since it also contains important information about preparing
    the upgrade.
    It is essential that you get a current version of this Note
    before starting the upgrade with SAPup. It contains a keyword
    which is necessary to start the upgrade procedure.
    Please look into the SAP Service Marketplace or, if not available,
    use the form in your packet to request the upgrade Note.
    ? continue
    ? cancel
    Waiting for input since Mar 22, 2007 1:28:43 PM
    > continue
    SAP  UPGRADE  CONTROL  PROGRAM
    ================================
    This is SAPup version 7.00/2 upgrade to release
            500 of BBPCRM
            2005_1_700 of PI_BASIS
            700 of SAP_ABA
            700 of SAP_AP
            700 of SAP_BASIS
            700 of SAP_BW
            2005_1_700 of ST-PI
    Target SAP system is ADC, MSSQL database
    SAPup started in PREPARE mode.
    ? continue
    ? cancel
    Waiting for input since Mar 22, 2007 1:28:50 PM
    > continue
    The following options are available:
    select: Display screen for selecting PREPARE modules
    status: Display the statuses of the PREPARE modules
    exit:   Exit PREPARE
    help:   Getting help about PREPARE
    ? select
    ? status
    ? exit
    Waiting for input since Mar 22, 2007 1:28:54 PM
    > select
    Select the PREPARE modules
    ?                             name     status  mandatory
    ?                  Parameter input    initial        yes
    ?                   Initialization    initial        yes
    ?                           Import    initial        yes
    ?                        Extension    initial        yes
    ?                      Integration    initial        yes
    ?                     Installation    initial        yes
    ?                   General checks    initial        yes
    ?                Activation checks    initial        yes
    ? Necessary checks for conversions    initial        yes
    ?  Optional checks for conversions    initial         no
    ?             Modification support    initial         no
    ?                   Pre-processing    initial         no
    Waiting for input since Mar 22, 2007 1:28:56 PM
    >                  Parameter input    initial        yes
    You selected the following PREPARE modules:
    Parameter input
    execute: Execute the selected PREPARE modules.
             Make sure that you have carried out the actions described in
             D:\usr\sap\put\log\CHECKS.LOG before continuing.
             (Note: The contents of file CHECKS.LOG are saved
              in D:\usr\sap\put\log\CHECKS.SAV)
    select:  Display screen for selecting PREPARE modules.
    exit:    Exit PREPARE.
    help:    Getting help about PREPARE modules.
    ? execute
    ? select
    ? exit
    Waiting for input since Mar 22, 2007 1:28:59 PM
    > execute
    Execution of PREPARE module Parameter input begins at 20070322142901
    >> 14:29:01  PREPARE: START OF PHASE BEGIN_PRE
    Generating html phase list files 'phase_toc.html' and 'phaselist.html'
    >> 14:29:01  PREPARE: END OF PHASE   BEGIN_PRE
    >> 14:29:01  PREPARE: START OF PHASE KEY_CHK
    Correction package 'D:\usr\sap\put\FIX_CRM50SR2.UPG' found, extracting to 'D:\usr\sap\put'
    Archive successfully unpacked.
    Enter the SAPup keyword of note 961511
    ? SAPup keyword =
    Waiting for input since Mar 22, 2007 1:29:02 PM
    > SAPup keyword = 19327784
    >> 14:37:23  PREPARE: END OF PHASE   KEY_CHK
    >> 14:37:23  PREPARE: START OF PHASE EXTRACTKRN_PRE
    Extracting archive "C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\DBINDEP\SAPMMC.SAR" to "D:\usr\sap\put\exe" ...
    Archive C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\DBINDEP\SAPMMC.SAR successfully unpacked to D:\usr\sap\put\exe.
    Copying file "C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\DBINDEP\UNINSTSAP.EXE" to "D:\usr\sap\put\exe" ...
    Done.
    Extracting archive "C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\DBINDEP\SAPEXE.SAR" to "D:\usr\sap\put\exe" ...
    Archive C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\DBINDEP\SAPEXE.SAR successfully unpacked to D:\usr\sap\put\exe.
    Extracting archive "C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\MSS\SAPEXEDB.SAR" to "D:\usr\sap\put\exe" ...
    Archive C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\MSS\SAPEXEDB.SAR successfully unpacked to D:\usr\sap\put\exe.
    Copying file "C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\DBINDEP\IGSEXE.SAR" to "D:\usr\sap\put\exe" ...
    Done.
    Copying file "C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\DBINDEP\IGSHELPER.SAR" to "D:\usr\sap\put\exe" ...
    Done.
    Extracting archive "C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\DBINDEP\SAPMMC.SAR" to "D:\usr\sap\put\exenew" ...
    Archive C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\DBINDEP\SAPMMC.SAR successfully unpacked to D:\usr\sap\put\exenew.
    Copying file "C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\DBINDEP\UNINSTSAP.EXE" to "D:\usr\sap\put\exenew" ...
    Done.
    Extracting archive "C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\DBINDEP\SAPEXE.SAR" to "D:\usr\sap\put\exenew" ...
    Archive C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\DBINDEP\SAPEXE.SAR successfully unpacked to D:\usr\sap\put\exenew.
    Extracting archive "C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\MSS\SAPEXEDB.SAR" to "D:\usr\sap\put\exenew" ...
    Archive C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\MSS\SAPEXEDB.SAR successfully unpacked to D:\usr\sap\put\exenew.
    Copying file "C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\DBINDEP\IGSEXE.SAR" to "D:\usr\sap\put\exenew" ...
    Done.
    Copying file "C:\D6\NW_2004s_SR2_Kernel_WINDOWS__LNX_X86\KN_WINDOWS_I386_AUPG\DBINDEP\IGSHELPER.SAR" to "D:\usr\sap\put\exenew" ...
    Done.
    >> 14:40:10  PREPARE: END OF PHASE   EXTRACTKRN_PRE
    >> 14:40:10  PREPARE: START OF PHASE INITPUT_PRE
    Supply the following information:
    Confirm the name of your SAP system:
    ? SAP SYSTEM ID     =
    The hostname of your central SAP server:
    ? SAP SYSTEM HOST   =
    Enter the SAP instance number:
    ? INSTANCE NUMBER   =
    Waiting for input since Mar 22, 2007 1:40:10 PM
    > INSTANCE NUMBER   =  59
    > SAP SYSTEM HOST   =  damascus
    > SAP SYSTEM ID     =  ADC
    The system identifier of your database:
    ? DATABASE ID       =
    The hostname of your database server:
    ? DATABASE HOST     =
    Waiting for input since Mar 22, 2007 1:43:59 PM
    > DATABASE HOST     =  damascus
    > DATABASE ID       =  ADC
    Executing script MSSCONCHECK ...
    Supply the following information:
    The password for SAP user DDIC in client 000
    (may be 19920706):
    ? DDIC PASSWORD  =
    Verify password for SAP user DDIC:
    ? DDIC PASSWORD  =
    Waiting for input since Mar 22, 2007 1:44:03 PM
    > DDIC PASSWORD  =  <hidden input>
    > DDIC PASSWORD  =  <hidden input>
    The hostname of your batch server:
    ? BATCH HOST        =
    Waiting for input since Mar 22, 2007 1:44:14 PM
    > BATCH HOST        =  damascus
    Supply the following information:
    The maximum number of parallel processes during uptime:
    ? MAXIMUM UPTIME PROCESSES =
    The number of parallel import processes:
    ? R3TRANS PROCESSES =
    The maximum profile value of "bufreftime":
    ? MAXIMUM SYNC TIME =
    Waiting for input since Mar 22, 2007 1:44:16 PM
    > R3TRANS PROCESSES =  3
    > MAXIMUM SYNC TIME =  120
    > MAXIMUM UPTIME PROCESSES =  1
    The password for Operating System account .\SAPServiceADC:
    ? PASSWORD  =
    Verification of the password for Operating System account .\SAPServiceADC:
    ? PASSWORD  =
    Waiting for input since Mar 22, 2007 1:44:19 PM
    > PASSWORD  =  <hidden input>
    > PASSWORD  =  <hidden input>
    running D:\usr\sap\ADC\SYS\exe\run\tp.exe pf=D:\usr\sap\put\bin\DEFAULT.TPP getdbinfo ADC
    Executing script MSSUPGSPS ...
    Executing script MSSINCHK ...
    >> 14:44:43  PREPARE: END OF PHASE   INITPUT_PRE
    >> 14:44:43  PREPARE: START OF PHASE DBCHK_PRE
    running D:\usr\sap\ADC\SYS\exe\run\tp.exe pf=D:\usr\sap\put\bin\DEFAULT.TPP getdbinfo ADC
    running D:\usr\sap\ADC\SYS\exe\run\tp.exe pf=D:\usr\sap\put\bin\DEFAULT.TPP getdbinfo ADC
    running D:\usr\sap\ADC\SYS\exe\run\tp.exe pf=D:\usr\sap\put\bin\DEFAULT.TPP getdbinfo ADC
    Is there more than one system running in this database?
    (MCOD: Multiple components in one database)
    ? no
    ? yes
    Waiting for input since Mar 22, 2007 1:44:45 PM
    > no
    >> 14:44:49  PREPARE: END OF PHASE   DBCHK_PRE
    >> 14:44:49  PREPARE: START OF PHASE CONFCHK_IMP
    running D:\usr\sap\ADC\SYS\exe\run\tp.exe pf=D:\usr\sap\put\bin\DEFAULT.TPP getdbinfo ADC
    running D:\usr\sap\ADC\SYS\exe\run\tp.exe pf=D:\usr\sap\put\bin\DEFAULT.TPP getdbinfo ADC
    >> 14:44:50  PREPARE: END OF PHASE   CONFCHK_IMP
    >> 14:44:50  PREPARE: START OF PHASE SOLMAN_CHK
    The SAP Solution Manager Key is required for the upgrade.
    Further informations can be found in the upgrade guide,
    the SAP Service Marketplace and SAP note 805390!
    ? continue
    ? cancel
    Waiting for input since Mar 22, 2007 1:44:50 PM
    > continue
    ? SAP Solution Manager Key =
    Waiting for input since Mar 22, 2007 1:44:53 PM
    > SAP Solution Manager Key = 12D8B10981
    >> 14:45:14  PREPARE: END OF PHASE   SOLMAN_CHK
    >> 14:45:14  PREPARE: START OF PHASE CHKSYSTYPE
    >> 14:45:14  PREPARE: END OF PHASE   CHKSYSTYPE
    >> 14:45:14  PREPARE: START OF PHASE HIAV_CHK
    >> 14:45:14  PREPARE: END OF PHASE   HIAV_CHK
    >> 14:45:15  PREPARE: START OF PHASE J2EE_CHK1
    >> 14:45:15  PREPARE: END OF PHASE   J2EE_CHK1
    >> 14:45:15  PREPARE: START OF PHASE REQ_J2EEUPG
    >> 14:45:15  PREPARE: END OF PHASE   REQ_J2EEUPG
    >> 14:45:15  PREPARE: START OF PHASE SETSYNC_PREP_STARTED
    >> 14:45:15  PREPARE: END OF PHASE   SETSYNC_PREP_STARTED
    >> 14:45:15  PREPARE: START OF PHASE REQ_READNOTE
    >> 14:45:15  PREPARE: END OF PHASE   REQ_READNOTE
    >> 14:45:15  PREPARE: START OF PHASE INIT_CBU
    >> 14:45:15  PREPARE: END OF PHASE   INIT_CBU
    >> 14:45:15  PREPARE: START OF PHASE CHECKGROUP_END0
    Execution of PREPARE module Parameter input ends at 20070322144515
    Execution of the selected PREPARE modules finished
    with the statuses as follows:
    'Parameter input'  status: succeeded
    Please see file D:\usr\sap\put\log\CHECKS.LOG
    for the actions which have to be performed.
    ? continue
    ? cancel
    Waiting for input since Mar 22, 2007 1:45:15 PM
    > continue
    The following options are available:
    select: Display screen for selecting PREPARE modules
    status: Display the statuses of the PREPARE modules
    exit:   Exit PREPARE
    help:   Getting help about PREPARE
    ? select
    ? status
    ? exit
    Waiting for input since Mar 22, 2007 1:45:23 PM
    > select
    Select the PREPARE modules
    ?                             name     status  mandatory
    ?                  Parameter input  succeeded        yes
    ?                   Initialization    initial        yes
    ?                           Import    initial        yes
    ?                        Extension    initial        yes
    ?                      Integration    initial        yes
    ?                     Installation    initial        yes
    ?                   General checks    initial        yes
    ?                Activation checks    initial        yes
    ? Necessary checks for conversions    initial        yes
    ?  Optional checks for conversions    initial         no
    ?             Modification support    initial         no
    ?                   Pre-processing    initial         no
    Waiting for input since Mar 22, 2007 1:45:26 PM
    >                   Initialization    initial        yes
    You selected the following PREPARE modules:
    Initialization
    execute: Execute the selected PREPARE modules.
             Make sure that you have carried out the actions described in
             D:\usr\sap\put\log\CHECKS.LOG before continuing.
             (Note: The contents of file CHECKS.LOG are saved
              in D:\usr\sap\put\log\CHECKS.SAV)
    select:  Display screen for selecting PREPARE modules.
    exit:    Exit PREPARE.
    help:    Getting help about PREPARE modules.
    ? execute
    ? select
    ? exit
    ? display CHECKS.LOG
    Waiting for input since Mar 22, 2007 1:45:30 PM
    > execute
    Execution of PREPARE module Initialization begins at 20070322144532
    >> 14:45:32  PREPARE: START OF PHASE INITCURENV
    >> 14:45:32  PREPARE: END OF PHASE   INITCURENV
    >> 14:45:32  PREPARE: START OF PHASE DBCHK_INI
    running D:\usr\sap\ADC\SYS\exe\run\tp.exe pf=D:\usr\sap\put\bin\DEFAULT.TPP getdbinfo ADC
    running D:\usr\sap\ADC\SYS\exe\run\tp.exe pf=D:\usr\sap\put\bin\DEFAULT.TPP getdbinfo ADC
    running D:\usr\sap\ADC\SYS\exe\run\tp.exe pf=D:\usr\sap\put\bin\DEFAULT.TPP getdbinfo ADC
    >> 14:45:34  PREPARE: END OF PHASE   DBCHK_INI
    >> 14:45:34  PREPARE: START OF PHASE RFCCHK_INI
    >> 14:45:34  PREPARE: END OF PHASE   RFCCHK_INI
    >> 14:45:34  PREPARE: START OF PHASE VERSCHK_INI
    >> 14:45:34  PREPARE: END OF PHASE   VERSCHK_INI
    >> 14:45:34  PREPARE: START OF PHASE VALCHK_INI
    >> 14:45:35  PREPARE: END OF PHASE   VALCHK_INI
    >> 14:45:35  PREPARE: START OF PHASE TOOLVERSION_INI
    >> 14:45:36  PREPARE: END OF PHASE   TOOLVERSION_INI
    >> 14:45:36  PREPARE: START OF PHASE UNICODE_CHK_PRE
    >> 14:45:36  PREPARE: END OF PHASE   UNICODE_CHK_PRE
    >> 14:45:36  PREPARE: START OF PHASE TOOLVERSION_UPG1
    >> 14:46:00  PREPARE: END OF PHASE   TOOLVERSION_UPG1
    >> 14:46:00  PREPARE: START OF PHASE DBCONNCHK_INI
    Checking DB connect with 'D:\usr\sap\put\exe\R3trans.exe'.
    >> 14:46:00  PREPARE: END OF PHASE   DBCONNCHK_INI
    >> 14:46:00  PREPARE: START OF PHASE SETSYNC_INFO_FINISHED
    >> 14:46:00  PREPARE: END OF PHASE   SETSYNC_INFO_FINISHED
    >> 14:46:00  PREPARE: START OF PHASE UCMIG_DECISION
    Your system is configured as a non-Unicode SCP (Single Code Page) configuration.
    If you plan to perform a Unicode Conversion after the upgrade, you may choose to perform a combined
    Upgrade and Unicode Conversion.
    In this case, several of the migration preparation steps can be done already on the start release
    or on the upgrade shadow system.
    For further information, please refer to OSS note 928729.
    Do you want to perform a combined Upgrade and Unicode Conversion?
    ? Yes
    ? No
    Waiting for input since Mar 22, 2007 1:46:06 PM
    > No
    >> 14:48:04  PREPARE: END OF PHASE   UCMIG_DECISION
    >> 14:48:04  PREPARE: START OF PHASE CLNT_CHK_INI
    >> 14:48:09  PREPARE: END OF PHASE   CLNT_CHK_INI
    >> 14:48:09  PREPARE: START OF PHASE PATCH_CHK1
    >> 14:48:15  PREPARE: END OF PHASE   PATCH_CHK1
    >> 14:48:15  PREPARE: START OF PHASE INTCHK_INI
    running D:\usr\sap\ADC\SYS\exe\run\tp.exe pf=D:\usr\sap\put\bin\DEFAULT.TPP getddxttent ADC
    running D:\usr\sap\ADC\SYS\exe\run\tp.exe pf=D:\usr\sap\put\bin\DEFAULT.TPP getddxtfent ADC
    >> 14:48:15  PREPARE: END OF PHASE   INTCHK_INI
    >> 14:48:15  PREPARE: START OF PHASE ADJ_CNTRANS
    Calling R3trans to import 'RSUPDTEC.60X'.
    Waiting 130 seconds for buffer synchronization ...
    working ...
    >> 14:50:38  PREPARE: END OF PHASE   ADJ_CNTRANS
    >> 14:50:38  PREPARE: START OF PHASE INIT_CNTRANS
    >> 14:50:38  PREPARE: END OF PHASE   INIT_CNTRANS
    >> 14:50:38  PREPARE: START OF PHASE CNTRANS_PRE
    >> 14:50:38  PREPARE: END OF PHASE   CNTRANS_PRE
    >> 14:50:38  PREPARE: START OF PHASE DMPSPC_INI
    >> 14:50:38  PREPARE: END OF PHASE   DMPSPC_INI
    >> 14:50:38  PREPARE: START OF PHASE JOB_RSDB4090
    >> 14:50:38  PREPARE: END OF PHASE   JOB_RSDB4090
    >> 14:50:38  PREPARE: START OF PHASE CHK_DB6_REG_PRE
    >> 14:50:38  PREPARE: END OF PHASE   CHK_DB6_REG_PRE
    >> 14:50:39  PREPARE: START OF PHASE CHK_DB6_PAR_INI
    >> 14:50:39  PREPARE: END OF PHASE   CHK_DB6_PAR_INI
    >> 14:50:39  PREPARE: START OF PHASE SPACECHK_INI
    Executing script MSSSPACE ...
    >> 14:50:39  PREPARE: END OF PHASE   SPACECHK_INI
    >> 14:50:39  PREPARE: START OF PHASE KRNCHK_DEST
    >> 14:50:39  PREPARE: END OF PHASE   KRNCHK_DEST
    >> 14:50:39  PREPARE: START OF PHASE DBPREP_CHK
    >> 14:50:39  PREPARE: END OF PHASE   DBPREP_CHK
    >> 14:50:39  PREPARE: START OF PHASE EXECCV
    >> 14:50:44  PREPARE: END OF PHASE   EXECCV
    >> 14:50:44  PREPARE: START OF PHASE EXECAV
    >> 14:50:50  PREPARE: END OF PHASE   EXECAV
    >> 14:50:50  PREPARE: START OF PHASE COMPINFO_INI
    >> 14:50:50  PREPARE: END OF PHASE   COMPINFO_INI
    >> 14:50:50  PREPARE: START OF PHASE ADDON_CHK
    >> 14:50:50  PREPARE: END OF PHASE   ADDON_CHK
    >> 14:50:50  PREPARE: START OF PHASE ADDON_INFO
    >> 14:50:50  PREPARE: END OF PHASE   ADDON_INFO
    >> 14:50:50  PREPARE: START OF PHASE ADDON_SPEC1
    >> 14:50:55  PREPARE: END OF PHASE   ADDON_SPEC1
    >> 14:50:56  PREPARE: START OF PHASE ADDON_TREAS
    >> 14:50:56  PREPARE: END OF PHASE   ADDON_TREAS
    >> 14:50:56  PREPARE: START OF PHASE ADDON_WFM
    >> 14:51:01  PREPARE: END OF PHASE   ADDON_WFM
    >> 14:51:01  PREPARE: START OF PHASE ADDON_DMC
    >> 14:51:01  PREPARE: END OF PHASE   ADDON_DMC
    >> 14:51:01  PREPARE: START OF PHASE ACE_CHK
    >> 14:51:01  PREPARE: END OF PHASE   ACE_CHK
    >> 14:51:02  PREPARE: START OF PHASE CRM_BILL
    >> 14:51:02  PREPARE: END OF PHASE   CRM_BILL
    >> 14:51:02  PREPARE: START OF PHASE PR_DBPAR
    >> 14:51:02  PREPARE: END OF PHASE   PR_DBPAR
    >> 14:51:02  PREPARE: START OF PHASE CHECKGROUP_END1
    Execution of PREPARE module Initialization ends at 20070322145102
    Execution of the selected PREPARE modules finished
    with the statuses as follows:
    'Initialization'  status: succeeded
    Please see file D:\usr\sap\put\log\CHECKS.LOG
    for the actions which have to be performed.
    ? continue
    ? cancel
    Waiting for input since Mar 22, 2007 1:51:02 PM
    > continue
    The following options are available:
    select: Display screen for selecting PREPARE modules
    status: Display the statuses of the PREPARE modules
    exit:   Exit PREPARE
    help:   Getting help about PREPARE
    ? select
    ? status
    ? exit
    Waiting for input since Mar 22, 2007 1:51:41 PM
    > continue
    Select the PREPARE modules
    ?                             name     status  mandatory
    ?                  Parameter input  succeeded        yes
    ?                   Initialization  succeeded        yes
    ?                           Import    initial        yes
    ?                        Extension    initial        yes
    ?                      Integration    initial        yes
    ?                     Installation    initial        yes
    ?                   General checks    initial        yes
    ?                Activation checks    initial        yes
    ? Necessary checks for conversions    initial        yes
    ?  Optional checks for conversions    initial         no
    ?             Modification support    initial         no
    ?                   Pre-processing    initial         no
    Waiting for input since Mar 22, 2007 1:51:41 PM
    SAP  UPGRADE  CONTROL  PROGRAM
    ================================
    This is SAPup version 7.00/2 upgrade to release
            500 of BBPCRM
            2005_1_700 of PI_BASIS
            700 of SAP_ABA
            700 of SAP_AP
            700 of SAP_BASIS
            700 of SAP_BW
            2005_1_700 of ST-PI
    Target SAP system is ADC, MSSQL database
    SAPup started in PREPARE mode.
    ? continue
    ? cancel
    Waiting for input since Mar 22, 2007 1:58:46 PM
    > continue
    The following options are available:
    select: Display screen for selecting PREPARE modules
    status: Display the statuses of the PREPARE modules
    exit:   Exit PREPARE
    help:   Getting help about PREPARE
    ? select
    ? status
    ? exit
    Waiting for input since Mar 22, 2007 1:58:53 PM
    > select
    Select the PREPARE modules
    ?                             name     status  mandatory
    ?                  Parameter input  succeeded        yes
    ?                   Initialization  succeeded        yes
    ?                           Import    initial        yes
    ?                        Extension    initial        yes
    ?                      Integration    initial        yes
    ?                     Installation    initial        yes
    ?                   General checks    initial        yes
    ?                Activation checks    initial        yes
    ? Necessary checks for conversions    initial        yes
    ?  Optional checks for conversions    initial         no
    ?             Modification support    initial         no
    ?                   Pre-processing    initial         no
    Waiting for input since Mar 22, 2007 1:58:56 PM
    >                           Import    initial        yes
    You selected the following PREPARE modules:
    Import
    execute: Execute the selected PREPARE modules.
             Make sure that you have carried out the actions described in
             D:\usr\sap\put\log\CHECKS.LOG before continuing.
             (Note: The contents of file CHECKS.LOG are saved
              in D:\usr\sap\put\log\CHECKS.SAV)
    select:  Display screen for selecting PREPARE modules.
    exit:    Exit PREPARE.
    help:    Getting help about PREPARE modules.
    ? execute
    ? select
    ? exit
    ? display CHECKS.LOG
    Waiting for input since Mar 22, 2007 1:59:00 PM
    > execute
    Execution of PREPARE module Import begins at 20070322145902
    >> 14:59:02  PREPARE: START OF PHASE REQIMPORT
           The PREPARE module Import will be started now.
    During this module programs, structures, and table entries
    required by PREPARE are imported (the socalled "tool import").
    Note: This can cause a loss of performance in R/3
    In rare cases, a concurrent transport via the transport directory
    may disturb the tool import. Please avoid any concurrent import
    during this PREPARE module.
    ? continue
    ? cancel
    Waiting for input since Mar 22, 2007 1:59:02 PM
    > continue
    >> 14:59:05  PREPARE: END OF PHASE   REQIMPORT
    >> 14:59:05  PREPARE: START OF PHASE READDATA
    Trying to find archive files ...
    Extracting archive "D:\D1\SAP_CRM_5.0_SR2_Upgrade_Export\UPG1\DBINDEP\MISC7000.SAR" to "D:\usr\sap\put" ...
    Archive D:\D1\SAP_CRM_5.0_SR2_Upgrade_Export\UPG1\DBINDEP\MISC7000.SAR successfully unpacked to D:\usr\sap\put.
    Extracting archive "D:\D1\SAP_CRM_5.0_SR2_Upgrade_Export\UPG1\DBINDEP\MISC700X.SAR" to "D:\usr\sap\put" ...
    Archive D:\D1\SAP_CRM_5.0_SR2_Upgrade_Export\UPG1\DBINDEP\MISC700X.SAR successfully unpacked to D:\usr\sap\put.
    Extracting archive "D:\D1\SAP_CRM_5.0_SR2_Upgrade_Export\UPG1\DBINDEP\MISC_SP.SAR" to "D:\usr\sap\put" ...
    Archive D:\D1\SAP_CRM_5.0_SR2_Upgrade_Export\UPG1\DBINDEP\MISC_SP.SAR successfully unpacked to D:\usr\sap\put.
    Trying to find archive files ...
    Extracting archive "C:\D2\SAP_CRM_5.0_SR2_Upgrade_Export\UPG2\DBINDEP\MISC700I.SAR" to "D:\usr\sap\put" ...
    Archive C:\D2\SAP_CRM_5.0_SR2_Upgrade_Export\UPG2\DBINDEP\MISC700I.SAR successfully unpacked to D:\usr\sap\put.
    >> 14:59:40  PREPARE: END OF PHASE   READDATA
    >> 14:59:40  PREPARE: START OF PHASE READDATA_EXT
    Trying to find archive files ...
    >> 14:59:41  PREPARE: END OF PHASE   READDATA_EXT
    >> 14:59:41  PREPARE: START OF PHASE TOOLFIX_CHK
    Correction package 'D:\usr\sap\put\FIX_CRM50SR2.UPG' found, extracting to 'D:\usr\sap\put'
    Archive successfully unpacked.
    >> 14:59:42  PREPARE: END OF PHASE   TOOLFIX_CHK
    >> 14:59:42  PREPARE: START OF PHASE CPYFIL0_CBU
    >> 14:59:42  PREPARE: END OF P

  • Error in Global Transaction

    Hi,
    I have installed Tuxedo 10R3 on AIX 5.3.. I have written a sample code for Global Transaction.. While invoking the service, Tpcall is failing with status 0.. So i couldnot understand where the error..
    My source code for client program is:
    IDENTIFICATION DIVISION.
    PROGRAM-ID. GLOBCL.
    AUTHOR. TUXEDO DEVELOPMENT.
    ENVIRONMENT DIVISION.
    CONFIGURATION SECTION.
    DATA DIVISION.
    WORKING-STORAGE SECTION.
    * Tuxedo definitions
    01 TPTYPE-REC.
    COPY TPTYPE.
    01 TPSTATUS-REC.
    COPY TPSTATUS.
    01 TPSVCDEF-REC.
    COPY TPSVCDEF.
    01 TPINFDEF-REC.
    COPY TPINFDEF.
    01 TPTRXDEF-REC.
    COPY TPTRXDEF.
    * Log messages definitions
    01 LOGMSG.
    05 FILLER PIC X(8) VALUE "GLOBCL:".
    05 LOGMSG-TEXT PIC X(50).
    01 LOGMSG-LEN PIC S9(9) COMP-5.
    01 USER-DATA-REC PIC X(75).
    01 SEND-STRING PIC X(100) VALUE SPACES.
    01 RECV-STRING PIC X(100) VALUE SPACES.
    LINKAGE SECTION.
    01 OS-LEN PIC S9(9) COMP.
    01 OS-STRING.
    02 PARMPTR-TABLE OCCURS 1 TO 100 TIMES DEPENDING
    ON OS-LEN.
    03 PARMPTR POINTER.
    01 PARM-STRING PIC X(100).
    * Start program with command line args
    PROCEDURE DIVISION
    USING BY VALUE OS-LEN BY REFERENCE OS-STRING.
    MOVE LOW-VALUES TO TPINFDEF-REC.
    MOVE LENGTH OF LOGMSG TO LOGMSG-LEN.
    SET ADDRESS OF PARM-STRING TO PARMPTR(2).
    MOVE PARM-STRING TO SEND-STRING.
    START-GLOBCL.
    DISPLAY "SEND-STRING:" SEND-STRING.
    MOVE "Started" TO LOGMSG-TEXT.
    PERFORM DO-USERLOG.
    PERFORM DO-TPINIT.
    PERFORM DO-TPBEGIN.
    PERFORM DO-TPCALL.
    PERFORM DO-TPCOMMIT.
    PERFORM DO-TPTERM.
    PERFORM EXIT-PROGRAM.
    * Now register the client with the system.
    DO-TPINIT.
    MOVE SPACES TO USRNAME.
    MOVE SPACES TO CLTNAME.
    MOVE SPACES TO PASSWD.
    MOVE SPACES TO GRPNAME.
    MOVE ZERO TO DATALEN.
    SET TPU-DIP TO TRUE.
    CALL "TPINITIALIZE" USING TPINFDEF-REC
    USER-DATA-REC
    TPSTATUS-REC.
    IF NOT TPOK
    MOVE "TPINITIALIZE Failed" TO LOGMSG-TEXT
    PERFORM DO-USERLOG
    PERFORM EXIT-PROGRAM
    END-IF.
    DO-TPBEGIN.
    MOVE 0 TO T-OUT.
    CALL "TPBEGIN" USING TPTRXDEF-REC TPSTATUS-REC.
    IF NOT TPOK
    MOVE "TPBEGIN Failed" TO LOGMSG-TEXT
    PERFORM DO-USERLOG
    DISPLAY "TPBEGIN:" TP-STATUS
    PERFORM EXIT-PROGRAM
    END-IF.
    DISPLAY "COMM HANDLE:" COMM-HANDLE.
    * Issue a TPCALL
    DO-TPCALL.
    MOVE 100 TO LEN.
    MOVE "STRING" TO REC-TYPE.
    MOVE "GLOBSRV" TO SERVICE-NAME.
    SET TPBLOCK TO TRUE.
    SET TPTRAN TO TRUE.
    SET TPNOTIME TO TRUE.
    SET TPSIGRSTRT TO TRUE.
    SET TPCHANGE TO TRUE.
    CALL "TPCALL" USING TPSVCDEF-REC
    TPTYPE-REC
    SEND-STRING
    TPTYPE-REC
    SEND-STRING
    TPSTATUS-REC.
    IF NOT TPOK
    MOVE "TPCALL Failed" TO LOGMSG-TEXT
    PERFORM DO-USERLOG
    DISPLAY "TPCALL:" TP-STATUS
    END-IF.
    DO-TPCOMMIT.
    CALL "TPCOMMIT" USING TPTRXDEF-REC TPSTATUS-REC.
    IF NOT TPOK
    MOVE "TPCOMMIT Failed" TO LOGMSG-TEXT
    PERFORM DO-USERLOG
    DISPLAY "TPCOMMIT:" TP-STATUS
    PERFORM EXIT-PROGRAM
    END-IF.
    DISPLAY "RECV-STRING:" SEND-STRING.
    * Leave TUXEDO
    DO-TPTERM.
    CALL "TPTERM" USING TPSTATUS-REC.
    IF NOT TPOK
    MOVE "TPTERM Failed" TO LOGMSG-TEXT
    PERFORM DO-USERLOG
    END-IF.
    * Log messages to the userlog
    DO-USERLOG.
    CALL "USERLOG" USING LOGMSG
    LOGMSG-LEN
    TPSTATUS-REC.
    *Leave Application
    EXIT-PROGRAM.
    MOVE "Ended" TO LOGMSG-TEXT.
    PERFORM DO-USERLOG.
    STOP RUN.
    and the source code for server program is:
    IDENTIFICATION DIVISION.
    PROGRAM-ID. GLOBSRV.
    AUTHOR. TUXEDO DEVELOPMENT.
    ENVIRONMENT DIVISION.
    CONFIGURATION SECTION.
    DATA DIVISION.
    WORKING-STORAGE SECTION.
    * Tuxedo definitions
    01 TPSVCRET-REC.
    COPY TPSVCRET.
    01 TPTYPE-REC.
    COPY TPTYPE.
    01 TPSTATUS-REC.
    COPY TPSTATUS.
    01 TPSVCDEF-REC.
    COPY TPSVCDEF.
    * Log message definitions
    01 LOGMSG.
    05 FILLER PIC X(10) VALUE
    "GLOBSRV :".
    05 LOGMSG-TEXT PIC X(50).
    01 LOGMSG-LEN PIC S9(9) COMP-5.
    * User defined data records
    01 RECV-STRING PIC X(100).
    01 SEND-STRING PIC X(100).
    LINKAGE SECTION.
    PROCEDURE DIVISION.
    START-FUNDUPSR.
    MOVE LENGTH OF LOGMSG TO LOGMSG-LEN.
    MOVE "Started" TO LOGMSG-TEXT.
    PERFORM DO-USERLOG.
    * Get the data that was sent by the client
    MOVE LENGTH OF SEND-STRING TO LEN.
    CALL "TPSVCSTART" USING TPSVCDEF-REC
    TPTYPE-REC
    SEND-STRING
    TPSTATUS-REC.
    IF NOT TPOK
    MOVE "TPSVCSTART Failed" TO LOGMSG-TEXT
    PERFORM DO-USERLOG
    PERFORM EXIT-PROGRAM
    END-IF.
    IF TPTRUNCATE
    MOVE "Data was truncated" TO LOGMSG-TEXT
    PERFORM DO-USERLOG
    PERFORM EXIT-PROGRAM
    END-IF.
    INSPECT SEND-STRING CONVERTING
    "abcdefghijklmnopqrstuvwxyz" TO
    "ABCDEFGHIJKLMNOPQRSTUVWXYZ".
    MOVE SEND-STRING TO LOGMSG-TEXT.
    PERFORM DO-USERLOG.
    MOVE "Success" TO LOGMSG-TEXT.
    PERFORM DO-USERLOG.
    SET TPSUCCESS TO TRUE.
    COPY TPRETURN REPLACING
    DATA-REC BY SEND-STRING.
    * Write out a log err messages
    DO-USERLOG.
    CALL "USERLOG" USING LOGMSG
    LOGMSG-LEN
    TPSTATUS-REC.
    * EXIT PROGRAM
    EXIT-PROGRAM.
    MOVE "Failed" TO LOGMSG-TEXT.
    PERFORM DO-USERLOG.
    SET TPFAIL TO TRUE.
    COPY TPRETURN REPLACING
    DATA-REC BY SEND-STRING.
    and the output is:
    GLOBCL hi
    SEND-STRING:hiCOB=IBMCobolDB2INSTANCE=db2inst4FLDTBLDIR=/usr/Oracle/Tuxedo10g/udataobj:AUTHSTATE=compatVIEW
    COMM HANDLE:0000000000
    TPCALL:0000000000
    RECV-STRING:hiCOB=IBMCobolDB2INSTANCE=db2inst4FLDTBLDIR=/usr/Oracle/Tuxedo10g/udataobj:AUTHSTATE=compatVIEW
    in the ULOG:
    223955.ibmsceai!?proc.676012.1.-2: 08-10-2009: Tuxedo Version 10.3.0.0, 32-bit
    223955.ibmsceai!?proc.676012.1.-2: GLOBCL: Started
    223955.ibmsceai!?proc.676012.1.0: gtrid x0 x4a80e7fe x1: GLOBCL: TPCALL Failed
    223955.ibmsceai!?proc.676012.1.-2: GLOBCL: Ended
    Any suggestion regarding this??
    Thanks..

    Hi,
    Try switching the order of logging the error message and the DISPLAY of TPSTATUS in the IF NOT TPOK sentence following the CALL of TPCALL. I believe the call to USERLOG is overwriting TPSTATUS so what you are seeing is TPOK from the USERLOG call and not the original status from the TPCALL. Hopefully this will allow you to see the actual error status from the TPCALL.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • ORA-02047: cannot join the distributed transaction in progress

    Hi All,
    My requirement is to do COMMIT Transactions in BULK like 100 rows. I am doing update in Oracle and SQL Server both. Following statement update the SQL Server side:
    v_sqlstr :=
    'update JDETAIL set interfacedate = getdate() where company ='
    || v_company
    || ' and Recordnumber= '
    || TO_NUMBER (v_recordNumber)
    || ' COMMIT TRANSACTION';
    num_rows :=
    DBMS_HS_PASSTHROUGH.execute_immediate@ex_test (v_sqlstr);
    After this I am calling Oracle Update Procedure . In Oracle UPDATE Procedure when I write AUTONOMOUS TRANSACTIONS AND Commit then it works fine BUT when I don't COMMIT which I don't want because I want to COMMIT in BATCHES then following error is thrown
    ORA-02047: cannot join the distributed transaction in progress
    Thanks

    you can't put the commit transaction into a pasthrough statement.
    Oracle Gateway starts the transaction, so you need to write the code in a way that allows the gateway to perform the commit. When doing a commit in a passhrough statement the gateway has no control over the committed data. Thus you get the error unless you start an autonomous transaction.
    Why do you need to call the update in a pasthrough statement? Why not in a PL/SQl code block with a counter that commits after 100 rows?

  • Global transactions in OSB and EJB 2.1

    Hi,
    My team is working in a SOA service based on OSB 11g (11.1.1.5) using DB JCA Adapter and EJB 2.1 over WLS 10g(WLI environment). The logic of the service works in this way:
    1. A table in a database (XE) is polled by the DB Adapter which starts the service (1 row = 1 message).
    2. The message contains a collection of items to be inserted in another Oracle database.
         Once a message/row is picked, and after some steps (logging, validation,etc), there is a for..each action which extracts each item of the collection and executes a service callout action to a business service.
    3. This business service uses EJB protocol to call an EJB (2.1 + WLS Extensions). The EJB is deployed in another domain (WLS 10.3.0/10g and Oracle BEA drivers)  and only executes an store procedure with the parameters based on the message and inserts these values in a table.
    4. Once the for...each finishes, there is a call to another proxy service which marks the message/row as "processed" in the source table. This update is done via DB JCA also.
    5. In case of an error, the error handler of the proxy service calls the proxy service mentioned above to mark the row as "Failed" (in fact there is a retry mechanism, but it's not important for now).
    The service requires to work inside a global transaction. The main requirement is that the collection of items should be processed as "All or None", so basically we're using the options to manage the global transaction. However, the problem is that it's failing to rollback the whole insertion of items when an error is simulated. It only rolls back the last insertion/execution of SP.
    Additionally, the proxy service that should mark the row as FAILED, never updates this one, and the tables stay locked until we modify one of the store procedure in order to avoid the simulated error and commit the transaction.
    The EJB uses WLS extensions with the annotations to "transaction required". The proxy service has the option transaction required also. The database drivers are all XA and we're testing against Oracle11g XE (however, the EJB destiny will be Oracle 8i in production).
    We have tried different alternatives, splitting the logic in different proxies (Proxy services for JCA, Proxy with For Each for EJB, etc), isolating the specific part with the EJB call, without success.
    The security between domains is set as Global Trust.
    Do you have any idea, example or suggestion about this problem? Is EJB really supported in Global Transactions and XA?
    Thanks in advance.

    where do you find the J2EE Connector 1.5 compliant
    Resource Adapter?I wrote the compliant adapter myself. Hey Steve,
    Were you able to find a solution for this problem. I am struggling with the same problem with the RI Beta implementation.
    Sandeep

Maybe you are looking for