我的编程空间,编程开发者的网络收藏夹
学习永远不晚

EBS 并发请求 计划 fnd_conc_release_classes

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

EBS 并发请求 计划 fnd_conc_release_classes

EBS并发请求中有可以设置计划用以定时运行,计划存储在 fnd_conc_release_classes 表中,通过release_class_id与请求表fnd_concurrent_requests关联。

详细信息如下:


RELEASE_CLASS_ID: 主键,与fnd_concurrent_requests关联.

CLASS_TYPE: contains value 'P' for "Periodic" schedules, 'S' for "on Specific Days" schedules and 'X' for "advanced schedules".  P:定期,S:在特定日期,X:高级

DATE1: start date of the schedule ("Start at" field in the form) 起始日期

DATE2: end date of the schedule ("End at" field in the form), as fnd_concurrent_requests.resubmit_end_date 终止日期

CLASS_INFO: this is the most interesting field as it contains all the information needed for rescheduling. The format of the field depends on the type of schedule. 因计划类型的不同,数据格式也随之出现差异.


"PERIODIC" schedule: 定期

In case of Periodic schedule fnd_conc_release_classes.CLASS_INFO field contains values like "2:D:S" or X:Y:Z where:

X – number of months/weeks/days/hours/minutes the request has to be rescheduled from prior run.

Y – contains a single letter representing units

"M" – months;

"D" – days;

"H" – hours;

"N" – minutes;

(there is no representation of "weeks" option. If you specify interval in weeks, it’s automatically calculated and stored in "days").

Z – contains a single letter to represent if the rescheduling has to be done from start or from completion of the prior run

S – from the start of the prior run;

C – from the completion of the prior run.

Some samples:

30:N:S – Repeat every 30 minutes from the start of the prior run

5:N:C – Repeat every 5 minutes from the completion of the prior run

12:H:S – Repeat every 12 hours from the start of the prior run

It’s interesting that information about intervals of periodic schedules is duplicated infnd_concurrent_requests table fields RESUBMIT_INTERVAL, RESUBMIT_INTERVAL_TYPE_CODE and RESUBMIT_INTERVAL_UNIT_CODE.


"ON SPECIFIC DAY" schedule: 在特定日期

In case of on Specific Day schedule fnd_conc_release_classes.CLASS_INFO field contains values like "000010000000000000000000000000010000000" – a 39 character value consisting of 0 and 1. The idea is that the placement of 1-s represent the options selected through form:

1-s at places 1 to 31 – represent dates, when request has to be run, eg, if the 10th character is "1" – the request is scheduled to run on 10th day of each month;

character "1" at the 32nd position – specifies that the request has to be run at the last day of each month;

1-s at places 33 to 39 – specifies days of week (Sunday – Saturday)the request has to be run. if the 33rd character is "1" – the request is scheduled to run each Sunday, if 34th – on Monday and so on.

Some samples:

000000000000000000000000000000000000001 – Days of week: Sa

111111111000000000000000000000000111110 – Dates: 1 2 3 4 5 6 7 8 9. Days of week: Mo Tu We Th Fr

000000000000000000000000000000010000000 – Last day of month


最后,奉上一段SQL:

