oracle EBS dba SQL scripts
admin
2023-05-02 22:23:40
0

-查看EBS用户的所有职责:

SELECT frt.responsibility_name, furg.END_DATE
  FROM fnd_user_resp_groups  furg,
       fnd_responsibility    fr,
       fnd_responsibility_tl frt,
       fnd_user              fu
 where fu.user_name = '&username'
   and fu.user_id=furg.user_id
   and furg.RESPONSIBILITY_ID = fr.responsibility_id
   and frt.responsibility_id=fr.responsibility_id
   --and furg.END_DATE is not null
 order by 1

----现有的请求时间排序

SELECT fcr.request_id request_id,
       TRUNC(((fcr.actual_completion_date - fcr.actual_start_date) /
             (1 / 24)) * 60) exec_time,
       fcr.actual_start_date start_date,
       fcp.concurrent_program_name conc_prog,
       fcpt.user_concurrent_program_name user_conc_prog
  FROM fnd_concurrent_programs    fcp,
       fnd_concurrent_programs_tl fcpt,
       fnd_concurrent_requests    fcr
 WHERE TRUNC(((fcr.actual_completion_date - fcr.actual_start_date) /
             (1 / 24)) * 60) > NVL('&min', 45)
   and fcr.concurrent_program_id = fcp.concurrent_program_id
   and fcr.program_application_id = fcp.application_id
   and fcr.concurrent_program_id = fcpt.concurrent_program_id
   and fcr.program_application_id = fcpt.application_id
   and fcpt.language = USERENV('Lang')
 ORDER BY TRUNC(((fcr.actual_completion_date - fcr.actual_start_date) /
                (1 / 24)) * 60) desc;

--查询各个模块的版本

select a.oracle_id,
       a.last_update_date,
       a.product_version,
       a.patch_level,
       decode(a.status,
              'I',
              'Installed',
              'S',
              'Shared',
              'N',
              'Not Installed',
              a.status) Status,
       a.industry,
       b.application_name,
       c.application_short_name
  from fnd_product_installations a, fnd_application_tl b, fnd_application c
 where a.application_id = b.application_id
   and a.application_id = c.application_id
   and b.language = 'US'
 order by c.application_short_name;

--检查定时任务

select
        fcr.request_id,
        fcr.parent_request_id,
        fu.user_name requestor,
        to_char(fcr.requested_start_date, 'MON-DD-YYYY HH24:MM:SS') START_DATE,
        fr.responsibility_key responsibility,
        fcp.concurrent_program_name,
        fcpt.user_concurrent_program_name,
        decode(fcr.status_code,
               'A', 'Waiting',
               'B', 'Resuming',
               'C', 'Normal',
               'D', 'Cancelled',
               'E', 'Error',
               'F', 'Scheduled',
               'G', 'Warning',
               'H', 'On Hold',
               'I', 'Normal',
               'M', 'No Manager',
               'Q', 'Standby',
               'R', 'Normal',
               'S', 'Suspended',
               'T', 'Terminating',
               'U', 'Disabled',
               'W', 'Paused',
               'X', 'Terminated',
               'Z', 'Waiting') status,
        decode(fcr.phase_code,
               'C', 'Completed',
               'I', 'Inactive',
               'P', 'Pending',
               'R', 'Running') phase,
        fcr.completion_text
from
        fnd_concurrent_requests fcr,
        fnd_concurrent_programs fcp,
        fnd_concurrent_programs_tl fcpt,
        fnd_user fu,
        fnd_responsibility fr
where
        fcr.status_code in ('Q', 'I') and
        fcr.hold_flag = 'N' and
        fcr.requested_start_date > sysdate and
        fu.user_id = fcr.requested_by and
        fcr.concurrent_program_id = fcp.concurrent_program_id and
        fcr.concurrent_program_id = fcpt.concurrent_program_id and
        fcr.responsibility_id = fr.responsibility_id
order by
        fcr.requested_start_date,  fcr.request_id;


--查看用户登录情况

SELECT user_name username,
       description name,
       to_char(b.first_connect, 'MM/DD/RR HH24:MI') firstconnect,
       to_char(b.last_connect, 'MM/DD/RR HH24:MI') lastconnect
  FROM apps.fnd_user a,
       (SELECT MIN(first_connect) first_connect,
               MAX(last_connect) last_connect,
               last_updated_by user_id
          FROM apps.icx_sessions
         GROUP BY last_updated_by) b
 WHERE a.user_id = b.user_id
   AND last_connect > SYSDATE - 3 / 12
 ORDER BY 4 DESC

相关内容

热门资讯

美军侦察机未经授权进入领空,奥... 【文/观察者网 熊超然】据“今日俄罗斯”(RT)当地时间5月13日报道,奥地利方面表示,该国已紧急出...
男子骑车闯红灯被罚,疑问“没车... 近日,一男子骑车时因闯红灯被处罚,后与交警产生对话,交警的回答被网友称赞为“教科书级别的科普”。司机...
他信,笑着出狱了 监狱大门打开的那一刻,泰国前总理他信微笑着张开双臂,拥抱小女儿佩通坦。佩通坦随后在社交媒体发布两人合...
冰箱漏电怎么测 1、可以用灯泡检查法来检测冰箱漏电,将36V灯泡的两根导线,一根接冰箱外壳(无漆处)另一根接大地,如...
电饭煲通电就跳闸怎么回事 如果之前电饭煲从未出现过跳闸现象,此现象为新出现的,有可能是插板或者是电饭煲发生故障导致的。首先可以...
空调外机有温度传感器损坏 最可能是温度传感器泄漏导致的这个原因。可以使用热毛巾加热温度检测管,将按钮设置为最低温度,并使用测试...
九阳铁釜电饭煲故障代码种类及解... 故障代码的种类很多,有E0表示电饭煲上盖热敏电阻故障,需要更换上盖的热门电阻;E1是热敏电阻故障,需...
九阳电饭锅的拆卸步骤 先拆锅底的四个小螺丝,然后将暴露出来的底拆开,然后拆卸电饭锅那儿的小盖板,用螺丝刀拆螺丝就行,然后将...
华南理工男生课堂偷拍女生被当场... 据羊城晚报消息,5月13日,一段“华南理工大学男生教室偷拍女生”视频在网络传播,相关事件引发热议。视...
偷税超900万被查的网红白冰:... 刚刚,因偷税超900万元被查的网红白冰发布近60分钟长视频,控诉前员工联合他人侵吞公司资金、设局陷害...