SQL query to assign multiple concurrent programs to concurrent manager.

Hello,
Do you have any script to assign a list of concurrent Program to distinct  Concurrent Managers . Actually there are more than 100 programs need to be assigned to manager.ut
We can do it from front end,but it will take quite long time to finish this task.
Could you please help me on this.
Thanks & Regards,
Saroj.

What are the details do i need to check before assign them to Custom Managers.
What do you mean by details you need to check?
Kindly provide me a sql query to get all the details before proceeding to assigning managers.
Concurrent programs definitions can be found in the following tables/views:
FND_CONCURRENT_PROGRAMS
http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_CONCURRENT_PROGRAMS&c_owner=APPLSYS&c_type=TABLE
FND_CONCURRENT_PROGRAMS_TL
http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_CONCURRENT_PROGRAMS_TL&c_owner=APPLSYS&c_type=TABLE
FND_CONCURRENT_PROGRAMS_VL
http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_CONCURRENT_PROGRAMS_VL&c_owner=APPS&c_type=VIEW
Thanks,
Hussein

Similar Messages

  • How to assign concurrent program to concurrent manager

    Hi:
    How to assign concurrent program to concurrent manager? or the other way around. It was an interview question. for R12 or 11i
    Thanks

    Srini Chavali wrote:
    All concurrent programs, by default, will be run thru the Standard Manager. If you need to have a specific manager run a program, you need to define specialization rules (in Concurrent > Manager > Define, "Specialization Rules" button) for that manager.
    http://docs.oracle.com/cd/E18727_01/doc.121/e12893/T174296T174302.htm#fndcpdcq.QUEUE_CONTENT
    And that's exactly what is mentioned in the docs referenced in my previous reply.
    Thanks,
    Hussein

  • SQL Query to convert multiple rows to a single row output

    I have the following sql query;
    SELECT B.ClientID,
    B.BillNo, B.[BillDate],
    B.CurrencyCode,
    B.BAmount
    FROM tblCompanyDetails CD
    CROSS
    APPLY (
    SELECT TOP 5 B1.ClientID,
     B1.[BillNumber],
    B1.[BillDate], B1.[CurrencyCode] AS CCY,
     B1.[BillAmount]
    FROM tblBills B1
    WHERE ROUND(B1.[BillAmount],2)<>0
    AND B1.ClientID=CD.CompanyID
    AS B
    WHERE CD.ContactId=235405
    ORDER
    BY B.ClientID,B.BillNo
    DESC
    This gives me the following row output;
    ClientID
    BillNo
    BillDate
    CurrencyCode
    BAmount
    94466
    425616
    2015-04-07
    GBP
    5000
    94466
    424517
    2015-01-15
    GBP
    6000
    94466
    424455
    2014-10-15
    GBP
    4000
    However, I would like the ouput to appear like this;
    ClientID
    BillNo1
    BillDate
    CCY
    BAmount
    BillNo2
    BillDate
    CCY
    BAmount
    BillNo3
    BillDate
    CCY
    BAmount
    94466
     425616
     2015-04-07
     GBP
     5000
     424517
     2015-01-15
     GBP
     6000
     424455
     2014-10-15
     GBP
    4000 

    I have tried to create a sample based on your question
    CREATE TABLE MyTable
    ClientID INT ,
    BillNo INT,
    BillDate DATE,
    CurrencyCode varchar(5),
    BAmount INT
    INSERT INTO MyTable
    VALUES (94466,425616,'2015-04-07','GBP',5000),
    (94466,424517,'2015-01-15','GBP',6000),
    (94466,424455,'2014-10-15','GBP',4000)
    Then I have used another table to put ranking in that, you can actually tweak your statement to include rank also
    CREATE TABLE RowTable
    ClientID INT ,
    BillNo INT,
    BillDate DATE,
    CurrencyCode varchar(5),
    BAmount INT,
    Ranking INT
    INSERT INTO RowTable
    SELECT * , ROW_NUMBER() OVER (ORDER BY ClientID) as row
    FROM MyTable
    Once your data is ready then execute below dynamic query
    DECLARE @cols AS NVARCHAR(MAX),
    @query AS NVARCHAR(MAX)
    select @cols = STUFF((SELECT ',' + QUOTENAME(col+cast(Ranking as varchar(10)))
    from RowTable
    cross apply
    select 'BillNo', 1 union all
    select 'BillDate', 2 union all
    select 'CurrencyCode', 3 union all
    select 'BAmount' , 4
    ) c (col, so)
    group by col, so, Ranking
    order by Ranking, so
    FOR XML PATH(''), TYPE
    ).value('.', 'NVARCHAR(MAX)')
    ,1,1,'')
    set @query = 'SELECT ClientId,' + @cols + '
    from
    select clientid, col+cast(Ranking as varchar(10)) col, value
    from RowTable
    cross apply
    SELECT ''BillNo'', cast(BillNo as varchar(20)) union all
    SELECT ''BillDate'', cast(BillDate as varchar(20)) union all
    SELECT ''CurrencyCode'', CurrencyCode union all
    SELECT ''BAmount'', CAST(BAmount as varchar(10))
    ) c (col, value)
    ) x
    pivot
    max(value)
    for col in (' + @cols + ')
    ) p '
    execute sp_executesql @query;
    Output: 
    Hope this will help. 

  • EBS Concurrent Program Inactive No Manager

    Hi Experts,
    On my R12.1.3 env., the concurrent program request always is in inactive/no manager status for about 5 minutes before it starts running. I stopped the servers, ran the cmclean.sql, and started all servers, but it doesn't help. Anywhere else can I config to make the CP start right away? BTW, there's no other CP request running from the request monitor screen.
    Thanks for your input.

    Hi Michelle,
    Were there any recent changes made lately??? Was this working fine before?
    Can you please try the following and let us know:
    1. Source the Apps environment file
    2. Relink the CM related executables.
    adrelink.sh force=y link_debug=y "fnd FNDLIBR"
    adrelink.sh force=y link_debug=y "fnd FNDSM"
    3. Run autoconfig
    4. Bounce the CM, and let us know if the issue persist.
    Thanks &
    Best Regards,

  • SQL Query to return multiple transactions in a 5 min. period

    I have been asked to write a query that scans a table of financial transactions looking for more than 1 transaction by the same person (EmplID for example) within a 5 minute period. I am not sure if this is possible with SQL. Here are the details:
    Table = MEALTRANSLEDGER
    Relevant Columns:
    "TRANDATE" DATE,
    "EMPLID" NUMBER(9,0)
    I need to select these columns when a particular EmplID has logged more than 1 transaction in a 5 minute period.
    I know I could do this with PL/SQL or Perl by stepping through the rows of the table and calculating date differences, but I would really like to know if SQL could do it.
    Thanks for the help.
    Version Info:
    SQL> select * from v$version where banner like 'Oracle%';
    BANNER
    Oracle Database 10g Release 10.2.0.4.0 - Production

    You can use something along these lines to determine the minutes difference between transactions...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 1 as emplid, to_date('01/01/2010 09:00:00', 'DD/MM/YYYY HH24:MI:SS') as trandate from dual union all
      2             select 1, to_date('01/01/2010 09:10:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
      3             select 1, to_date('01/01/2010 09:20:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
      4             select 1, to_date('01/01/2010 09:45:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
      5             select 1, to_date('01/01/2010 09:51:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
      6             select 2, to_date('01/01/2010 09:12:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
      7             select 2, to_date('01/01/2010 09:18:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
      8             select 2, to_date('01/01/2010 09:22:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
      9             select 2, to_date('01/01/2010 09:30:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
    10             select 3, to_date('01/01/2010 09:05:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
    11             select 3, to_date('01/01/2010 10:10:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
    12             select 3, to_date('01/01/2010 11:15:00', 'DD/MM/YYYY HH24:MI:SS') from dual
    13            )
    14  --
    15  select emplid, trandate
    16        ,(trandate-lag(trandate) over (partition by emplid order by trandate)) * (24*60) as mins_diff
    17  from t
    18* order by emplid, trandate
    SQL> /
        EMPLID TRANDATE             MINS_DIFF
             1 01/01/2010 09:00:00
             1 01/01/2010 09:10:00         10
             1 01/01/2010 09:20:00         10
             1 01/01/2010 09:45:00         25
             1 01/01/2010 09:51:00          6
             2 01/01/2010 09:12:00
             2 01/01/2010 09:18:00          6
             2 01/01/2010 09:22:00          4
             2 01/01/2010 09:30:00          8
             3 01/01/2010 09:05:00
             3 01/01/2010 10:10:00         65
             3 01/01/2010 11:15:00         65
    12 rows selected.And then you can wrap that up to just highlight the problem ones...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 1 as emplid, to_date('01/01/2010 09:00:00', 'DD/MM/YYYY HH24:MI:SS') as trandate from dual union all
      2             select 1, to_date('01/01/2010 09:10:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
      3             select 1, to_date('01/01/2010 09:20:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
      4             select 1, to_date('01/01/2010 09:45:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
      5             select 1, to_date('01/01/2010 09:51:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
      6             select 2, to_date('01/01/2010 09:12:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
      7             select 2, to_date('01/01/2010 09:18:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
      8             select 2, to_date('01/01/2010 09:22:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
      9             select 2, to_date('01/01/2010 09:30:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
    10             select 3, to_date('01/01/2010 09:05:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
    11             select 3, to_date('01/01/2010 10:10:00', 'DD/MM/YYYY HH24:MI:SS') from dual union all
    12             select 3, to_date('01/01/2010 11:15:00', 'DD/MM/YYYY HH24:MI:SS') from dual
    13            )
    14  --
    15  select emplid, trandate
    16  from (
    17        select emplid, trandate
    18              ,(trandate-lag(trandate) over (partition by emplid order by trandate)) * (24*60) as mins_diff
    19        from t
    20       )
    21  where mins_diff <= 5
    22* order by emplid, trandate
    SQL> /
        EMPLID TRANDATE
             2 01/01/2010 09:22:00
    SQL>

  • SQL Query from getting multiple itemName against one production No.

    Hello Everyone !!!!!!
    My Client required an interface which can combine the production cycle. In which single Interface shows all the Production cycle like Bills of material, Production Order, Issue from Production and received from Production.
    Similarly i have developed single interface for now i have 1 problem ,
    when i show all the the production order number in a matrix i got Prodcution order number, DocNo,and Status .
    as u know in one production order against multiple items, Similarly in multiple items there have been multiple ItemNames , I need multiple ItemName .
    For this i have developed a Query but unfortunately my query doesn't show all the ItemName.
    Select Distinct B.* from OWOR
    Inner Join WOR1 B ON OWOR.DocEntry = B.DocEntry
    Inner Join OITM C On OWOR.ItemCode = C.itemCode
    Where OWOR.ItemCode = '16.0LF2060WGD'
    And OWOR.Status = 'R'
    AND DocNum = 708680
    Here 16.0LF2060WGD= Production order Number
    R = Status of that production Order number which is in the Release Mode
    Please make sure that in one Production order against multiple itemcode nad multiple ItemName exist and Production order also Exist in the OITM table ........Please help me out
    Could anybody help me out to update my Query according to my Client request ...
    Please ..............
    Thanx
    Edited by: Rizzikhan on Oct 13, 2010 9:31 AM

    Hello Everyone !!!!!!
    My Client required an interface which can combine the production cycle. In which single Interface shows all the Production cycle like Bills of material, Production Order, Issue from Production and received from Production.
    Similarly i have developed single interface for now i have 1 problem ,
    when i show all the the production order number in a matrix i got Prodcution order number, DocNo,and Status .
    as u know in one production order against multiple items, Similarly in multiple items there have been multiple ItemNames , I need multiple ItemName .
    For this i have developed a Query but unfortunately my query doesn't show all the ItemName.
    Select Distinct B.* from OWOR
    Inner Join WOR1 B ON OWOR.DocEntry = B.DocEntry
    Inner Join OITM C On OWOR.ItemCode = C.itemCode
    Where OWOR.ItemCode = '16.0LF2060WGD'
    And OWOR.Status = 'R'
    AND DocNum = 708680
    Here 16.0LF2060WGD= Production order Number
    R = Status of that production Order number which is in the Release Mode
    Please make sure that in one Production order against multiple itemcode nad multiple ItemName exist and Production order also Exist in the OITM table ........Please help me out
    Could anybody help me out to update my Query according to my Client request ...
    Please ..............
    Thanx
    Edited by: Rizzikhan on Oct 13, 2010 9:31 AM

  • SQL Query - Report on multiple table

    Hi Experts
    Firstly, I am an amateur at generating SQL Queries!
    I am trying to create a Report of All Invoices/Credit Notes generated in a date range combined with all open Sales Orders.
    This is my attempt - I am getting all Sales Orders but only want to have Open Sales Orders.
    SELECT T0.[DocNum], T0.[DocType], T0.[cardcode] AS 'Cust. ID', T0.[cardName] AS 'Customer', T0.[TransId], T0.[TaxDate] AS 'Date', T1.[SlpName] AS 'AC Mgr', (T0.[DocTotal] -T0.[VatSum]) AS'NETT', T0.[DocStatus],T0.[U_BusCategory] AS 'Business Cat.', T0.[U_TERM] AS 'TERM', T2.OpprId, T2.Name
    FROM [dbo].[OINV]  T0 INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode 
    LEFT OUTER JOIN OOPR T2 ON T0.U_RTNo = T2.DocNum
    WHERE CONVERT(nchar(8), T0.DocDate, 112) >= '[%0]'  AND CONVERT(nchar(8), T0.DocDate, 112) <= '[%1]'
    UNION
    SELECT T0.[DocNum], T0.[DocType], T0.[cardcode], T0.[cardName], T0.[TransId], T0.[TaxDate] AS 'Date', T1.[SlpName] AS 'AC Mgr', -(T0.[DocTotal] -T0.[VatSum]) AS'NETT', T0.[DocStatus],T0.[U_BusCategory],T0.[U_TERM] AS 'TERM', T2.OpprId AS 'Oppr. ID.', T2.Name AS 'Oppr. Name'
    FROM [dbo].[ORIN]  T0 INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode
    LEFT OUTER JOIN OOPR T2 ON T0.U_RTNo = T2.DocNum
    WHERE CONVERT(nchar(8), T0.DocDate, 112) >= '[%0]'  AND CONVERT(nchar(8), T0.DocDate, 112) <= '[%1]'
    UNION
    SELECT T0.[DocNum], T0.[DocType], T0.[CardCode], T0.[CardName], T0.[TransId], T0.[TaxDate], T1.[SlpName], (T0.[DocTotal]-T0.[VatSum]), T0.[DocStatus], T0.[U_BusCategory], T0.[U_TERM], T2.OpprId AS 'Oppr. ID.', T2.Name AS 'Oppr. Name'
    FROM ORDR T0  INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode
    LEFT OUTER JOIN OOPR T2 ON T0.U_RTNo = T2.DocNum
    WHERE CONVERT(nchar(8), T0.DocDate, 112) >= '[%0]'  AND CONVERT(nchar(8), T0.DocDate, 112) <= '[%1]' 
    Any help would be much appreciated
    Derek

    Dear Mr Vard,
    The field in the ORDR table that will tell you if the document is closed or open is the DocStatus.
    C = Closed and O = Open
    You could add another where clause:
    where t0.DocStatus = 'c'
    to the last query you added (the one referring to the ORDR table).
    Please, let me know if this helps you.
    Marcella Rivi
    SAP Business One Forums Team

  • Need a sql query to get multiple dates in rows

    Hi All,
    i need a query to get dates for last 7 days and each dates should be in one row...
    but select sysdate from dual..gives one row...
    Expexcted Output
    Dates:
    01-oct-2013
    30-sep-2013
    29-sep-2013
    28-sep-2013
    27-sep-2013
    26-sep-2013

    Hi,
    Do you mean that you want all 7 dates together on 1 row?
    Here's one way:
    SELECT LISTAGG ( TO_CHAR ( SYSDATE + 1 - LEVEL
                              , 'DD-Mon-YYYY'
                    ) WITHIN GROUP (ORDER BY LEVEL)    AS txt
    FROM    dual
    CONNECT BY LEVEL <= 7
    This is an example of String Aggregation, that is, taking a column on multiple rows, and concatenating all the values (however many htere happen to be) into 1 big string column 1 row.
    Like everything else, exactly how to do it depends on your Oracle version.
    For more on String Aggregation, including differetn techniques for different versions, see http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php
    Message was edited by: FrankKulash
    Sorry, I mis-read the question.

  • Forming generic sql query   for joining multiple sap tables in ABAp

    Hi,
    I am new to this abap field ,facing an issue onsap-jco project . I have used RFC_READ_TABLE  FM ,Customized this FM but facing an issue how to write generic  open SQl select statement  for joining multiple tables  using RFC_READ_TABLE .Kindly help on this issue.
    Thanks.

    something like this? If your tuples are not single columns, then you'll have to use dynamic sql to achieve the same result.with
    table_1 as
    (select '|Xyz|Abc|Def|' tuple from dual
    table_2 as
    (select '|Data1|Data21|Data31|Data41|Data51|' tuple from dual union all
    select '|Data2|Data22|Data32|Data42|Data52|' tuple from dual union all
    select '|Data3|Data23|Data33|Data43|Data53|' tuple from dual union all
    select '|Data4|Data24|Data34|Data44|Data54|' tuple from dual union all
    select '|Data5|Data25|Data35|Data45|Data55|' tuple from dual
    select case the_row when 1
                        then tuple
                        else '|---|---|' || substr(tuple,instr(tuple,'|',1,3) + 1)
           end tuple
      from (select substr(a.tuple,instr(a.tuple,'|',:one_one),instr(a.tuple,'|',:one_one + 1)) ||
                   substr(a.tuple,instr(a.tuple,'|',1,:one_two) + 1,instr(a.tuple,'|',1,:one_two + 1) - instr(a.tuple,'|',1,:one_two)) ||
                   substr(b.tuple,instr(b.tuple,'|',1,:two_one) + 1,instr(b.tuple,'|',1,:two_one + 1) - instr(b.tuple,'|',1,:two_one)) ||
                   substr(b.tuple,instr(b.tuple,'|',1,:two_two) + 1,instr(b.tuple,'|',1,:two_two + 1) - instr(b.tuple,'|',1,:two_two)) tuple,
                   rownum the_row
              from table_1 a,table_2 b
    order by the_rowRegards
    Etbin
    Message was edited by:Etbin
    user596003

  • Multiple CVI programs running concurrently

    Hi,
    I would like to know if I have 3 CVI programs which each program needs to be triggered at 25msec time interval to do the individual task and 5msec time interval to do same task of acessing read/write reflective memory. All 3 programs have their own GUI displays panels.
    Is it possible to run these programs concurrently without affect their timming and software processes?
    If is not possible, how can I achieve the tasks of the 3 programs in one machine?

    Not necessarily.  If you are smart, and choose your iPhoto preferences carefully, you can set iPhoto to launch in an external editor for those photos you wish to edit.  Mind you, be careful not to edit your originals, and always make a duplicate photo for an image you wish to edit, in event you make a mistake.  You can always delete it later.

  • I want to submit a concurrent program from pl/sql. Please help me.

    Dear all,
    I want to submit a concurrent program from pl/sql. But I failed. Please help me.
    Detail:
    I create a concurrent program in 'Cash Management, Vision Operations (USA)' responsibility. <strong>And it be submitted success in EBS</strong>.
    Then
    I create a test script in pl/sql. And use 'FND_GLOBAL.APPS_INITIALIZE' to initialize ebs, then use 'FND_REQUEST.SUBMIT_REQUEST' to submit
    the consurrent program, But the procedure aways return <strong>0</strong>.
    I cannot found the reason. Please help me.Thanks.
    <em>Attached informations may describe the problem:
    1.The concurrenct submitted success in EBS.</em>
    request_id = 4750655 (Sorry, I dont know how to add pictures.)
    <em>2.The initialize informations which from SQL</em>.
    SELECT FCR.REQUESTED_BY USER_ID
    ,FCR.RESPONSIBILITY_ID
    ,FCR.RESPONSIBILITY_APPLICATION_ID
    ,FA.APPLICATION_SHORT_NAME
    ,FCP.CONCURRENT_PROGRAM_NAME
    FROM FND_CONCURRENT_REQUESTS FCR
    ,FND_APPLICATION FA
    ,FND_CONCURRENT_PROGRAMS FCP
    WHERE FCR.PROGRAM_APPLICATION_ID = FA.APPLICATION_ID
    AND FCR.CONCURRENT_PROGRAM_ID = FCP.CONCURRENT_PROGRAM_ID
    AND FCR.REQUEST_ID = 4750655;
    Result: user_id = 1318;
    responsibility_id = 50579;
    application_id = 260;
    application_short_name = 'CE';
    program_short_name = 'CALLK009';
    <em>3.The test script code.</em>
    <p>
    -- Created on 2008/10/22 by ERIC
    declare
    -- Local variables here
    Wv_conc_req_id VARCHAR2(10) DEFAULT NULL;
    BEGIN
    FND_GLOBAL.APPS_INITIALIZE(
    1318
    ,50579
    ,260
    Wv_conc_req_id := FND_REQUEST.SUBMIT_REQUEST(
    'CE'
    ,'CALLK009'
    ,NULL
    ,SYSDATE
    ,FALSE
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    , CHR(0), CHR(0), CHR(0), CHR(0), CHR(0)
    DBMS_OUTPUT.PUT_LINE(Wv_conc_req_id);
    COMMIT;
    end;
    <em>4.The concurrent program code.</em>
    create or replace package body CALLTEST is
    PROCEDURE T1(PvO_errbuf OUT VARCHAR2
    ,PvO_retcode OUT VARCHAR2)
    IS
    BEGIN
    FND_FILE.PUT_LINE(fnd_file.log, 'TEST');
    END;
    end CALLTEST;
    </p>

    Can you check from which schema you are executing FND_REQUEST? You can try as follows;
    Connect to your required schema, create a synonym on apps.fnd_request, connect from apps and finally execute grant all on apps.fnd_request to all.
    You can check for relevance from Doc ID: Note:147495.1
    Please do keep in the mind the soultion above should be applied to a test/dev EBS instance first.
    I hope this would be of help.
    Saad

  • High Concurrent SQL query of DBSNMP user

    OS Linux
    DB 11.2.0.2
    we have a 12 node RAC box on exadata. We are doing the monitoring through the OEM GRID. In the 12th node we see a high concurrent sql query owned by the DBSNMP user.The concurrency is about 98% and it the top query in that instance. Please suggest me what we shoud do to decrease it.
    Below is the query
    SELECT s.inst_id, s.name, i.instance_name
    FROM gv$active_services s, gv$instance i
    WHERE s.name = :p1 AND s.inst_id = i.inst_id

    Hi,
    We applied the patch 9482559 which was suggested by oracle for a different issue and after applying this patch the high concurrent dbsnmp sql issue is gone.

  • Concurrent program to be submitted y only one user at a time

    Hi
    I have an issue with one of my reports. The report is using temporary tables, those will under go insertion and deletion while the report is running. So, to make sure that two or more concurrent requests submitted for same report, will not conflict, I want to make my concurrent request to be submitted by only one user at a time.
    How can I do that?
    Any help is appreciated.
    Thanks
    BalaKrishna

    The "run alone" box should not be checked. This indicates that this program can only run when no others are running. Pl see MOS Doc 1078462.6 (Custom SQL Concurrent Program Returns NO MANAGER Error). This option should typically not be used.
    To be able to achieve what you need, set the incompatibility (as you have done) and then bounce the concurrent managers for the setting to take effect. Pl see these MOS Docs
    436186.1 - Cannot Make Concurrent Programs Incompatible With Itself
    142944.1 - How to Make a Concurrent Program Incompatible with Itself
    HTH
    Srini

  • SQL query or function...

    Hi everyone,
      Please help me to clarify this question
    I have a "patient" table and a "address" table.And each patient has differnt types of addresses
    like PMI,Mailing and default address i need to pick patient address in the order of preference
    (PMI,Mailing ,Default)
    I have two options to get the address of a patient.Either write a SQL query to get the address of a
    patient(according to preference)
    or write a function which checks
    if there is PMI,Mailing and default
      take PMI
    or
    If there is mailing and Default
    take mailing
    or
    take default.
    which one is the best method to get the address of a patient?  SQL query or function..
    Definitely everyone will say that it should be direct SQL query instead of multiple function calls.
    But in my organization there are many developers which will get "patient address" in their application
    or SQL code or PL/SQL code or from some
    'X' Business intelligence tool.
    At this scenario is it best to have a function which every one will call and get a standardized output
    for every one.
    Question:
    In my scenario which one is the best to have "SQL query or function"?
    if i choose "function" i have to sacrifice the performance
    if i choose "SQL query" i am not sure whether each and every developer querying the same way as it would be
    Sorry if it is a dumb question to ask.
    Thanks in advance
    phani

    question for hoek: what if i have to choose between SQL query and function? (suppose they dont accept to create a view)If views are not accepted (which is very strange imo), but you do need some 'standard object' which everybody can use, then you'd choose to use a function instead of everybody having 'their own query'.
    It's a trade-off between maintaining standards and performance (calling PL/SQL from SQL is usually to be avoided due to context-switching, the other way around is OK).
    One advantage of a view: no hassle with parameters you have to enter but never will use, you just pick the columns you need and there you go.
    Other one: it's straightforward, simple and clear.
    It's easier to maintain.
    But it all depends on what your function will return.
    Perhaps a REF CURSOR?
    Your question reminds me of this interesting discussion:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:672724700346558185
    Edited by: hoek on Jul 1, 2009 4:39 PM tyop's

  • Calling concurrent program from form giving problem

    hi
    i have designed one concurrent program
    this concurrent program in turn calls another concurrent program.
    when i run it using SRS it is running fine
    but when i am submitting from FORM it is giving following error
    ORACLE error 6550 in FDPSTP
    Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'XXPOS_MAIN'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    script in form
    declare
         l_request_id number;
         l_errbuf varchar2(30);
         l_retcode number;
    begin
    l_request_id := FND_REQUEST.SUBMIT_REQUEST('CUSTOM',     -- application
    'XXINVSIMREV',     -- program
    'Postpaid SIM Reversal after rejection',
    SYSDATE,     -- start_time (optional)
    FALSE, -- sub_request
    l_errbuf,l_retcode,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
                   IF l_request_id = 0 THEN     
                        fnd_message.set_string('Program submission for sim reversal into inventory is failure');
                        fnd_message.show;
                   else
                             fnd_message.set_string('Program submission for sim reversal into inventory is success for request id='||l_request_id);
                        fnd_message.show;
                        commit;
                   End if;
    end;

    There are so many restrictions and special circumstances for creating a custom form for Applications that you should ask this question in the Apps Forum (http://forums.oracle.com/forums/category.jspa?categoryID=3). People here might or might not have any experience with this. In the Apps Forums they definitely do.

Maybe you are looking for