SELECT r.Request_Id,
       p.User_Concurrent_Program_Name || CASE
           WHEN p.User_Concurrent_Program_Name = 'Report Set' THEN
            (SELECT ' - ' || s.User_Request_Set_Name
               FROM Fnd_Request_Sets_Tl s
              WHERE s.Application_Id = r.Argument1
                AND s.Request_Set_Id = r.Argument2
                AND LANGUAGE = 'US')
           WHEN p.User_Concurrent_Program_Name = 'Check Periodic Alert' THEN
            (SELECT ' - ' || a.Alert_Name
               FROM Alr_Alerts a
              WHERE a.Application_Id = r.Argument1
                AND a.Alert_Id = r.Argument2
                AND LANGUAGE = 'US')
       END Concurrent_Program_Name,
       CASE
           WHEN p.User_Concurrent_Program_Name != 'Report Set' AND
                p.User_Concurrent_Program_Name != 'Check Periodic Alert' THEN
            r.Argument_Text
       END Argument_Text,
       r.Requested_Start_Date Next_Run,
       r.Hold_Flag On_Hold,
       Decode(c.Class_Type,
              'P',
              'Periodic',
              'S',
              'On Specific Days',
              'X',
              'Advanced',
              c.Class_Type) Schedule_Type,
       CASE
           WHEN c.Class_Type = 'P' THEN
            'Repeat every ' ||
            Substr(c.Class_Info, 1, Instr(c.Class_Info, ':') - 1) ||
            Decode(Substr(c.Class_Info,
                          Instr(c.Class_Info, ':', 1, 1) + 1,
                          1),
                   'N',
                   ' minutes',
                   'M',
                   ' months',
                   'H',
                   ' hours',
                   'D',
                   ' days') ||
            Decode(Substr(c.Class_Info,
                          Instr(c.Class_Info, ':', 1, 2) + 1,
                          1),
                   'S',
                   ' from the start of the prior run',
                   'C',
                   ' from the completion of the prior run')
           WHEN c.Class_Type = 'S' THEN
            Nvl2(Dates.Dates, 'Dates: ' || Dates.Dates || '. ', NULL) ||
            Decode(Substr(c.Class_Info, 32, 1), '1', 'Last day of month ') ||
            Decode(Sign(To_Number(Substr(c.Class_Info, 33))),
                   '1',
                   'Days of week: ' ||
                   Decode(Substr(c.Class_Info, 33, 1), '1', 'Su ') ||
                   Decode(Substr(c.Class_Info, 34, 1), '1', 'Mo ') ||
                   Decode(Substr(c.Class_Info, 35, 1), '1', 'Tu ') ||
                   Decode(Substr(c.Class_Info, 36, 1), '1', 'We ') ||
                   Decode(Substr(c.Class_Info, 37, 1), '1', 'Th ') ||
                   Decode(Substr(c.Class_Info, 38, 1), '1', 'Fr ') ||
                   Decode(Substr(c.Class_Info, 39, 1), '1', 'Sa '))
       END Schedule,
       c.Date1 Start_Date,
       c.Date2 End_Date,
       c.Class_Info
  FROM Fnd_Concurrent_Requests r,
       Fnd_Conc_Release_Classes c,
       Fnd_Concurrent_Programs_Tl p,
       (SELECT Release_Class_Id,
               Substr(MAX(Sys_Connect_By_Path(s, ' ')), 2) Dates
          FROM (SELECT Release_Class_Id,
                       Rank() Over(PARTITION BY Release_Class_Id ORDER BY s) a,
                       s
                  FROM (SELECT c.Class_Info,
                               l,
                               c.Release_Class_Id,
                               Decode(Substr(c.Class_Info, l, 1),
                                      '1',
                                      To_Char(l)) s
                          FROM (SELECT LEVEL l FROM Dual CONNECT BY LEVEL <= 31),
                               Fnd_Conc_Release_Classes c
                         WHERE c.Class_Type = 'S')
                 WHERE s IS NOT NULL)
        CONNECT BY PRIOR
                    (a || Release_Class_Id) = (a - 1) || Release_Class_Id
         START WITH a = 1
         GROUP BY Release_Class_Id) Dates
 WHERE r.Phase_Code = 'P'
   AND c.Application_Id = r.Release_Class_App_Id
   AND c.Release_Class_Id = r.Release_Class_Id
   AND Nvl(c.Date2, SYSDATE + 1) > SYSDATE
   AND c.Class_Type IS NOT NULL
   AND p.Concurrent_Program_Id = r.Concurrent_Program_Id
   AND p.Application_Id = r.Program_Application_Id
   AND p.Language = 'US'
   AND Dates.Release_Class_Id(+) = r.Release_Class_Id
 ORDER BY On_Hold, Next_Run;


免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

EBS 并发请求 计划 fnd_conc_release_classes

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

OAF中如何提交并发请求

这篇文章将为大家详细讲解有关OAF中如何提交并发请求,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。到EBS应用服务器上下载class文件(路径:$JAVA_TOP/oracle/apps/fnd/cp/r
2023-06-03

java高并发请求怎么解决

在处理高并发请求时,可以采取以下几种方法来解决:1. 使用线程池:可以使用线程池来管理并发请求的处理。通过线程池,可以限制同时执行的线程数量,以避免系统资源被耗尽。2. 优化代码:对于需要执行时间较长的操作,可以对代码进行优化,减少执行时间
2023-08-11

python怎么并发上千个请求

在Python中实现并发上千个请求有多种方法。以下是一些常用的方法:使用多线程:可以使用threading模块创建和管理多个线程,并发发送请求。每个线程可以负责发送一个请求。可以使用线程池来管理和控制线程的数量。import threadi
python怎么并发上千个请求
2024-02-29

springboot并发请求上限如何解决

Spring Boot 的并发请求上限主要由服务器的配置和硬件性能决定,可以通过以下几种方式来解决:1. 调整服务器的配置:可以增加服务器的线程池大小或连接池大小,以增加服务器处理并发请求的能力。具体的配置方式与服务器的类型有关,可以参考服
2023-08-23

Apache Tomcat怎么高并发处理请求

这篇文章给大家分享的是有关Apache Tomcat怎么高并发处理请求的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。介绍作为常用的http协议服务器,tomcat应用非常广泛。tomcat也是遵循Servelt协
2023-06-29

编程热搜

目录