Slow WFBG for deferred activities

Dear All,
EBS: 12.1.0.3 - Shared Multi Node
DB: 11.2.0.2 - RAC
OS: RHEL x86-64 5.5
In our PROD system we have 3 WFBG schedulers. Below are the configurations:
REQUEST_ID REQUESTED_BY P USER_CONCURRENT_PROGRAM_NAME                  
Arguments            
EVERY SO_OFTEN                  
RESUBMIT_END_DATE
   8289882       
0 P Workflow Background Process                   
, , , N, Y, N            
1 HOURS
   8287054       
0 P Workflow Background Process                   
, , , N, N, Y            
1 DAYS
   8290413       
0 P Workflow Background Process                   
, , , Y, N, N            
5 MINUTES
Currently, we have performance issue with WFBG for the deferred activities. Last time it completed in almost 8 Hours. From v$active_session_history, below database events are captured:
select sql_id, event, sum(time_waited) from v$active_session_history where session_id=715 and
sample_time between
    to_date('09-DEC-13 12:30:00','DD-MON-YY HH24:MI:SS')
    and
    to_date('09-DEC-13 15:00:00','DD-MON-YY HH24:MI:SS')
group by sql_id, event
having sum(time_waited) > 0
order by sum(time_waited);
SQL_ID        EVENT                          SUM(TIME_WAITED)
56ubx75p2k7x5 db file sequential read                    1693
aug9kqdfu0s6p gc cr multi block request                  5036
66tmsr3446uqn db file sequential read                    5948
9dzhn01z3qy3b Disk file operations I/O                   7048
65qczrm0turbh db file sequential read                    8076
aug9kqdfu0s6p db file parallel read                      8543
1pmvmpmhdjdrk db file sequential read                   12409
ccprbqfuu8wb1 db file sequential read                   16375
dq5v9g4z9jbrq db file sequential read                   18043
0fxqsqwhkn03b db file sequential read                   22790
aug9kqdfu0s6p db file scattered read                    43602
aug9kqdfu0s6p db file sequential read                   65505
d02kbfjwq7ywv db file sequential read                   89022
9dzhn01z3qy3b direct path read                         167570
9n126p922amjm direct path read                         173267
aug9kqdfu0s6p direct path read                         282216
d02kbfjwq7ywv direct path read                         330143
9dzhn01z3qy3b db file sequential read                 2588002
18 rows selected.
SQL Plan for SQL_ID 9dzhn01z3qy3b is as below:
SELECT RILA.ROWID , RILA.TRX_DATE , RILA.INTERFACE_LINE_ATTRIBUTE1 ,
OOLA.INVOICED_QUANTITY , OOHA.REQUEST_DATE FROM RA_INTERFACE_LINES_ALL
RILA , OE_ORDER_LINES_ALL OOLA , OE_ORDER_HEADERS_ALL OOHA WHERE
RILA.INTERFACE_LINE_ATTRIBUTE6 = TO_CHAR(OOLA.LINE_ID) AND
RILA.INTERFACE_LINE_ATTRIBUTE6 = :B1 AND RILA.INTERFACE_LINE_CONTEXT =
'ORDER ENTRY' AND OOLA.LINE_CATEGORY_CODE = 'RETURN' AND OOHA.HEADER_ID
= OOLA.HEADER_ID
| Id  | Operation                      | Name                       | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT               |                            |       |       |       | 17483 (100)|          |
|   1 |  NESTED LOOPS                  |                            |       |       |       |            |          |
|   2 |   NESTED LOOPS                 |                            |     1 |    85 |       | 17483   (2)| 00:03:30 |
|   3 |    MERGE JOIN                  |                            |     1 |    72 |       | 17482   (2)| 00:03:30 |
|   4 |     TABLE ACCESS BY INDEX ROWID| RA_INTERFACE_LINES_ALL     |     1 |    51 |       |  1512   (2)| 00:00:19 |
|   5 |      INDEX FULL SCAN           | XX01_RA_INTERFACE_LINES_N7 |     2 |       |       |  1511   (2)| 00:00:19 |
|   6 |     SORT JOIN                  |                            | 39404 |   808K|  2808K| 15970   (2)| 00:03:12 |
|   7 |      TABLE ACCESS FULL         | OE_ORDER_LINES_ALL         | 39404 |   808K|       | 15710   (2)| 00:03:09 |
|   8 |    INDEX UNIQUE SCAN           | OE_ORDER_HEADERS_U1        |     1 |       |       |     0   (0)|          |
|   9 |   TABLE ACCESS BY INDEX ROWID  | OE_ORDER_HEADERS_ALL       |     1 |    13 |       |     1   (0)| 00:00:01 |
Note:
We already added index,XX01_RA_INTERFACE_LINES_N7, on AR.RA_INTERFACE_LINES_ALL as suggested by Metalink Engineer.
But, based on the SQL Plan, it's still doing FTS on OE_ORDER_LINES_ALL.
Also WF tables are very huge since some parents are not close yet since they still have open child items (Purging is scheduled everyday to keep 14days runtime data).
SQL> select table_name, num_rows from dba_tables where table_name in ('WF_ITEM_ATTRIBUTE_VALUES','WF_ITEM_ACTIVITY_STATUSES','WF_NOTIFICATION_ATTRIBUTES');
TABLE_NAME                       NUM_ROWS
WF_ITEM_ACTIVITY_STATUSES         3863143
WF_ITEM_ATTRIBUTE_VALUES          6350137
WF_NOTIFICATION_ATTRIBUTES         156220
Our questions are:
1. Should we change the interval of this WFBG. 5 minutes are suggested in MOS ID, but is it too frequent?
2. If 5 minutes are normal, is the performance issue in WFBG deferred activity  caused by huge WF tables?
3. Should we add another index on OE_ORDER_LINES_ALL table to reduce the wait time?
Kind Regards,
Abip

