Query to find concurrent programs defined in each concurrent manager queue

We have got custom concurrent queues defined and have then included applications / programs under it.
This way we are seggregating the load across multiple queues and application servers.
As a check , i want to find what programs are running / actually scheduled under each queue.
I can see the same from the application frontend. How can I find the same form backend database.
AU

Hi,
Please section "How to find out which request is handle by which concurrent queue." under the following link:
http://raghuook.blogspot.com/2010/08/apps-dba-trobleshoot-scripts.html
Also see the following link:
Checking the status of all concurent managers from backend
Requests run by a specific Concurrent Manager/Queue within the date range
Hope this helps!
Best Regards

Similar Messages

  • Query to find all workbooks/worksheets for each business area

    Hi Experts,
    I need to find all workbooks/worksheets in each business area. Collect 'Query Statistics is checked for all the users'
    Also are there any documents or information available of the description of the discoverer metadata database tables which will help in writing queries
    thanks and regards,
    John

    There is no workbook/worksheet linkage to a business area. So you cannot search for a business area and find all the workbooks "attached" to that business area. The attachment of workbooks is at the folder level. It is actually possible, if you are sharing folders among business areas, to create a workbook with data from 2 or more business areas. I have tested that and it is indeed possible. In Discoverer Administrator you can check on folder dependencies to see what workbooks use the folder. Though in my version of Discoverer, there is a problem with Discoverer Plus, such that the workbook save in Plus is not creating this dependency information like it should. At least I have not found any way to take a business area and determine what workbooks would fall under it. Maybe someone else has found a way.
    John Dickey

  • SQL query to find out last login for each database

    Hi everybody,
    I have a view with following columns:
    DatabaseSid, lastLogin, firstLogin.
    I want to now the newest last_login date for every database.
    SID First Login Last Login
    e.g. Database1, 11.11.2011, 01.12.2011
    Database1, 01.04.2012, 01.05.2012
    Database3, 03.03.2004, 03.06.2005
    Database 3 07.09.2012, 12.10.2012
    How can I do a query to find out for eacht DB (DB1, DB2 and so on) the Last_Login Date?
    Thank you in advance
    Steve

    Steve wrote:
    Hi everybody,
    I have a view with following columns:
    DatabaseSid, lastLogin, firstLogin.
    I want to now the newest last_login date for every database.
    SID First Login Last Login
    e.g. Database1, 11.11.2011, 01.12.2011
    Database1, 01.04.2012, 01.05.2012
    Database3, 03.03.2004, 03.06.2005
    Database 3 07.09.2012, 12.10.2012
    How can I do a query to find out for eacht DB (DB1, DB2 and so on) the Last_Login Date?
    Thank you in advance
    SteveI'm curious as to how you collect this information from multiple databases into one database, and of what value the data is once you have it.

  • Need to run 2 concurrent programs after completing child concurrent program

    Hi,
    Could you suggest me on below:
    R12/ 11g
    I have main concurrent program MAIN_CONC_PG.
    In this concurrent program there is a child concurrent program CHLD_CONC_PG.
    This child concurrent program will run for parameters 1,2,3,4,5.
    CHLD_CONC_PG program will run simultaneously 5 times:
    CHLD_CONC_PG ==> 1
    CHLD_CONC_PG ==> 2
    CHLD_CONC_PG ==> 3
    CHLD_CONC_PG ==> 4
    CHLD_CONC_PG ==> 5
    Now, after completion of above 5 Child Concurrent programs i have to start 2 more concurrent programs using fnd_request.submit_request:
    1) Item Attributes
    2) Vendor populate
    Thanks.

    931832 wrote:
    yes, both the Conc Programs are part of Main Conc Prog.
    1) Item Attributes
    2) Vendor populate
    I should be using FND_CONCURRENT.WAIT_FOR_REQUEST.
    any sample code that uses FND_CONCURRENT.WAIT_FOR_REQUEST ??
    IN my Main Conc Prog, i have below child conc prog. after completing below program i have to run 1) Item Attributes 2) Vendor populate conc progms.
    FOR i IN 1..v_count
    LOOP
    v_request_id := fnd_request.submit_request(application => 'XXDH',
    program => 'XXPTN_ITEM_ORDR_E',
    description => NULL,
    start_time => NULL,
    sub_request => FALSE,
    argument1 => i);
    END LOOP;Hi,
    You can also try something like this.
    declare
      l_reqid_tab is table of number index by pls_integer;
      l_reqid_tbl l_reqid_tab;
      function program_successful ( p_conc_req_id number ) return boolean
      is
        l_finished    boolean;
        l_phase       varchar2 (100);
        l_status      varchar2 (100);
        l_dev_phase   varchar2 (100);
        l_dev_status  varchar2 (100);
        l_message     varchar2 (100);
      begin
        if p_conc_req_id > 0 then
          l_finished := fnd_concurrent.wait_for_request ( request_id => p_conc_req_id
                                                         ,interval   => 5
                                                         ,max_wait   => 0
                                                         ,phase      => l_phase
                                                         ,status     => l_status
                                                         ,dev_phase  => l_dev_phase
                                                         ,dev_status => l_dev_status
                                                         ,message    => l_message );
          commit;
          if upper(l_dev_status) in ('WARNING', 'ERROR') and upper(l_dev_phase) in ('COMPLETE') then
            return false;
          elsif upper(l_dev_status) in ('NORMAL') and upper(l_dev_phase) in ('COMPLETE') then
            return true;
          else
            return false;
          end if;
        else
          return false;
        end if;
      end program_successful;
    begin
      for i in 1..v_count loop
        l_reqid_tbl(i) := fnd_request.submit_request....
      end loop;
      for i in 1..l_reqid_tbl.count loop
        if program_successful(l_reqid_tbl(i)i) then
          null;
        end if;
      end loop;
      -- code to submit your other program here.Hope this helps.
    Regards,
    Allen
    Edited by: Allen Sandiego on Jun 18, 2012 9:47 AM
    Made some modifications since number of spawned child requests is variable.

  • Scheduling a parent concurrent program to activate child concurrent program

    Hi All,
    I have a below mentioned requirement and as I have not come across such request before can somebody please confirm me if it can be achieved using a request set.
    We want a parent concurrent program to activate a child concurrent program with a certain schedule. The child program upon completion should schedule itself to run the next time according to the schedule set initially.
    So by using a request set can I achieve the above mentioned requirement or are there any better way to achieve this?
    Thanks,
    Regards,
    Anup
    Edited by: 965824 on Oct 16, 2012 11:58 PM

    Hi Helios,
    Thanks for your response checked the link that was provided, but it has information on start and end dates of a Parent concurrent request and all child processes. But in my case I want a parent concurrent program (which in turn should activate the Child concurrent program) to be submitted once . The child program upon completion should schedule itself to run the next time according to the schedule set initially. So I am checking whether this can achieved using a request set. But in a request set I am not sure whether a separate schedule can be created for individual concurrent programs . Currently I don't have access to any instance, so I am not able to try out that.
    Regards,
    Anup

  • Query to find out two counts on each column

    Hi
    can you help for the below query.
    I wanted to find out two count values on each column, ie above or equal 5 count and below 5 count.
    Table:
    Q1 Q2 Q3 (Q1, Q2, Q3 are columns in a table.)
    1 3 5
    6 7 4
    8 5 1
    2 8 5
    Query should display, like below.
    Expected Result:
    colname >=5 count <5 count
    Q1 2 2
    Q1 3 1
    Q3 2 2
    Thanks in advance.

    The query itself can be simplified as follows:
    SQL> with t as (
      2       select level lvl from dual
      3       connect by level < 4)
      4  select colname
      5       , sum(case when val >= 5 then 1 else 0 end) "count >= 5"
      6       , sum(case when val < 5 then 1 else 0 end) "count < 5"
      7  from (
      8       select decode (lvl, 1, 'Q1', 2, 'Q2', 'Q3') colname
      9               , decode (lvl, 1, q1, 2, q2, q3) val
    10               , lvl
    11       from (select q1, q2, q3
    12                       from q),
    13                       t)
    14  group by colname, lvl
    15  order by lvl;Lines 8-10 is what pivots the cartesian join (CJ) of q & t. It helps to explain it by breaking down each part.
    The CJ produces (I added the lvl into the output below for explanation purposes):
    SQL> with t as (
      2       select level lvl from dual
      3       connect by level < 4)
      4  select q1, q2, q3, lvl
      5  from q,
      6  t;
            Q1         Q2         Q3        LVL
             1          3          5          1  <-- line a1
             6          7          4          1  <-- line a2
             8          5          1          1
             2          8          5          1
             1          3          5          2  <-- line a5
             6          7          4          2
             8          5          1          2
             2          8          5          2
             1          3          5          3
             6          7          4          3
             8          5          1          3
             2          8          5          3
    12 rows selected.and the CJ from above now allows us to pivot the results using the LVL column as the "decoding" key.
    SQL> with t as (
      2       select level lvl from dual
      3       connect by level < 4)
      4  select decode (lvl, 1, 'Q1', 2, 'Q2', 'Q3') colname
      5       , decode (lvl, 1, q1, 2, q2, q3) val
      6       , lvl
      7  from (select q1, q2, q3
      8         from q),
      9         t;
    COLNAME           VAL        LVL
    Q1                  1          1 <-- line b1
    Q1                  6          1 <-- line b2
    Q1                  8          1
    Q1                  2          1
    Q2                  3          2 <-- line b5
    Q2                  7          2
    Q2                  5          2
    Q2                  8          2
    Q3                  5          3
    Q3                  4          3
    Q3                  1          3
    Q3                  5          3
    12 rows selected.Line b1:
    The decodes hit line a1 of the CJ and since lvl = 1, we get colname=Q1 and the corresponding Q1 row value (val=1) of line a1 and finally the value of 1 for lvl.
    Line b2:
    For decode of line a2 of the CJ, lvl = 1 again and we get colname=Q1 and the corresponding Q1 row value (val=6) of line a2 and finally the value of 1 for lvl.
    Line b5:
    For decode of line a5 of the CJ, lvl = 2 and we get colname=Q2 and the corresponding Q2 row value (val=3) of line a5 and finally the value of 2 for lvl.
    The other rows of the pivoted result set above are obtained similarly and from this result we can now perform the aggregation for the final result.
    The WITH query is a called subquery factoring. It allows you to reference the subquery multiple places in the query.
    HTH

  • QUERY FOR FINDING SECOND HIGEST SALARY IN EACH DEPARTMENT...?

    Hi ,
    if anyone know query..please mail to my id ...[email protected]

    Hi,
    (a) Use the analytic DENSE_RANK function (or ROW_NUMBER, depending on how you want to treat ties) to number every row, showing how each one ranks within its deparment.
    (b) Then choose the ones that were assigned 2 as their rank.
    Step (a) will have to be done in a sub-query and step (b) in the main query, since analytic functions are computed after the WHERE-clause is done.

  • Where can I find the program updates for each updated version of Flash Player?

    Where can I find info on different updated versions of Flash Player?
         This info includes:
              Changes/updates/improvements to the program
              Version number
    Also, how do I view my own program's version number?  I'm sure it's straightforward but I haven't tried looking.
    Thanks.

    Most updates are announced here http://forums.adobe.com/community/flashplayer/announcements
    To find your installed version go to http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html

  • SQl query to find incompatibility defined

    If two programs are defined as incompatible with one another, the data these programs cannot access simultaneously must also be identified.
    This can be found from concurrent program->define from front end ebs login, but is there any SQL query to find this for a particular program or request set??
    Thanks in advance.

    Please search the forum before posting similar questions.
    Concurrent-Conflict
    Re: Concurrent-Conflict
    Thanks,
    Hussein

  • How to find the patches for perticular concurrent program

    HI
    How to find the patches for perticular concurrent program. suppose for one concurrent program we create the patch and applied now i want know the which patch applied for perticular concurrent program through back end.
    Thank's

    Query the concurrent program in Sysadmin responsibility.
    Note the concurrent executable.
    Query the concurrent executable in Sysadmin.
    Note the file name.
    If it is a package, open the package in TOAD and note down the file name.
    If it is a report/form, open it in form developer and note down the file name.
    Go to patch find screen in metalink. In the advanced search screen, enter the file name and you will see patches that contain it.
    Hope this answers your question
    Sandeep Gandhi
    Independent Consultant
    513-325-9026

  • Query to find Memory used by each session in the database

    Hi All,
    Is there any query to find the memory utilised by each session in the database.I am in 9i database.
    Regards
    Vijay

    Memory using sessions script,
    SET LINESIZE 145
    SET PAGESIZE 9999
    COLUMN sid FORMAT 99999 HEADING 'SID'
    COLUMN serial_id FORMAT 999999 HEADING 'Serial#'
    COLUMN session_status FORMAT a9 HEADING 'Status' JUSTIFY right
    COLUMN oracle_username FORMAT a12 HEADING 'Oracle User' JUSTIFY right
    COLUMN os_username FORMAT a9 HEADING 'O/S User' JUSTIFY right
    COLUMN os_pid FORMAT 9999999 HEADING 'O/S PID' JUSTIFY right
    COLUMN session_program FORMAT a18 HEADING 'Session Program' TRUNC
    COLUMN session_machine FORMAT a8 HEADING 'Machine' JUSTIFY right TRUNC
    COLUMN session_pga_memory FORMAT 9,999,999,999 HEADING 'PGA Memory'
    COLUMN session_pga_memory_max FORMAT 9,999,999,999 HEADING 'PGA Memory Max'
    COLUMN session_uga_memory FORMAT 9,999,999,999 HEADING 'UGA Memory'
    COLUMN session_uga_memory_max FORMAT 9,999,999,999 HEADING 'UGA Memory MAX'
    prompt
    prompt ----------------------------------------------------
    prompt | User Sessions Ordered by Current PGA Size |
    prompt ----------------------------------------------------
    SELECT
    s.sid sid
    , s.serial# serial_id
    , lpad(s.status,9) session_status
    , lpad(s.username,12) oracle_username
    , lpad(s.osuser,9) os_username
    , lpad(p.spid,7) os_pid
    , s.program session_program
    , lpad(s.machine,8) session_machine
    , sstat1.value session_pga_memory
    , sstat2.value session_pga_memory_max
    , sstat3.value session_uga_memory
    , sstat4.value session_uga_memory_max
    FROM
    v$process p
    , v$session s
    , v$sesstat sstat1
    , v$sesstat sstat2
    , v$sesstat sstat3
    , v$sesstat sstat4
    , v$statname statname1
    , v$statname statname2
    , v$statname statname3
    , v$statname statname4
    WHERE
    p.addr (+) = s.paddr
    AND s.sid = sstat1.sid
    AND s.sid = sstat2.sid
    AND s.sid = sstat3.sid
    AND s.sid = sstat4.sid
    AND statname1.statistic# = sstat1.statistic#
    AND statname2.statistic# = sstat2.statistic#
    AND statname3.statistic# = sstat3.statistic#
    AND statname4.statistic# = sstat4.statistic#
    AND statname1.name = 'session pga memory'
    AND statname2.name = 'session pga memory max'
    AND statname3.name = 'session uga memory'
    AND statname4.name = 'session uga memory max'
    ORDER BY session_pga_memory DESC
    Thanks

  • How to stop concurrent programs from appearing in the SRS window ?

    Hi All,
    We have hundreds of custom concurrent programs registered under a custom application.
    Except for 3 hidden programs (which will be submitted internally from another concurrent program), all the others should appear in the SRS window. Therefore, instead of individually registering each program in the request group, we have registered the application itself, in the request group.
    However by doing this, the 3 hidden concurrent programs are also appearing in the SRS window. The concurrent program define form doesn’t allow us to uncheck the “show in SRS” checkbox if we have parameters define for a concurrent program.
    Is there any way that we can prevent these hidden programs from appearing in the SRS window, in our case?

    Hi,
    Create a new request group and add all but the 3 programs, using a PL/SQL script calling fnd_program.add_to_group.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • Java Concurrent Program not able to access class present under CLASSPATH

    We are creating a Java Concurrent Program which is using third party web service. The client classes for the webservice have been placed in a jar file. This jar file has been added to the SYSTEM CLASSPATH. When we try to run the concurrent program it fails with a ClassNotFoundException giving the name of the webervice client. The webservice clients are being used by other java classes from OAF as well. From there it is easily accessible.
    The request is being submit using a custom responsibility called RAC Quoting Admin. The user logged in has the corresponding responsibiility. The request is being submitted as a single request and there are no parameters being passed to the request.
    Here are the steps that we used to create the Oracle Concurrent Program:
    1. First of all we wrote a Java class that implements oracle.apps.fnd.cp.request.JavaConcurrentProgram
    rac.oracle.apps.qot.quote.batch.SFDCInterface implements JavaConcurrentProgram
    2. The concurrent program has a method called public void runProgram(CpContext pCpContext) which has the logic to be executed.
    3. Then we create a concurrent program executable
    Path: Concurrent -> Program -> Executable.
    Executable: RAC Quoting SFDC Sync Executable
    Short Name: RacQotSFDCSyncEx
    Application: Quoting
    Description: RAC Quoting SFDC Synchronization batch program
    Execution Method: Java Concurrent Program
    Execution File Name : SFDCInterface
    Execution File Path : rac.oracle.apps.qot.quote.batch
    4. Create the Concurrent Program
    Path: Concurrent -> Program -> Define
    Program: RAC Quoting SFDC Sync CP
    Short Name: RACQOTSFDCSYNCCP
    Application: Quoting
    Description: RAC Quoting SFDC batch Synchronization Concurrent Program
    Executable: Name - RacQotSFDCSyncEx; Method - Java Concurrent Program
    5. This concurrent program is registered with a custom responsibility from which we run this concurrent program.

    Please post the details of the application release, database version and OS.
    We are creating a Java Concurrent Program which is using third party web service. The client classes for the webservice have been placed in a jar file. This jar file has been added to the SYSTEM CLASSPATH. When we try to run the concurrent program it fails with a ClassNotFoundException giving the name of the webervice client. The webservice clients are being used by other java classes from OAF as well. From there it is easily accessible.Please post the contents of the concurrent request log file here. You may also enable trace and submit the request again and post the contents of the log file.
    The request is being submit using a custom responsibility called RAC Quoting Admin. The user logged in has the corresponding responsibiility. The request is being submitted as a single request and there are no parameters being passed to the request.
    Here are the steps that we used to create the Oracle Concurrent Program:
    1. First of all we wrote a Java class that implements oracle.apps.fnd.cp.request.JavaConcurrentProgram
    rac.oracle.apps.qot.quote.batch.SFDCInterface implements JavaConcurrentProgram
    2. The concurrent program has a method called public void runProgram(CpContext pCpContext) which has the logic to be executed.
    3. Then we create a concurrent program executable
    Path: Concurrent -> Program -> Executable.
    Executable: RAC Quoting SFDC Sync Executable
    Short Name: RacQotSFDCSyncEx
    Application: Quoting
    Description: RAC Quoting SFDC Synchronization batch program
    Execution Method: Java Concurrent Program
    Execution File Name : SFDCInterface
    Execution File Path : rac.oracle.apps.qot.quote.batch
    4. Create the Concurrent Program
    Path: Concurrent -> Program -> Define
    Program: RAC Quoting SFDC Sync CP
    Short Name: RACQOTSFDCSYNCCP
    Application: Quoting
    Description: RAC Quoting SFDC batch Synchronization Concurrent Program
    Executable: Name - RacQotSFDCSyncEx; Method - Java Concurrent Program
    5. This concurrent program is registered with a custom responsibility from which we run this concurrent program.Have you completed all the steps as per MOS docs? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Program&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to implement node affinity for java type concurrent programs.

    How to run a concurrent program against a specific RAC instance with PCP/RAC setup? (Doc ID 1129203.1)
    This works for non java registered concurrent programs but not java registered with use the DBC file
    EBS RAC environment with two RAC nodes. We would like to implement node affinity to allow concurrent programs to be directed to a single RAC instance. Oracle have provided the NODE AFFINITY ability via the concurrent program definition in Session Control. This then uses the entry in the 10.1.2 tnsnames.ora to pass the request directly through to the instance as defined by Node Affinity.
    However, concurrent programs defined as type java do not access the database by the 10.1.2 tnsnames.ora but use the dbc file under $FND_SECURE. This file is configured for both self service and concurrent processing so any change to the dbc file entry will affect both self service and concurrent processing.
    How to we implement a node affinity solution for concurrent programs without affecting Self Service conncetions? We'd like the dbc file to directly connect java concurrernt programs through to one instance but the self service connections to use the SERVICE name only.
    Regards.
    philippe.

    Did you think about Online/Batch node concept ? By that way you can seggrecate application connection.

  • Concurrent program schedule details?

    Which view/table can I query to find the schedule details for a concurrent request that is set to run at a specific interval ?
    I've discovered how to set the interval using;
    fnd_request.set_repeat_optionsand now would like to view the schedule information much the same as one is able to view the schedule information for dba_scheduler .
    Is that possible?

    Hi bluefrog,
    I don't think it's possible to modify an existing request using it. You could try updating directly the concurrent request table but it's neither recommended nor supported, and you could get unexpected results.
    If you want to unschedule the request programatically, maybe you could use fnd_concurrent.cancel_request (selecting the appropriate request id, because everytime one scheduled request is executed, it creates a new one with same repeat options and new start date). If you want to schedule it again, just submit again fnd_request.set_repeat_options with selected options + fnd_request.submit_request.
    Hope it helps.

Maybe you are looking for