ORA-06519 while doing transactions

Hi,
I have created a trigger on my transaction table. When a service is booked it is being inserted into two seperate tables. It is working fine, but at some times I am getting following error while recording the transactions.
ORA-06519 Active autonomous transactions detected and rolled back.
Following is the trigger code:
create or replace trigger glstrip_audit
after INSERT or update ON jeevadb.ipservice
for each row
declare
pragma autonomous_transaction;
nurstcode pbswardmast.nurstcode%type;
roomno pbsipregist.currroomno%type;
BEGIN
select b.nurstcode,a.currroomno into nurstcode,roomno from pbsipregist a,pbswardmast b where a.currroomno=b.wardno and a.regno=:new.ipno;
if :new.servcode='006013' then
if inserting then
insert into phindenthd(indentno,indentdate,indenttime,regno,storecd,nurstcode,doctcode,userid,edituser,editdate,status)
values (:new.servslno,:new.servdate,:new.servtime,:new.ipno,'94',nurstcode,:new.orderedby,:new.createdby,:new.editedby,:new.editedon,'P');
insert into phindentdt(indentno,itecode,indentqty)
values (:new.servslno,'OPTGS01',:new.servqty);
elsif updating then
update phindenthd set indentno=:old.servslno,indentdate=:old.servdate,indenttime=:old.servtime,regno=:old.ipno,
storecd='94',nurstcode=nurstcode,doctcode=:old.orderedby,userid=:old.createdby,edituser=:new.editedby,editdate=:new.editedon,status='P'
where regno=:old.ipno and indentno=:old.servslno;
update phindentdt set indentno=:old.servslno,itecode='OPTGS01',indentqty=:new.servqty where indentno=:old.servslno;
end if;
end if;
end;
can you help me in finding the problem?
thanks
satya