We already added index,XX01_RA_INTERFACE_LINES_N7, on AR.RA_INTERFACE_LINES_ALL as suggested by Metalink Engineer.
But, based on the SQL Plan, it's still doing FTS on OE_ORDER_LINES_ALL.
Please update the SR with the above.
Please see:
Recommended Schedule For Workflow Background Process For Order Management (Doc ID 971925.1)
How Often or Frequent Should You Run Workflow Background Process to Improve Performance for Deferred OEOL? (Doc ID 1308607.1)
Order Management (OM) Sales Order Line Frequently Asked Questions (FAQ) (Doc ID 1308685.1)
And,
Deferred Workflow Transactions Performance - Invoice Interface (Doc ID 1567675.1)
Workflow Background Process Hangs on Deferred = Yes and OM Order Line (Doc ID 817642.1)
Worfklow Background Performance on R12.0.6 for OEOL When Invoicing (Doc ID 760976.1)
Workflow Background Engine Taking Lots Of System Resources (Doc ID 1337496.1)
For production issues, we do recommend logging SRs with Oracle support.
Thanks,
Hussein

Similar Messages

  • Parallel execution of deferred activities

    Dear Workflow experts,
    I have a process definition where I set the cost of an activity
    to 50, so that it is always deferred by the WF engine. It's a
    really costly activity, that takes up to 6 hours to get done
    (it's a "function"). About five process instances (items) are
    launched every day. I scheduled the Background Agent to run once
    a day for processing those activities in background.
    Everything works fine, except for one reason: I would like that
    all the deferred activities were executed concurrently, since
    they are independent to each other. But the Workflow
    Engine "serializes" the execution, running one item at a time.
    Is there any way of specifying that I would like the Background
    Agent to process the items concurrently?
    I thought about running more than one instance of the WF
    Background Agent simultaneously. Would it work? Is there any
    concurrency issue? Further: is there any way for me to specify
    that each instance of the Background Agent must process an
    specific item (specifying the item KEY)?
    My platform is Oracle 8.1.6, Workflow 2.5.1, Solaris.
    I would appreciate your help, thank you.
    Daniel Viero
    iProcess Solugues em Tecnologia
    Porto Alegre, RS - Brazil

    You can run the Background Engine in parallel with it self. You
    can dedicate background engines to run by Item Type, to process
    just deferred activities and/or time out activities, activity
    min/max cost.
    Also, Oracle Workflow 2.6 has been available for 8.1.6/8.1.7
    customers since the Jan 2001.
    Dear Workflow experts,
    I have a process definition where I set the cost of an activity
    to 50, so that it is always deferred by the WF engine. It's a
    really costly activity, that takes up to 6 hours to get done
    (it's a "function"). About five process instances (items) are
    launched every day. I scheduled the Background Agent to run once
    a day for processing those activities in background.
    Everything works fine, except for one reason: I would like that
    all the deferred activities were executed concurrently, since
    they are independent to each other. But the Workflow
    Engine "serializes" the execution, running one item at a time.
    Is there any way of specifying that I would like the Background
    Agent to process the items concurrently?
    I thought about running more than one instance of the WF
    Background Agent simultaneously. Would it work? Is there any
    concurrency issue? Further: is there any way for me to specify
    that each instance of the Background Agent must process an
    specific item (specifying the item KEY)?
    My platform is Oracle 8.1.6, Workflow 2.5.1, Solaris.
    I would appreciate your help, thank you.
    Daniel Viero
    iProcess Solugues em Tecnologia
    Porto Alegre, RS - Brazil

  • I have separate photo albums for different activities (Christmas, Rome vacation, etc. Is there a way to temporarily freeze the albums so misc. photos don't accidentally get added to that album..

    I have separate photo albums for different activities (Christmas, Rome vacation, etc.) and drag respective photos in appropriate albums.  As time passes, I find that I pictures from other albums accidentally added to the various albums.  Is there a way to lock the album when I am done so changes can be made but only if I intentionally mean to do so?

    No
    What ever you drag to an album is added to it
    You can suggest a feature rto Apple - iPhoto menu ==> provide iPhoto feedback
    LN

  • Slow performance for large queries

    Hi -
    I'm experiencing slow performance when I use a filter with a very large OR clause.
    I have a list of users, whose uid's are known, and I want to retrieve attributes for all users. If I do this one at a time, I pay the network overhead, and this becomes a bottleneck. However, if I try to get information about all users at once, the query runs ridiculously slow - ~ 10minutes for 5000 users.
    The syntax of my filter is: (|(uid=user1)(uid=user2)(uid=user3)(uid=user4).....(uid=user5000))
    I'm trying this technique because it's similar to good design for oracle - minimizing round trips to the database.
    I'm running LDAP 4.1.1 on a Tru64 OS - v5.1.

    This is a performance/tuning forum for iPlanet Application Server. You'd have better luck with this question on the Directory forum.
    The directory folks don't have a separate forum dedicated to tuning, but they answer performance questions in the main forum all of the time.
    David

  • Document splitting error for deferred tax transfer document

    Hello,
    We are into ECC 6.00 and we have activated the new gl concept and profit center is a mandatroy for any transaction.
    Now we are implementing Deferred tax functionality to our client and We are performing UAT for the same.When I am performing customer invoice with multiple cost assignments with deferred tax code system is posting the invoice and same I cleared with payment,while running the deferred tax program(RFUMSV50) system genarating batch input session instead of posting the transfer document.
    I am trying to running the batch input session through transaction code SM35 and It's giving error of enter profit center in line item 001.
    reason is VAT output account is not splitting different profit centers in invoice.
    We can created default profit center for deferred tax account but our client requirement is system has to pick the profit center from Invoice.
    Could you some body help me how can I resolve this issue.
    Please help me for resolving this issue.
    Thanks in advance.
    Regards,
    Satya

    Hi,
    We have checked with SAP and it's standard functionality of defferred tax program and it will not split the profit center.
    Presently we are processing such type of invoices manually transfering deferred tax account to VAT output account.
    Regards,
    Satya

  • PS migration: How to stop auto-creation of PR for completed activities?

    We are migrating project master & transactional data from R/3 4.7 to ECC5. In the old system, majority of the ext. activities in our projects already carries the status REL. Purchase Requisition was auto-created > PO done > GR/IR done > actual cost for the ext. activity already posted into the project.
    In our migration effort, we are transferring the whole project structure & master data from the old 4.7 to ECC5 and subsequently updating the system & user statuses of the whole project structure.
    How can we stop the system from auto-creating a PR again when the statuses are updated for those activities that are already completed, i.e. actual cost posted, as in 4.7 system?
    We thought of using the logic if a PO exist for the activity in the 'old' system, then the field AFVGD-AUDISP (Res/Pur.req) for the activity in CJ20N should be set to 'Never'. However, my ABAPer was saying this could not be done as AFVGD is a structure and not a table.
    Have any one of you face similar predicament? Is there other method to address this issue? Appreciate your assistance.
    Edited by: Quah Ai Ling on Jun 10, 2008 5:36 AM

    Hi Varshal,
    Thanks for the suggestion.
    However, we thought of an alternate method that does involve changing the customers existing business process.
    1) Change the field AUDISP in the network profile to 1 "Never" for the conversion.
    2) Migrate the data. Program will create Networks, Activities & Components with the field AUDISP set to "Never create Reservation or Purchase Requisition".
    3) Change the field in AUDISP in the network profile back to "2 From Release".
    We will have to get the users to clean-up their data (close outstanding PRs or convert those PRs to POs) before this exercise for a clean cut-over.

  • Search for member activities - points are not displayed correctly

    Hi experts,
    I have a question concerning the search for member activities. I personalized my result list and added the field points (STRUCT.Product_ID), but there the amount of the points is always displayed as zero. When going into the details of the member activity I can see that there are points booked.
    Can anyone tell me why the points in the result list are not displayed correctly?
    Thanks and best regards
    Anne

    Sometimes threads are deleted if they violate the Rules of Engagement.  If that happens, you'll lose points that were allocated to you.  Othertimes, if you broke the rules, then it's possible that points that had been awarded could have been removed - but you should check your emails (of your registered address) to verify this.  I'd guess, it's more likely you'd responded to a post that broke the rules.
    Really important
    1. Don't reply to posts that break the rules - you risk losing any points awarded and you risk wasting your time responding (which is probably more valuable). 
    2. Don't ignore rejection emails or other communications from moderators.  They are followed up, and, if warnings are ignored, then accounts will be deleted.  Recently, one poor soul's account was deleted, and they'd accrued over a 1000 points... they'd been copy and pasting from other sites and ignored moderator warnings.
    matt

  • Eliminates duplication of work for IMG activities in different languages

    MM Function Module leader, during SAP implementation in overseas project, wanted to configure  img setting in three languages i.e. English, Italy and Hungary.
    Is there something specific to SAP which eliminates duplication of work for IMG activities ?
    Thanks and Regards
    Chandramauli

    Firefox does not have a built-in feature but you can add something similar with the Google Dictionary and Google Translate extension - https://addons.mozilla.org/firefox/addon/google-dictionary-and-google-t

  • I'm going to be a senior this year and my school is switching over to the iPad for classroom activities. Which iPad is the best for taking notes, researching, studying, reading, etc?

    I'm going to be a senior this year and my school is switching over to the iPad for classroom activities. Which iPad is the best for taking notes, researching, studying, reading, etc?

    I Recommend the iPad Mini Retina, it's not to big, and not to small. It has the speed of the iPad Air due to it having the same 64 Bit chips. ( And it's a lot cheaper!!) I have one myself and it's perfect for my school work!
    iPad Mini
    http://www.apple.com/ipad-mini/
    or don't 'to take my word for it, compare the iPads!
    http://www.apple.com/ipad/compare/

  • Photoshop CS5 slow Save for Web (Win 7, 64 bit)

    Hi.
    I have problem with save for web in PS CS5 (12.0.1). It is extremely slow. For example selecting anything from menus takes couple of seconds. I deleted PS preferences files but that didn't help.
    Any suggestions how to fix this?
    Thanks.
    My system is Win7 x64, Intel i7 930, 8gb RAM.

    Nothing should be slow on a machine like yours.
    Some possible suspects:
    Make sure you have updated your video drivers from the web site of the maker of your video card.
    Check what other software you have running on your computer.  How many processes are running?  Have you installed tons of "handy" stuff?  All that takes resources.
    See if you are having system errors by looking in the Windows System Event Log.
    -Noel

  • How to generate the deferent pdfs for deferent vendor ?

    Hi,
    i have requirement to generate the each pdf for each vendor and i need to mail those pdfs to respective vendor,
    here i am facing the prob to generate the no of pdfs for deferent vendors...please can any one help me in this how i generate the no of pdfs ?? using wrapeer program ....
    if possible any one can provide some example code..(Exmplae program)
    Thanks,
    PK..

    There are two function use one for convert PDF and second use to email, hope it will give u idea proper.
    Assigning the OTFDATA to OTF Structure table
      CLEAR gt_otf.
      gt_otf[] = gs_otfdata-otfdata[].
    Convert the OTF DATA to SAP Script Text lines
      CLEAR gt_pdf_tab.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = gv_bin_filesize
        TABLES
          otf                   = gt_otf
          lines                 = gt_pdf_tab
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          OTHERS                = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data              = gs_docdata
            put_in_outbox              = 'X'
            commit_work                = 'X'
          TABLES
            packing_list               = gt_objpack
            contents_bin               = gt_objbin
            receivers                  = gt_reclist
          contents_txt               = i_objtxt
            object_header              = objhead
          EXCEPTIONS
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
            operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 7
            OTHERS                     = 8.

  • Organizational data determination for mkt. activities

    We need organizational data determination for mkt. activities created from campaigns. In CRM we have only the Marketing part of  the clients organization, using Marketing scenario in PPCOMA_CRM.
    If we leave org. unit field of activity blank, the activity has a red error light.
    The responsable person is the one from the campaign. It is responsable of en Marketing unit (that was assigned to campaign).
    The possible solutions for our cliente could be 1) org data determination from preceding document or 2) org data determination from the Mkt organization of the responable person.
    Concerning 1) There is no "natural" way to assign the preceding
    document (campaign). Am I right?
    Concerning 2) The only way to determine the an unit, was choosing Organizational Model Determin. Rule 10000148 to perfile ZDUOCTEST and later changing the scenario of rule 10000148 from sales to marketing. This obviosly is not standard. As rule and perfile now have diferent scenarios. What would be the standard solution?
    Thanks for help.
    Cristina

    hi
    please do not get confused by the terminology of the standard solution,what you are doing by changing the scenariop from sales to marketing is actually a standard solution,
    as an activity is generated in response to the campiang or survey being submitted,and it is always a sales scenario ,since further activity application is in martketing scenario ,so what you are doing is changing the scenario from sales to marketing so that from those activities tyou can generate the org data,this is the standard and it goes this way only
    if you want to work other way around then just use the preceding document access sequence in the scenario like then you have to use the campaign data instead of the activity generated in response to the campaign,
    best regards
    ashish

  • Error Message - "Time Interval is not valid for dummy activities"

    Friends,
    I am trying to create a planned order on a resource at a plant. However it shows up an error message.
    An application program called an LCA routine. The following error
    occurred:
    Time interval is not valid for dummy activities. Probable causes
    error are an extremely long processing duration or times that li
    outside the time interval (1.1.1970 + 30 sec, 1.1.2038 - 1 sec).
    Could anyone help pme out with this,
    Thanks in advance.
    -A

    Hi,
      Please check the control key  and activity type  in routing.
    Thanks,
    DV

  • Auto accounting for deferred expenses

    Hi all
    I would like to know if there is a functionality in Oracle to perform auto accounting for Deferred Expenses. I'm giving below an example of my exact requirement for my professional colleagues to reply.
    Scenario:
    The school fee for an employee's kid is paid on 1 Jan 2012 for the school year 1 June 2012 to 31 May 2013. I would like to account for the payment now as on 1 Jan 2012 showing this as Deferred Expenses and the monthly auto accounting/booking needs to start from 1 June 2012 to finish on 31 May 2013.
    Is there any functionality available which will help me do this without any monthly manual intervention.
    Regards
    Anand
    +971 4 3086738

    If you are using R 12.1.1 or higher versions you can use multiperiod accounting.
    Further I am assuming that you want to account for school fees from oracle payables.
    Thanks,
    Sid

  • Very slow broadband for 2 months

    Hi,
    Having problems with very slow broadband for the past 2 months. I'm supposed to be getting 7.5 Mb download speeds but its nowhere near at the moment. More like 0.3 Mb download 0.6 Mb upload. Just installed brand new homehub a few days ago...but no change.
    Do i need to post any more info? Thanks a lot...any help will be much appreciated!
    Ste
    ADSL line status<script type="text/javascript"></script>Connection information<script type="text/javascript"></script>
    Line state
    Connected
    Connection time
    0 days, 15:07:24
    Downstream
    575 Kbps
    Upstream
    828 Kbps
    ADSL settings<script type="text/javascript"></script>
    VPI/VCI
    0/38
    Type
    PPPoA
    Modulation
    ITU-T G.992.5
    Latency type
    Interleaved
    Noise margin (Down/Up)
    33.3 dB / 8.6 dB
    Line attenuation (Down/Up)
    29.0 dB / 14.8 dB
    Output power (Down/Up)
    20.8 dBm / 12.4 dBm
    Loss of Framing (Local)
    7
    Loss of Signal (Local)
    2
    Loss of Power (Local)
    0
    FEC Errors (Down/Up)
    748 / 247
    CRC Errors (Down/Up)
    294 / 2147480000
    HEC Errors (Down/Up)
    nil / 1002
    Error Seconds (Local)
    2
    <script type="text/javascript"></script>
    Hide Details

    With your line attenuation you should be getting a sync speed of 16000 kbps and a profile of about 14 Meg, however it looks like you line has been capped at 1/2 a Meg, that is why your noise margin is so high ( should be around 6dB ) now this could be due to a line fault ( loss of framing/signal ) or a problem with your internal wiring.
    However since you have has this problem for so long your best bet is to ring BT India on 0800 111 4567 and try and get a SFI fault raised so an Openreach broadband engineer can come and see if they can sort the problem out.
    Below is a copy of my stats, as an example.
    ADSL line status
    Connection Information
    Line state
    Connected <script type="text/javascript"></script>
    Connection time
    5 days, 04:11:55
    Downstream
    8,173 Kbps
    Upstream
    1,057 Kbps
    ADSL Settings
    VPI/VCI
    0/38
    Type
    PPPoA
    Modulation
    G.992.5 Annex A
    Latency type
    Interleaved
    Noise margin (Down/Up)
    6.0 dB / 5.7 dB
    Line attenuation (Down/Up)
    44.6 dB / 22.4 dB
    Output power (Down/Up)
    12.4 dBm / 1.6 dBm
    Loss of Framing (Local/Remote)
    0 / 0
    Loss of Signal (Local/Remote)
    0 / 0
    Loss of Power (Local/Remote)
    0 / 0
    FEC Errors (Down/Up)
    42072 / 0
    CRC Errors (Down/Up)
    8262 / 0
    HEC Errors (Down/Up)
    278529 / 0
    Error Seconds (Local/Remote)
    735 / 0
    Hide Details

Maybe you are looking for