Doubts in transcation

          Hai,
          1)
          I have two session bean which do some database operation.
          And in my deployment descriptor I have set transcational attribute
          as Required, as well as transcation type as bean.
          I have another bean which calls the methods of other two
          session bean.And in my deployment descriptor I have set transcational attribute
          as RequiresNew, as well as transcation type as bean.
          Entire thing is working fine for the first time.I mean it gets rollbacked when one
          gets fails.But when I do it next time (without restarting weblogic server) it's not working.I mean even one gets fails
          other gets committed.
          What should I do inorder to work well.
          2)
          When I do it using container managed transction, i couldn't accomplish
          transcation concepts.I mean even one gets fails
          other gets committed.
          Thanks in advance
          With Regards,
          Vinoth.c
          

Hi Sitaram,
- which ref table and ref field is suggestable: : For clarity include currency and unit fields in the same Z-table
- which techincal settings is suggestable: This heavenly depends on the number of expected records and the type of use.
You can use SE03 -> Change Object Directory entries for assigning a local object to a package.
Regards,
John

Similar Messages

  • Create procedure to clear in doubt transcations.

    Hi All,
    I am trying to write a procedure and shedule it to run every 10 minutes to clear out in doubt transcations. following is the anonymous block, but not able to convert this into procedure, this has been taken from sir tom kyte site.
    declare
       cursor_name     pls_integer default dbms_sql.open_cursor;
       ignore          pls_integer;
       procedure execute_immediate( p_sql in varchar2 )
       is
       BEGIN
          dbms_sql.parse(cursor_name, p_sql, dbms_sql.native);
          ignore := dbms_sql.execute(cursor_name);
          dbms_sql.close_cursor(cursor_name);
       END;
    begin
       for x in ( select local_tran_id from from dba_2pc_pending where state like 'prepa%'; )
       loop
          dbms_output.put_line( 'My variable is ' || x.local_tran_id );
          -- execute_immediate( 'rollback force ''' || x.local_tran_id || '''' );
          dbms_transaction.purge_lost_db_entry(x.local_tran_id);
       end loop;
    end;
    /

    1  CREATE OR REPLACE PROCEDURE FOOBAR
      2  AS
      3     cursor_name     pls_integer default dbms_sql.open_cursor;
      4     ignore          pls_integer;
      5     procedure execute_immediate( p_sql in varchar2 )
      6     is
      7     BEGIN
      8        dbms_sql.parse(cursor_name, p_sql, dbms_sql.native);
      9        ignore := dbms_sql.execute(cursor_name);
    10        dbms_sql.close_cursor(cursor_name);
    11     END;
    12  begin
    13     for x in ( select local_tran_id from sys.dba_2pc_pending where state like 'prepa%' )
    14     loop
    15        dbms_output.put_line( 'My variable is ' || x.local_tran_id );
    16        -- execute_immediate( 'rollback force ''' || x.local_tran_id || '''' );
    17        dbms_transaction.purge_lost_db_entry(x.local_tran_id);
    18     end loop;
    19* end;
    11:15:06 SQL> /
    Procedure created.
    11:15:09 SQL>

  • ORA-01591: lock held by in-doubt distributed

    Hi All,
    We are using oracle 8i to communicate informix through oracle 8i gaeways. we are getting ORA-01591 from quite a few days , the application team complains about the in doubt transcation issue. we tried to investigate and found the local and global cordinater is oracle database and the job trying to query and insert one of the table sitting on informix database. we also discovered that we have many "is local tran" entries reported in alert.log and when I query these transcation , they sometime show me in "prepared state" and after some time , the updated to "rollback forced" in the state column. also , we also have job running for cleaning up in doubt in database , which gets invoked periodically and doees the rollback force. going forward, we just failed to understand one thing that we are able to communicate the gateways through oracle database and also able to query the table for which the application team claims that when they perform insert or select they are getting in doubt. also , you would recommened to move/upgrade since this is oracle 8i , we already started migrating our databases to 11g , since this job is pretty critical , we have no option , but to live with this.I would really appriciate , if you could offer some help to me as I am clueless .
    we have many in doubt in alert log
    is local tran 22.89.4837399 (hex=16.59.49d017)
    is local tran 9.18.5331070 (hex=09.12.51587e)
    is local tran 22.89.4837399 (hex=16.59.49d017)
    is local tran 2.10.5449011 (hex=02.0a.532533)
    is local tran 2.10.5449011 (hex=02.0a.532533)
    is local tran 23.18.5210664 (hex=17.12.4f8228)
    is local tran 19.49.4958014 (hex=13.31.4ba73e)
    is local tran 20.18.4845028 (hex=14.12.49ede4)
    is local tran 23.18.5210664 (hex=17.12.4f8228)
    is local tran 19.49.4958014 (hex=13.31.4ba73e)
    is local tran 20.18.4845028 (hex=14.12.49ede4)
    select LOCAL_TRAN_ID, global_TRAN_ID,STATE,ADVICE,MIXED,TRAN_COMMENT from dba_2pc_pending where LOCAL_TRAN_ID ='20.18.4845028';
    LOCAL_TRAN_ID             GLOBAL_TRAN_ID            STATE            MIX TRAN_
    2.10.5449011              PROD01.US.ESTEE.COM.ceedc prepared         no
                              40c.2.10.5449011
    select LOCAL_TRAN_ID, global_TRAN_ID,STATE,ADVICE,MIXED,TRAN_COMMENT from dba_2pc_pending where LOCAL_TRAN_ID ='20.18.4845028';
    LOCAL_TRAN_ID             GLOBAL_TRAN_ID            STATE            A MIX TRAN_
    2.10.5449011              PROD01.US.ESTEE.COM.ceedc forced rollback    no
                              40c.2.10.5449011
    SELECT LOCAL_TRAN_ID, IN_OUT, DATABASE, DBUSER_OWNER , INTERFACE FROM DBA_2PC_NEIGHBORS where  LOCAL_TRAN_ID ='20.18.4845028';
    LOCAL_TRAN_ID IN_OUT DATABASE                  DBUSER_OWNER    INT
    2.10.5449011  in                               DBTRAN          N
    2.10.5449011  out    TG4MELV.US.ESTEE.COM      DBTRAN          C
    05:35:59 SQL> select count(*) from "recover"."hs_transaction_log"@tg4melv.us.estee.com;
      COUNT(*)
             0
    05:37:23 SQL> select count(*) from "recover"."hs_transaction_log"@tg4padc.us.estee.com;
      COUNT(*)
             0Edited by: 937853 on Aug 23, 2012 3:19 AM

    Hi,
    You haven't said which gateway you are using but is it the TG4Informix or are using HSODBC (generic connectivity).
    I would suggest the following -
    - try to determine which transactions are failing and why to try and prevent them happening.
    - if you are using Tg4Informix then check the recovery user and password so it can connect to the Informix database to automatically resolve transactions that have failed. That may be a reason why they are left in the system.
    The 8i gateways have been desupported for a long time now and once you upgrade your RDBMS to 11g you should then obviously use the 11g gateway.
    You can't use a 8i RDBMS against any 11g gateway so you can't do it before upgrading the RDBMS.
    The Informix transaction log table is empty so the only action is to manually delete the outstanding transactions that have been left in the Oracle database.
    Regards,
    Mike

  • Doubt in fbl1n transaction

    hi i have a doubt....
    in fbl1n transaction, there are open items and cleared items.
    in it the cleared items  for certain document types such as invoice etc is not present in the open item table (bsik)
    however the cleared items for document types such as general  voucher its present in the open items table (bsik)
    is this possible as all cleared item entries shld b present in the open item table with an indicator set for cleared or not...
    plz exlain!

    Hi
    There are 2 tables(open and Closed Items)  in FI for Account Payables and Account Receivables and GL accounts
    1.Account payables: BSIK is Open Items and BSAK is Closed items
    2.Account Receivables; BSID and BSAD for OPEN and closed items
    3/GL accounts :  BSIS and BSAS  for Open and Closed Items
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Doubt in creation of a new object

    Hi All,
                 I have one doubt in creation of a new object.If a new object is to be created and it is not a subtype
    of any existing object, then what should we enter in the Program field for creating the object?
    I hope I am clear with my question.
    Thanks in Advance,
    Saket.

    Hi Saket,
    Following will be required for created a custom business object.
    1. Object Type - ZTEST (Internal Techincal Key)
    2. Object Name - ZTESTNAME (Technical Key Name)
    3. Name - TEST (Name of BO, it is used while selecting the object type)
    4. Description - (Short Description of BO)
    5. Program - ZTESTPROGRAM (ABAP program in which the methods of the object type are implemented)
    6. Application - A or B.. etc (Area to which your BO is related)
    Please remember that you can learn these basic things by giving F1 help on those fields and in HELP.SAP.COM.
    Regards,
    Gautham Paspala

  • Doubt in sender mail adapter

    Hi Everyone,
    Can we read and validate the attachment of the mail.If so how to do it.
    Thanks in advance,
    Sakthi

    Hi Sakthi,
       Please refere the below links:
      http://help.sap.com/saphelp_nw2004s/helpdata/en/ad/bf93409c663228e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/0d/52b240ac052817e10000000a1550b0/frameset.htm
    Let me know if you have any doubts regarding this.
    Thanks,
    sekhar.

  • PI' RFC  Connection pool  doubt.

    Hi PI exports:
    i have a doubt about  pi' RFC  Connection pool ,pi RFC receive channel can set the conn pool size ,but when start the rfc receiver channel ,is there always only one Connection  pool ,or there is only one Connection  pool  instance?
      thinks
    Edited by: kevin liang on Oct 19, 2009 6:45 AM

    Hi,
      Connection poolins size means how many number of connection you want to make open to send data to ECC, We can define maximum number of connection in Receiver RFC Adapter,Go to additional parameters section and define Max Number of connection give the number there,thats it.Internally it works as Connection poolin mechanism.
    Regards,
    Raj

  • Small Doubt Regarding SY-MANDT

    Hi All,
         SELECT changenr FROM cdhdr CLIENT SPECIFIED INTO CORRESPONDING FIELDS OF TABLE it_cdhdr
                                             WHERE mandant = syst-mandt
                                             AND   objectclas = 'MATERIAL'
                                             AND   objectid   = wa_matl-matnr
                                             AND   tcode      = 'MM02'.
         I have written the select stament as shown above.
         In this i have a doubt like adding a field sy-mandt  in the where condition will increase the Efficiency of program or not.
    regards,
    raghu.

    Hi..
    No doubt the efficency would be affected but from business point of view there will many  things that need to be checked as in:
    If you are viewing data from CDHDR and CDPOS which is client specific then you are not viewing complete data.
    These tables give us and document changes made to a particular object in SAP but if anything is cross client like company code(lets assume) then changes to it wont be visible in all the clients..
    so there can be some key information you can miss out while working on some of the objects.
    else in this case its good to make query cross client.
    regards
    vishal

  • Doubts with control break statements on internal table loops (AT/ENDAT)

    Hi, i've had a couple of doubts for a long while which I hope someone can clarify today:
    1) I know how to use the AT statements, however, i'm not sure I get correctly what this part of help regarding this commands means:
    <i>"The control level structure with internal tables is static. It corresponds exactly to the sequence of columns in the internal table (from left to right). In this context, the criteria according to which you sort the internal table are unimportant."</i>
    I've always sorted the internal table before the control break and it works that way. For example:
    SORT ITAB BY EBELN EBELP.
    LOOP AT ITAB.
      AT NEW EBELN.
    *   Code for the order header
      ENDAT.
    ENDLOOP.
    If I <b>don't</b> sort the internal table, it doesn't work! (i get dupplicated processing). In the example, if i have more than one register with the same EBELN and they're not consecutive, the header gets processed twice. I really don't get that part of the help text.
    2) I know this: <i>"At the start of a new control level (i.e. immediately after AT), the following occurs in the output area of the current LOOP statement:
    All character type fields (on the right) are filled with "*" after the current control level key.
    All other fields (on the right) are set to their initial values after the current control level key."</i>
    My doubt is: WHY is that this way? Because sometimes (most times) I need those fields INSIDE the statement! So when that happened i've solved it in one of three ways:
    LOOP AT ITAB INTO WA_ITAB.
      WA_ITAB_AUX = WA_ITAB.
      AT NEW FIELD.
        WA_ITAB = WA_ITAB_AUX.
    *   ...Rest of the code for the first register
      ENDAT.
    ENDLOOP.
    LOOP AT ITAB INTO WA_ITAB.
      AT NEW FIELD.
        READ TABLE ITAB INDEX SY-TABIX INTO WA_ITAB.
    *   ...Rest of the code for the first register
      ENDAT.
    ENDLOOP.
    * (Without AT)
    LOOP AT ITAB INTO WA_ITAB.
      IF WA_ITAB-FIELD <> FIELD_AUX.
        FIELD_AUX = WA_ITAB_FIELD.
    *   ...Rest of the code for the first register
      ENDIF.
    ENDLOOP.
    Is there any problem with this way of coding? Can be done better?
    Thank you very much in advance.

    Hi..,
    1)
    See if u sort the table on a field on which u r using AT ENDAT .. then all the records which are having the same value for that field will form a group or those reocrds will be at one place.. so when u sort the table for all the records  AT ENDAT  will get executed onli once..
    If u dont sort this table on this field then all these records will be at different places and in between there may be records with different value for this field.. so this AT ENDAT will get executed for each record !!
    2)
    No u cannot use the Right hand fields of the field in the table .. Because these AT events work as Group based operations... So till that field on which AT ENDAT is working it breaks that record into two groups.. One is the left hand fields including that field.. and right hand fields as another group.. and makes the right hand group as stars ****.  Thats y u can observe that even any one field in the left hand group changes the AT ENDAT will get executed  !!!!
    Hope u understood !!!
    regards,
    sai ramesh

  • LOOP DOUBT INSIDE  PACKAGE

    CREATE PACKAGE EMP_PKG AS
    CURSOR EMP_CUR IS
    SELECT EMPNO,DEPTNO,SAL,HIREDATE
    FROM EMP
    WHERE DEPTNO=30;
    PROCEDURE P_EMP;
    PROCEDURE P_GET_SAL(V_EMPNO NUMBER);
    PROCEDURE P_GET_LOC(V_EMPNO NUMBER);
    Now inside my Package Body
    INSIDE THE MAINPROCEDURE P_EMP
    I WILL BE CALLING THE BELOW TWO PROCEDURES
    PROCEDURE P_EMP
    BEGIN
    FOR I IN EMP_CUR LOOP
    P_GET_SAL(I.EMPNO);-- DO I NEED TO LOOP AGAIN IN P_GET_SAL PROC?
    P_GET_LOC(I.DEPTNO);
    END LOOP;
    END;
    NOW WHAT IAM DOING IS
    in my P_GET_SAL Procedure is
    PROCEDURE P_GET_SAL(V_EMPNO NUMBER)
    V_SAL EMP.SAL%TYPE;
    BEGIN
    FOR I IN EMP_CUR LOOP
    SELECT SAL INTO V_SAL FROM EMP
    WHERE EMPNO=I.EMPNO --DOUBT HERE
    END;
    I WANT TO KNOW WHETHER I NEED TO LOOP AGAIN
    HERE OR INSTEAD OF THAT
    PROCEDURE P_GET_SAL(V_EMPNO NUMBER)
    V_SAL EMP.SAL%TYPE;
    BEGIN
    SELECT SAL INTO V_SAL FROM EMP
    WHERE EMPNO =V_EMPNO;
    END;
    SINCE iam calling V_EMPNO WITH CURSOR FROM MY
    MAINPROCEDURE ..
    WILL THE PROCEDURE USES THE CURSOR VALUES
    AND LOOP ITSELF FOR EVERY EMPLOYEE TO
    GET THE SALALRY ?
    PLEASE LET ME KNOW SINCE MY PACKAGE IS MORE THAN 3000
    LINES I cant proceed unless its confirmed i can
    do so ..

    Hi all,
    Thanks for Looking into my Problem
    I Got answer by MySelf ..i dont need to loop again my sub procedures
    if i try to do that iam getting the error
    ERROR at line 1:
    ORA-06511: PL/SQL: cursor already open
    Thank you all once again ..

  • Doubt on Rows and Coloums in BEx Query Designer.

    Hello, Experts.
    I have a Doubt in BEx Query Designer.
    In the Rows I have a Fiscal year Period,  if the user enters the Fiscal year period for e.g. : 001/2006  .  
    in the columns i have  forecast for the Fiscal year period which user entered ( 001/2006 ),   and we have another column pervious ( Prior )fiscal year period ( 001/2005 ). 
    My Questions is ,  as we are Restricting with 001/2006 will the query retrieve the values of 2005 or not?
    Thanks in Advance .
    Sharp

    yes i am  Doing Offest.
    I moved this Fiscal year Period to Free char,   and i Restricted with Pervious Fical Year period and Fical year period .  it worked.  but
    when i kept this in Rows and deleted Previous Fiscal Year period .  it is displaying blanks.   in prior years forecast.
    is it because i am Ristricting it to only fical year period  which user entered
             Colums-->  Forcast ( User Entered year )          Prior year
    Rows
    Fiscal year period
      Fiscal year period( user enterd )
    Thanks

  • Multiple create methods of entity beans in single transcation

    Hi,
    I have some entity beans with CMR. I am managing these entity beans with a Stateful session bean whose transaction type is Container Managed for all its methods.
    In one particular method of this Session bean I am calling two entity bean's create method. i.e I am creating two entity beans through home.create() methods. There are two home.create() methods one after another inside a try catch block.
    I want that the entire operation be under just one transcation so i have also given the transaction attribute as Required for all methods of Session bean and Entity Beans.
    However if i pass invalid parameters to second create method so that it generates exception then still the first create statement is successful and database is updated.
    what i want is that the first create also should be roll backed.
    How can i acheive this through Container Managed Transaction Session Bean?

    Hi Ashwini,
    "Ashwini" <[email protected]> wrote in message news:400291af$[email protected]..
    I have some entity beans with CMR. I am managing these entity beans with a Stateful session bean whose transactiontype is Container Managed for all its methods.
    >
    In one particular method of this Session bean I am calling two entity bean's create method. i.e I am creatingtwo entity beans through home.create() methods. There are two home.create() methods one after another inside a try catch
    block.
    >
    I want that the entire operation be under just one transcation so i have also given the transaction attribute asRequired for all methods of Session bean and Entity Beans.
    >
    However if i pass invalid parameters to second create method so that it generates exception then still the firstcreate statement is successful and database is updated.
    what i want is that the first create also should be roll backed.
    How can i acheive this through Container Managed Transaction Session Bean?o Do you use TXDatasource with your entity beans?
    o In CMT transactions are automatically rolled back only when RuntimeExceptions
    are thrown. What kind of exception is thrown in your case?
    Regards,
    Slava Imeshev

  • Doubt regarding facebook integration for windows phone 8.1 silverlight app?

    Hi,
    I am developing a windows phone 8.1 silverlight application . For my application I integrated the facebook login. For this facebook integration I used the login with facebook app method.
    My doubt is after getting the app id from the dev center , I updated the appid at developers.facebook.com , wmmanifest.xml (In extensions protocol (msft-appid without dashes)) . Or do I need to change the product id in the place holder also , I tried to
    change the productid also but I am getting error like some signature is wrong try with different signature. I am confused how to do it .
    Any help,
    Thanks...
    Suresh.M

    Hi Suresh,
    According to your description, I assume you want to complete facebook configuration in windows phone silverlight app. Please refer to the following link to see how.
    http://facebooksdk.net/docs/phone/config/.
    You can find code sample from
    https://github.com/facebook-csharp-sdk/facebook-winclient-sdk/tree/master/Samples.
    Facebook API is third-party library and it is our of our support range. You can post questions on here.
    https://github.com/facebook-csharp-sdk/facebook-winclient-sdk/issues.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • Infoset doubt

    Dear Gurus,
    i have a doubt regarding use of infoset in BI.
    An infoset consist of , on the left, a DSO containing line items loaded from R/3.
    On the right is a master data attribute loaded data from a user defined datasource based on a transparent table in r/3.
    This master data has a single Key. Its a numeric like serial number field.
    The transaction data in the DSO also has this field as part of the transaction data field (non-key).
    A Left Outer Join is made between the 2 using several fields joining together. However, the key field in the master data is not joined even though both sides has it.  Both this field in each are not joined.
    So, by theory of  a left outer join, All data not found in the master data will still be selected via the infoset.
    I wish to understand :
    1. by a 'join' does it mean its not a union? I assume so. But based on the meaning of left outer join, it sounds to me like a union?
    Correct me if i am wrong.
    2. what is the effect of not joining the master data key field to the same field found in the data part of the transaction data?
    best regards
    Bass

    hi,
    point 1:
    am i right to say
    If all data on the left is picked, and some latest data in the master data is not found in the left, only all the left side data is displayed am i right? so, what is not in the right (master data attr) will not be selected by the infoset?
    left outer join will be more clear with an example to you, suppose you are joining cube and master data to pick attribute value from master data. let us say the master data has below value.
    master data     attribute
    100                ABC
    102               XYZ
    103              DEF
    Now in cube you have data
    cube field
    100
    101
    105
    106
    the infoset wll be returning the value as shown below for different scenarios
    left outer join: all values in cube.
    field    attribute
    100      ABC
    101        #    (no value in master data)
    105       #    (no value in master data)
    106       #    (no value in master data)
    Inner join: common records
    field    attribute
    100       ABC
    Right outer join
    field    attribute
    100                ABC
    102               XYZ
    103              DEF
    point 2:
    am i right to say
    its just slower performance and the rest being similar effect as joining the key field?
    So, if i join the key field it will be faster and the result is the same as not joining the key field of the master data to the transaction data?
    no the join determines the amount of data it will be returning as explained above, you should define the joining conditions based on your business logic, like in the above case if the two fields should have same value and are the comparing criteria then you should join those as it would help in retrieving faster results.regards,
    Arvind.

  • DSO - Key Field doubt?

    Hi All,
    I want to know the functionality of the Key Field in the DSO.
    I know based on the Key Fields(Primary Key) data is pulled to DSO, but please explain me the below scenario
    E.g
    I have 3 records in the Extractor( Generic) and i am pulling data to DSO - Full load.
    Material                 Qty       Date
    100                       20        1-Jan-2010
    100                       30        5-Jan-2010
    100                       10        10-Jan-2010
    In DSO i have only one Key field called 0MAT_NM (Material Number), but i have 3 records in the Extractor , shown above.
    Now my Question is
    On what basis data will be pulled to DSO?
    Whether latest date records will be pulled to DSO or let me know correct method? because i have got material no 100
    but date and Qty is different (means one time it is taking Qty - 30 and date as 1st Jan 2010, other run it is taking differnet).
    Please clear my doubt.
    Regards,
    Nithi.

    in your dso you can have one record per key. keyfigures will be in addition or overwrite option. if in "addition' the value will be the sum of all the values for a given key. in 'overwrite', you'll only keep the last record written to the dso; char are always in overwrite, so you'll keep the last record written to the dso
    M.

Maybe you are looking for

  • WBS budget reduction at the time of PO creation

    Hi, 1. When a PO is created against a WBS element, at this point is there any budget check? If so is it against RELEASED budget or TOTAL BUDGET. 2. If at the time of PO creation the budget check is against TOTAL, does the system check at the time of

  • What is a database in Oracle?

    Hello, After installing the XE version, I can start creating users and tables. Could someone please tell me in which database are these tables stored? Or in fact everything in the db server is stored in one database? If so how could I create another

  • Luminance problem in calibrating a Dell 2005FPW monitor

    How can I reduce the luminance of the subject monitor (an LCD) from a 205 reading to the target reading of 140? I'm using Eye-One Photo with Match 3.6 profiling software. I've reduced the Brightness control to 0, but get that 205 reading. Contrast co

  • Import/Export and Portlet Ids

    Hi everybody, we face the following problem. We have developed a solution for a customer in Oracle Portal. This consists of many portlets. There is one portlet, used many times in the portal, we so call Text Portlet.Its role is to render some text re

  • Location not Listed in a Job Opening

    Hi, Am a beginner of Peoplesoft. We recently set up the Mexico BU and respective locations etc. Now, when I create a new JO for Mexico region, I do not get the list of Locations. Locations where configured with the SHARE set id. I guess am missing so