Hi and welcome to the forum.
"ORA-06519: active autonomous transaction detected and rolled back
Cause: Before returning from an autonomous PL/SQL block, all autonomous transactions started within the block must be completed (either committed or rolled back). If not, the active autonomous transaction is implicitly rolled back and this error is raised.
Action: Ensure that before returning from an autonomous PL/SQL block, any active autonomous transactions are explicitly committed or rolled back"
http://download.oracle.com/docs/cd/E11882_01/server.112/e10880/e4100.htm#sthref2110
As mentioned by Bartek, Justin and Adrian you've probably forgotten to commit your autonomous transaction and you're abusing the automomous transaction here, don't use 'autonomous triggers', they're nothing but bugs in your code.
My $0.02: you're trying to avoid a mutating table error.
If so, then see: http://asktom.oracle.com/pls/asktom/ASKTOM.download_file?p_file=6551198119097816936
(Here you can read more FAQ's: http://tkyte.blogspot.com/2009/10/httpasktomoraclecomtkyte.html )
and:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:2212445691154

Similar Messages

  • ORA-06519: active autonomous transaction detected and rolled back

    I am getting this error. when i am doing insert from my package Any solution to reslove this issue
    ORA-06519: active autonomous transaction detected and rolled back . thanks
    I am doing select - insert...

    Also, if you have any exception handler sections in the code,
    then you have to add a commit or rollback statement for
    every exception that is handled.

  • Populating Profit Centre Field while doing Transaction for Vendor/Customer

    Dear Experts,
    I have cheked in FSG of GL Code of Vendors/Customers where "Profit Centre " is a optional field.
    I have cheked in OB41 also for posting key relating to vendors/customers "Profit Centre" field is set as optional field.
    We need to make entry in the Profit Centre Field for both Vendors and Customers whicle doing manual posting.
    How can we bring that field which is not populated while doing transaction with posting keys of vedors and customers.
    Regards,
    Alok

    Dear Sayeed,
    I am agree with u, but since in SAP Vendor /Customer Line Item takes automatically profit centre from the other line items.
    Here is an example:-
    We have different profit centre for plant(104001) and coprorate office(106001)
    Customer billing is done at plant then the entry will be:-
    Customer A/c Debit    (by default it will take 104001 profit centre)
    Sales A/c Credit  with Profit Centre 104001
    In Corporate Office We Receive the sales proceeds:-
    In Coming Bank a/c Corporate   Debit  with Profit Centre 106001
    Customer A/c Credit (It will take by default profit centre 106001)
    By this If we genrate Profit Centre Wise Trial Balance then all Customers Debit will lying with Plant Trial
    and Customer Credit Balance will lying in Corporate Treial Balance  giving a mis information to the auditors.
    For solving this we need to populate the Profit Centre field in Customer line item so that while doing the received entry we can selct the Plant Profit Centre (104001) in Customer line item so that the Customer balance become Nil in Plant Trial.
    Hopw you understand our requirement.
    Regards,
    Alok

  • Pipeline function raised ORA-06519: active autonomous transaction detected

    Hi All,
    My name is John and I've got a problem which I need to share with all of you guru and experts. I've created the following pipeline function under the Oracle user ABC:
    CREATE OR replace FUNCTION SomeFunction(p_from_date DATE, p_to_date DATE) RETURN T_TAB_A pipelined
    IS
    PRAGMA autonomous_transaction;
    BEGIN
    DELETE FROM temp_rcm;
    INSERT INTO temp_rcm
    SELECT * FROM int.facility fd,
    int.capacity co
    WHERE co.resource_name = fd.resource_name
    AND co.trade_date = fd.trade_date
    AND co.trade_date BETWEEN p_from_date AND p_to_date;
    COMMIT;
    FOR rec IN (SELECT co.*
    FROM temp_rcm co
    left join int.outage o
    ON ( o.flag = 'Y'
    AND o.reason_flag = 'F'
    AND o.INTERVAL = co.INTERVAL
    AND co.resource_name = o.resource_name )
    ORDER BY co.INTERVAL,
    co.name) LOOP
    pipe ROW (T_A( rec.INTERVAL, rec.trade_date,
    rec.resource_name,rec.day_of_week_long, rec.working_day, rec.peak));
    END LOOP;
    RETURN;
    END SomeFunction;
    I was able to compile and create the SomeFunction function successfully but when I executed it using the following command:
    select * from table(SomeFunction(to_date('01/01/2010',to_date('01/01/2010')));
    I was returned with the Oracle error - ORA-06519: active autonomous transaction detected and rolled back
    I have searched through the web, such Oracle error occurs whenever the function has a missing 'COMMIT' or 'ROLLBACK' command inside an autonomous_transaction. But the fact is I have already included the 'COMMIT;' in the function. I suspected that the error was caused by the tables which I queried against (like int.facility and int.capacity) were all views that belonged to another schema called int. Or is that something that I miss in the function? Thank you for your time and assistance.
    Regards,
    John

    johnwanng wrote:
    Hi Guys,
    Thank you for all your feedback. In addition to your reply, Bill, can you spare some time and provide us a simple example of the steps involved to implement the 'correct' implementation based on the queries that I've used. As I do not understand your vanilla approach. Much appreciated and thank you for the time again.
    Regards,
    JohnIf I had to guess, Billy may have meant something like this (untested):
    CREATE OR REPLACE FUNCTION SomeFunction
    ( p_from_date IN int.facility.trade_date%TYPE
    , p_to_date   IN int.facility.trade_date%TYPE
    RETURN SYS_REFCURSOR
    AS
         rcur     SYS_REFCURSOR;
    BEGIN
         OPEN rcur FOR
              SELECT co.interval
                   , co.trade_date
                   , co.resource_name
                   , co.day_of_week_long
                   , co.working_day
                   , co.peak
              FROM   int.capacity co
              JOIN   int.facility fd        ON fd.resource_name = co.resource_name
                                           AND fd.trade_date    = co.trade_date
              LEFT OUTER JOIN int.outage o  ON o.interval       = co.interval
                                           AND o.resource_name  = co.resource_name
              WHERE  co.trade_date BETWEEN p_from_date AND p_to_date
              AND    o.reason_flag = 'F'
              AND    o.flag        = 'Y'
              ORDER BY co.interval
                     , co.name
         RETURN rcur;
    END;
    /I made the following modifications:
    1. I set the input parameter data types to match that of the table column you are checking against. A good practice to get into.
    2. Removed the autonomous transaction and inserting into a temp table. In Oracle it's a good practice to perform everything in a single SQL statement if possible.
    3. Changed the return data type to a SYS_REFCURSOR
    Hope this helps and provides a good example.

  • Payment Budget Exceeded while doing transaction ABUMN, Message number:BP629

    Dear All,
    i got a problem while doing transaction ABUMN (Asset Transfer), **Error Message: BP629 Payment budget has exceeded"
    Actually we have migrated our system from 4.7 to ECC 6.0 version, in 4.7 we are deactivated assets from FM-Budget checking that time it was working fine, but now after migration system giving this error message,
    Can you please help me is there any setting need to do in Ecc- 6.0 to deacivate Assets from budget check.
    Thanks .....Sudheer

    Thanks for your reply Aleksey,
    At present we are using Format Budgeting, in my previous system we had a simple option to deactivate Asset transactions using Transaction type, but in in ECC 6 , i am not sure where such facility available.
    I gone through whole FM menu but i didn't find any way to do this.
    Can you please suggest where i can deactivate Asset transactions (either using transaction types or even Document type also fine).
    Thanks ...Sudheer

  • ORA-22921 while doing impdp

    hi all,
    I am doing a table import using impdp and getting the following error.
    both the Source and Target database have the same Oracle Anyversion 11.2.0.1.0,same Characterset and same IBM AIX 5.3 Servers.
    Below is the parfile:
    Userid=system
    DUMPFILE=directory4:dump01.dmp,directory4:dump02.dmp,dump03.dmp,dump04.dmp,directory4:dump05.dmp,directory5:dump06.dmp
    logfile=xxxxxxxxxxxxxxx.log
    directory=dump1
    remap_schema=xxxxxxxxxxxxxx:xxxxxxxxxxxxxx
    remap_tablespace=xxxxxxxxxxxxxx:xxxxxxxxxxxxxx
    Table_exists_action=TRUNCATE
    remap_tablespace=xxxxxxxxxxxxxx:xxxxxxxxxxxxxx
    remap_tablespace=xxxxxxxxxxxxxx:xxxxxxxxxxxxxx
    LOG:
    ++Import: Release 11.2.0.1.0 - Production on Sat May 21 21:17:10 2011++
    ++Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.++
    ++;;;++
    ++Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production++
    ++With the Partitioning, Real Application Clusters, OLAP, Data Mining++
    ++and Real Application Testing options++
    ++Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded++
    ++Starting "SYSTEM"."SYS_IMPORT_FULL_01": system/******** parfile=s_c.par++
    ++Processing object type TABLE_EXPORT/TABLE/TABLE++
    ++ORA-39153: Table "Schema_Name"."Table_Name" exists and has been truncated. Data will be loaded but all dependent metadata wi++
    ++ll be skipped due to table_exists_action of truncate++
    ++Processing object type TABLE_EXPORT/TABLE/TABLE_DATA++
    ++ORA-31693: Table data object "Schema_Name"."Table_Name":"Partition_name" failed to load/unload and is being skipped du++
    ++e to error:++
    ++ORA-29913: error in executing ODCIEXTTABLEOPEN callout++
    ++ORA-29400: data cartridge error++
    ++ORA-02373: Error parsing insert statement for table "Schema_Name"."Table_Name".++
    ++ORA-22921: length of input buffer is smaller than amount requested++
    ++......++
    ++......++
    ++ORA-31693: Table data object "Schema_Name"."Table_Name":"Partition_name" failed to load/unload and is being skipped du++
    ++e to error:++
    ++ORA-29913: error in executing ODCIEXTTABLEOPEN callout++
    ++ORA-29400: data cartridge error++
    ++ORA-02373: Error parsing insert statement for table "Schema_Name"."Table_Name".++
    ++ORA-22921: length of input buffer is smaller than amount requested++
    ++. . imported "Schema_Name"."Table_Name":"Partition_name" 0 KB 0 rows++
    ++. . imported "Schema_Name"."Table_Name":"Partition_name" 0 KB 0 rows++
    ++Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT++
    ++Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX++
    ++Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT++
    ++Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS++
    ++Processing object type TABLE_EXPORT/TABLE/TRIGGER++
    ++Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS++
    ++Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 23 error(s) at 21:17:24++
    Any suggestions?

    You have used directory=dump1 but instead of dump1 i think it should be directory 4..
    And also You need to get whoever created the directory to grant you user access (read/write) to that directory

  • Error while doing Transaction data loading from ECC to BW

    HI,
    I faced error in data records so i corrected it manually by going PSA Maintenance. then now when i am trying to schedule data laod by going to that Data source then right click on Manage then select Request which i have updated with correct records. then Again right click-->UPDATE WITH SCHEDULER .now next screen is SCHEDULER(PSA SUBSQUENT UPDATE) here i am not getting any Data Target means data target field is disabled  so i cannot schedule it for load.
    Any solution for this error.
    Thanks
    Nilesh Pathak

    Hi,
    I guess you have not deleted the request from the InfoCube 'Manage' Screen. If the request is already updated to your InfoCube/ODS ,then it will not show the Data Target in PSA Scheduler.
    You can try to re-load the data using 'Only PSA'  in the InfoPackage and then correct the errors and load the data using Update option from the Manage screen.
    Thanks

  • Why ORA-06519 ?

    I have shown my proc at high level below. While executing this proc for some reason i get Primary key violation on table my_tab_mf during insert, so the procedure as expected jumps to EXCEPTION block. When it comes to proc My_PKG_MF.LOG_ERROR in the exception block i get the error: ORA-06519: active autonomous transaction detected and rolled back. The proc My_PKG_MF.LOG_ERROR is an autonomous proc which has COMMIT inside it. Can somebody help me understand why i get this error though i have a COMMIT in the autonomous proc? The proc My_PKG_MF.LOG_ERROR calls another proc: MASTER.my_pkg_master.log_db_err in another schema called MASTER.
    Im in 10gR2 version.
    procedure proc_mf
    as
    v_proc_name varchar2(50) := 'proc_mf';
    Err_Code varchar2(50);
    Err_Desc varchar2(500)
    begin
    delete from table my_tab_mf;
    insert into my_tab_mf (col1,col2)
    select col1, col2 from a,b;
    EXCEPTION
    WHEN OTHERS
    THEN
           ROLLBACK;
           Err_Code := SQLCODE;
           Err_Desc := SUBSTR(SQLERRM, 1, 256);
           My_PKG_MF.LOG_ERROR(v_proc_name
                                             ,To_Char(Err_Code)
                                             ,Err_Desc
    end proc_mf;
    -- Contents of AUTONOMOUS proc My_PKG_MF.LOG_ERROR
    procedure LOG_ERROR(proc_name in varchar2 ,err_code in varchar2 ,err_desc in varchar2)
    is
    PRAGMA AUTONOMOUS_TRANSACTION;
    begin
    --logging the error into the log table
    insert into my_log_mf
    values(proc_name ,err_code,err_desc);
    --calling another Error logging proc which is in another schema called Master
    MASTER.my_pkg_master.log_db_err(proc_name ,err_code,err_desc);
    COMMIT;
    end LOG_ERROR;Edited by: michaelrozar17 on Mar 20, 2013 2:31 AM

    MASTER.my_pkg_master.log_db_err is not an autonomous proc and it does not have a commit in it. The calling autonomous procedure My_PKG_MF.LOG_ERROR has commit in it, which commits the transaction happened in MASTER.my_pkg_master.log_db_err.
    -- Contents of MASTER.my_pkg_master.log_db_er
    procedure log_db_er(proc_name in varchar2 ,err_code in varchar2 ,err_desc in varchar2)
    as
    begin
    insert into master_err_log(col1, col2,col3)
    values(proc_name,err_code ,err_desc );
    end log_db_er;

  • Error while doing the Usage Decision in transaction QA32

    Hello Friends,
    While doing the goods receipt for customer returns from customer, system generated a inspection lot with inspection type 06.
    So in QA32 transaction, system is showing that inspection lot, but in same screen, against the column InspPlan: Material, system is not showing any entry.
    Later on after analysis, i found that no inspection plan was assinged to the material, Plant for which that inspection lot was created. When i checked that inpection lot in transaction QA03, in Insp. Specifications tab, agaisnt the Assigned Specification section, system was not showing any entry in fields Group, Group Counter, Plant, Usage.
    And against that inspection lot,status CRTD, PREQ, CHCR are active.
    Because of  which, when user is trying to do the UD against this lot system throwing the error message as Status check error.
    When i checked again i found that status CRTD is throwing the error message.
    Hence friend, i want to do the Usage decision  for that inspection lot than how to do?
    Now user has assigned the material, plant to the inspection plan in QP02.
    Should i go to QA02 transaction, and in Insp. Specification tab, for fields group, group counter, usage, Plant, maintain the values?
    Will this allow me to do the usage decision against the inspection lot which got generated when no inspection plan was assingned to that material, plant?
    Waiting for your valuable inputs.

    For Result Recording and Ud the inspection lot status must be REL as u told ur status is CRTD it Mean Some master
    is missing in inspection lot,generally inspection plan for that u run QA02 enter inspection lot no go to specification tab
    there a button assigned specification there click on that as u click on button u will find that plan for above material copied to lot and it will show u plan detail line group and group counter no.
    then go to next screen Sample if sample management is active and click on sample then system will calculate sample size then save ur lot. it would get Status As REL now ui can enter result or take UD
    for QM setting Refer
    http://sap-questions.blogspot.com/

  • ABAP DUMP While doing GI Through Zmovement type in MIGO Transaction

    Hi ,
    We have migrated from FM FBS to BCS from 12.01.2015.
    And we are using 101 profile with GR and IR update.
    We received blow ABAP Dump while doing the GI through MIGO Transaction.
    Can you please help on this.
    Dump detatils
    Category               ABAP Programming Error
    Runtime Errors         MESSAGE_TYPE_X
    ABAP Program           CL_BUAVC_ENTRY================CP
    Application Component  PSM-FM-BCS-AC
    Date and Time          13.01.2015 09:10:00
    Operating system..... "AIX 1 6, AIX 1 7"                                                      |
    |                                                                                                  |
    |    Memory consumption                                                                            |
    |    Roll.... 0                                                                                    |
    |    EM...... 33518336                                                                             |
    |    Heap.... 0                                                                                    |
    |    Page.... 196608                                                                               |
    |    MM Used. 21989120                                                                             |
    |    MM Free. 3145840                                                                              |
    |User and Transaction                                                                              |
    |    Client.............. 256                                                                      |
    |    User................ "MM_BUX00_ZZ"                                                            |
    |    Language key........ "R"                                                                      |
    |    Transaction......... "MIGO_GI "                                                               |
    |    Transaction ID...... "54AEDD9E3EE60710E10080000A15C616"                                       |
    |                                                                                                  |
    |    EPP Whole Context ID.... "54B35F7088300910E10080000A15C616"                                   |
    |    EPP Connection ID....... 00000000000000000000000000000000                                     |
    |    EPP Caller Counter...... 0                                                                    |
    |                                                                                                  |
    |    Program............. "CL_BUAVC_ENTRY================CP"                                       |
    |    Screen.............. "SAPLMIGO 0001"                                                          |
    |    Screen Line......... 18                                                                       |
    |    Debugger Active..... "none"                                                                   |
    |Information on where terminated                                                                   |
    |    Termination occurred in the ABAP program "CL_BUAVC_ENTRY================CP" -                 |
    |     in "POST".                                                                                   |
    |    The main program was "SAPLMIGO ".                                                             |
    |                                                                                                  |
    |    In the source code you have the termination point in line 82                                  |
    |    of the (Include) program "CL_BUAVC_ENTRY================CM00J".                               |
    |Source Code Extract                                                                               |
    |Line |SourceCde                                                                                   |
    |   52|*--- method has provided some errors!):                                                     |
    |   53|                                                                                            |
    |   54|* Note 1499464:                                                                             |
    |   55|*      IF cl_abap_aab_utilities=>is_active( id = 'BUAVC_GROUP'                              |
    |   56|*       mode_assert_dump = 'X' ) = 'X'.                                                     |
    |   57|      MOVE 'X' TO l_flg_dump.                                                               |
    |   58|*      ENDIF.                                                                               |
    |   59|                                                                                            |
    |   60|*--- Check if the entry buffer of the AVC ledger contains data records                      |
    |   61|*--- from previous COLLECT events:                                                          |
    |   62|      IF ( l_f_avc_ledger-ref_ledger->entry_buffer_lines_count( ) > 0 ).                    |
    |   63|*--- Sorry, must dump:                                                                      |
    |   64|        ASSERT ID buavc_group                                                               |
    |   65|               FIELDS c_avc_text 'POSTING_NOT_ALLOWED'                                      |
    |   66|               CONDITION l_flg_dump <> 'X'.                                                 |
    |   67|        IF l_flg_dump = 'X'.                                                                |
    |   68|          MESSAGE x002(buavc) WITH c_avc_text space                                         |
    |   69|                                   'POSTING_NOT_ALLOWED' space.                             |
    |   70|        ENDIF.                                                                              |
    |   71|      ENDIF.                                                                                |
    |   72|    ENDIF.                                                                                  |
    |   73|*----------------------------------------------------------------------                     |
    |   74|* Note 1666556:                                                                             |
    |   75|    IF me->g_commit_before_post EQ 'X'.                                                     |
    |   76|*--- An unauthorized COMMIT WORK occurred before calling this POST                          |
    |   77|*--- method. This COMMIT WORK has refreshed the AVC entry buffer and                        |
    |   78|*--- would thus create a database inconsistency!                                            |
    |   79|      MOVE 'X' TO l_flg_dump.                                                               |
    |   80|      IF l_flg_dump = 'X'.                                                                  |
    |   81|*--- Sorry, must dump (see note 1666556):                                                   |
    |>>>>>|        MESSAGE x002(buavc) WITH c_avc_text space                                           |
    |   83|                                 'INVALID_COMMIT' space.                                    |
    |   84|      ENDIF.                                                                                |
    |   85|    ENDIF.                                                                                  |
    |   86|*----------------------------------------------------------------------                     |
    |   87|                                                                                            |
    |   88|                                                                                            |
    |   89|*--- Call the POST method of the corresponding ledger instance:                             |
    |   90|    CALL METHOD l_f_avc_ledger-ref_ledger->post                                             |
    |   91|      EXPORTING                                                                             |
    |   92|        i_ref_appl_log = me->g_ref_appl_log                                                 |
    |   93|        i_doc_ref      = i_doc_ref.                                                         |
    |   94|                                                                                            |
    |   95|  ENDLOOP.                                                                                  |
    |   96|                      
    Thanks Advance.
    SAM

    Hi Sam,
    Please check if there is any commit statement written in badi or enhancement before calling this method for posting which is leading to update termination.
    Regards,
    Prakash.

  • Error  While doing ABT1N transaction

    Hi,
    I am facing the below error while doing ABT1N in Asset Accounting.Please help me in fixing this Issue.
    Error Message -No depreciation area for receiving the revenue
    Message no.AAPO149
    Diagnosis
    You tried to post a retirement on asset 1000 100007-0.You entered transaction type 300,in which the retirement with revenue indicator is not set
    You tried to transfer asset 1000 100007-0.According to transfer variant 0001,none of the areas on the asset uses a transaction type for retirement with revenue
    In  both of these cases, you are not allowed to enter revenue or make specifications for the determination of revenue.
    Proceedure
    Check the transfer variant  and check your entry
    please do the needful
    Thanks
    Supriya

    Hello,
    You will have a check box for the same.
    Double click on transaction type, you will see the check box for revenue.
    Otherwise, tomorrow I will get back to you once I am in front of the system.
    Regards,
    Ravi
    Edited by: Ravi Sankar Venna on May 5, 2009 7:53 PM

  • Balance in Transaction currency while doing MIGO

    While doing MIGO, getting the error '' Balance in Transaction Currency'' and showing the total of Excise and Cess amounts.
    Urgent issue. Appreciate if you could respond asap
    thanks
    Sridevi

    hi
    sridevi,
    pls verify the raw material inventory account or the GR/IR clearing account, u might have checked only balances in local currency, or it could be in raw material master records, where in u might have selected the foreign currency valuation
    cheers
    bala reddy

  • While doing MIGO transaction system showing error: Check table169P the entr

    Hi experts,
    while doing MIGO transaction system showing error: Check table169P the entry BP01 does not exit.
    pls do needful.
    Thanks&Regards
    sreenivas.p

    Hi,
    Please specify Whether you are doing Blocking of Invoices or what?
    As the T169P is A Parameters Invoice Verification, so you can check the values for T169P table in SE16 so that you will get Clear idea regarding  company code BP01 in which the stochastic block is active with Threshold value for stochastic block...
    Please check....
    For maintaining Entries please go to OMRG maintain Company code and Threshold value as per client requirement so that This will specifies the degree of probability that an invoice is stochastically blocked.
    Regards,
    Ninad Kshirsagar

  • ORA-31684: Object type PACKAGE_BODY: already exists while doing Import

    Hello,
    While doing IMPDP actvity i am getting messages like ORA-31684: Object type PACKAGE_BODY:"APPS"."AZ_DELETE" already exists.
    Complete Import log file, same messages were encountered like already exists .
    Can you please let us know, whether it is ignorable, beacuse object already exists Or any workaround.
    Thanks,
    DBA

    Can you please let us know, whether it is ignorable, beacuse object already exists Or any workaroundI wouldn't say its ignorable.We don't know if the package body is same or not.Was you requirement to import full schema? If so did you drop all the objects or schema and then imported?
    Anand

  • ORA-02049: timeout: distributed transaction waiting for lock

    Hi,
    My name is Guneet and I'm working on an application running on BEA Weblogic Server 9.2 running on a Red Hat Linux box using Oracle 10g as the database. My problem is that recently our code started getting the following exception while updating a database table.
    java.sql.SQLException: [BEA][Oracle JDBC Driver][Oracle]ORA-02049: timeout: distributed transaction waiting for lock
    Application Details
    * Using Stateless Session EJB
    * Only one Business method in this EJB with transaction attribute set to "required"
    * This method executes two select queries & one update query
    * We are using JDBC to access the database.
    * We have configured a Data Source & are using it to get a database connection.
    * Weblogic's Oracle Driver is being used.
    More details
    * The application has been running well since a month.
    * Two days ago,the update query failed with the above error.
    * At that time, a single client was accessing the system.
    * Once this problem occurs, it starts appearing frequently.
    * Eventually a request to get a connection from the Data Source times out & the exception copied at the end is thrown
    * At this stage the application gets stuck and all requests trying to get a connection end up with this exception.
    * Fortunately, Restarting the Weblogic Server gets us out of this problem and transactions resume normally.
    Now my questions are
    # Why is this error happening & what does it mean?
    # It looks like the second exception (unable to get a connection from ds) is an after effect of the first problem (ORA-02049) once it appears for a couple of times. Can somebody validate this?
    # Though I don't understand JTA well but I don't think this application needs distributed transactions so, I'm thinking of modifying the driver type to non-XA oracle driver. Any advise/pointers/comments on this front is welcome !!!!!!!!
    Thanks
    Guneet Sahai
    Exception Trace
    Dec 27, 2006 4:47:50 PM | com.gisil.themis.db | SEVERE | Unable to load merchant DEL = 911168900164. Reason - java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XAResource.XAER_RMERR start() failed on resource 'themis-ds': XAER_RMERR : A resource manager error has occured in the transaction branch
    javax.transaction.xa.XAException: Unexpected error during start for XAResource 'themis-ds': Transaction timed out after 29 seconds
    BEA1-252DE51AC930078CA638
    at weblogic.jdbc.wrapper.XA.createException(XA.java:103)
    at weblogic.jdbc.jta.DataSource.start(DataSource.java:753)
    at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1182)
    at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1115)
    at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:274)
    at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:497)
    at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:429)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1408)
    at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1332)
    at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:440)
    at weblogic.jdbc.jta.DataSource.connect(DataSource.java:396)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:359)
    at com.gisil.themis.db.impl1.DbManagerImpl.isPinValid(DbManagerImpl.java:872)
    at com.gisil.themis.ejb.ThemisBean.isPinValid(ThemisBean.java:185)
    at com.gisil.themis.ejb.Themis_aqqc4k_EOImpl.isPinValid(Themis_aqqc4k_EOImpl.java:207)
    at com.gisil.themis.ejb.Themis_aqqc4k_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:403)
    at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)
    at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1413)
    at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1332)
    at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:440)
    at weblogic.jdbc.jta.DataSource.connect(DataSource.java:396)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:359)
    at com.gisil.themis.db.impl1.DbManagerImpl.isPinValid(DbManagerImpl.java:872)
    at com.gisil.themis.ejb.ThemisBean.isPinValid(ThemisBean.java:185)
    at com.gisil.themis.ejb.Themis_aqqc4k_EOImpl.isPinValid(Themis_aqqc4k_EOImpl.java:207)
    at com.gisil.themis.ejb.Themis_aqqc4k_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:403)
    at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)
    at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

    guneet sahai wrote:
    Hi,
    My name is Guneet and I'm working on an application running on BEA Weblogic Server 9.2 running on a Red Hat Linux box using Oracle 10g as the database. My problem is that recently our code started getting the following exception while updating a database table.
    java.sql.SQLException: [BEA][Oracle JDBC Driver][Oracle]ORA-02049: timeout: distributed transaction waiting for lock
    Application Details
    * Using Stateless Session EJB
    * Only one Business method in this EJB with transaction attribute set to "required"
    * This method executes two select queries & one update query
    * We are using JDBC to access the database.
    * We have configured a Data Source & are using it to get a database connection.
    * Weblogic's Oracle Driver is being used.
    More details
    * The application has been running well since a month.
    * Two days ago,the update query failed with the above error.
    * At that time, a single client was accessing the system.
    * Once this problem occurs, it starts appearing frequently.
    * Eventually a request to get a connection from the Data Source times out & the exception copied at the end is thrown
    * At this stage the application gets stuck and all requests trying to get a connection end up with this exception.
    * Fortunately, Restarting the Weblogic Server gets us out of this problem and transactions resume normally.
    Now my questions are
    # Why is this error happening & what does it mean?
    # It looks like the second exception (unable to get a connection from ds) is an after effect of the first problem (ORA-02049) once it appears for a couple of times. Can somebody validate this?
    # Though I don't understand JTA well but I don't think this application needs distributed transactions so, I'm thinking of modifying the driver type to non-XA oracle driver. Any advise/pointers/comments on this front is welcome !!!!!!!!
    Thanks
    Guneet SahaiHi Guneet. If you want to debug the JTA issue, I suggest opening an official
    support case. They will lead you through producing the JTA debug information.
    However, I believe you are correct that the transaction you describe is
    completely doable with a simple local transaction, so if you were to alter
    your pool to use the non-XA driver, it would probably be faster, simpler,
    and just work.
    Let me know...
    Joe
    >
    Exception Trace
    Dec 27, 2006 4:47:50 PM | com.gisil.themis.db | SEVERE | Unable to load merchant DEL = 911168900164. Reason - java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XAResource.XAER_RMERR start() failed on resource 'themis-ds': XAER_RMERR : A resource manager error has occured in the transaction branch
    javax.transaction.xa.XAException: Unexpected error during start for XAResource 'themis-ds': Transaction timed out after 29 seconds
    BEA1-252DE51AC930078CA638
    at weblogic.jdbc.wrapper.XA.createException(XA.java:103)
    at weblogic.jdbc.jta.DataSource.start(DataSource.java:753)
    at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1182)
    at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1115)
    at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:274)
    at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:497)
    at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:429)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1408)
    at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1332)
    at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:440)
    at weblogic.jdbc.jta.DataSource.connect(DataSource.java:396)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:359)
    at com.gisil.themis.db.impl1.DbManagerImpl.isPinValid(DbManagerImpl.java:872)
    at com.gisil.themis.ejb.ThemisBean.isPinValid(ThemisBean.java:185)
    at com.gisil.themis.ejb.Themis_aqqc4k_EOImpl.isPinValid(Themis_aqqc4k_EOImpl.java:207)
    at com.gisil.themis.ejb.Themis_aqqc4k_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:403)
    at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)
    at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1413)
    at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1332)
    at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:440)
    at weblogic.jdbc.jta.DataSource.connect(DataSource.java:396)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:359)
    at com.gisil.themis.db.impl1.DbManagerImpl.isPinValid(DbManagerImpl.java:872)
    at com.gisil.themis.ejb.ThemisBean.isPinValid(ThemisBean.java:185)
    at com.gisil.themis.ejb.Themis_aqqc4k_EOImpl.isPinValid(Themis_aqqc4k_EOImpl.java:207)
    at com.gisil.themis.ejb.Themis_aqqc4k_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:403)
    at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)
    at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

Maybe you are looking for