You are on page 1of 6

Concurrent Program Managing Queries

To get list of responsibilities.


SELECT (SELECT application_short_name
FROM fnd_application fa
WERE fa.application_id ! frt.application_id" application#
frt.responsibilit$_id# frt.responsibilit$_name
FROM apps.fnd_responsibilit$_tl frt%
!!!!!!!!!!!!!!!!!!!!!!
To get Men&s 'ssociated (ith responsibilit$
SELECT )*ST*+CT a.responsibilit$_name# c.&ser_men&_name
FROM apps.fnd_responsibilit$_tl a#
apps.fnd_responsibilit$ b#
apps.fnd_men&s_tl c#
apps.fnd_men&s d#
apps.fnd_application_tl e#
apps.fnd_application f
WERE a.responsibilit$_id(," ! b.responsibilit$_id
'+) a.responsibilit$_id ! -./0123
'+) b.men&_id ! c.men&_id
'+) b.men&_id ! d.men&_id
'+) e.application_id ! f.application_id
'+) f.application_id ! b.application_id
'+) a.L'+45'4E ! 65S6%
!!!!!!!!!!!!!!!!
To get s&bmen&s and F&nction attached to this Main men&.
SELECT c.prompt# c.description
FROM apps.fnd_men&s_tl a# fnd_men&_entries_tl c
WERE a.men&_id ! c.men&_id '+) a.&ser_men&_name ! 6F7 58
9': +a;igator6%
!!!!!!!!!!!!!!!!!
To get assigned responsibilit$ to a &ser.
SELECT 5+*<5E &.&ser_id# S5=STR (&.&ser_name# ># 1/" &ser_name#
S5=STR (r.responsibilit$_name# ># ?/" responsiblit$#
S5=STR (a.application_name# ># 0/" application
FROM fnd_&ser &#
fnd_&ser_resp_gro&ps g#
fnd_application_tl a#
fnd_responsibilit$_tl r
WERE g.&ser_id(," ! &.&ser_id
'+) g.responsibilit$_application_id ! a.application_id
'+) a.application_id ! r.application_id
'+) g.responsibilit$_id ! r.responsibilit$_id
OR)ER =: S5=STR (&ser_name# ># 1/"#
S5=STR (a.application_name# ># 0/"#
S5=STR (r.responsibilit$_name# ># ?/"%
!!!!!!!!!!!!!!!!
To get responsibilit$ and attached re@&est gro&ps.
SELECT responsibilit$_name responsibilit$# re@&est_gro&p_name#
frg.description
FROM fnd_re@&est_gro&ps frg# fnd_responsibilit$_;l fr;
WERE fr;.re@&est_gro&p_id ! frg.re@&est_gro&p_id
OR)ER =: responsibilit$_name
!!!!!!!!!!!!!!!!!
To get modiAed proAle options.
SELECT t.&ser_proAle_option_name# proAle_option_;al&e#
;.creation_date#
;.last_&pdate_date#
;.creation_date B ;.last_&pdate_date CChange )ateC#
(SELECT 5+*<5E &ser_name
FROM fnd_&ser
WERE &ser_id ! ;.created_b$" CCreated =$C#
(SELECT &ser_name
FROM fnd_&ser
WERE &ser_id ! ;.last_&pdated_b$" CLast 5pdate =$C
FROM fnd_proAle_options o#
fnd_proAle_option_;al&es ;#
fnd_proAle_options_tl t
WERE o.proAle_option_id ! ;.proAle_option_id
'+) o.application_id ! ;.application_id
'+) start_date_acti;e D! S:S)'TE
'+) +EL (end_date_acti;e# S:S)'TE" F! S:S)'TE
'+) o.proAle_option_name ! t.proAle_option_name
'+) le;el_id ! >///>
'+) t.L'+45'4E *+ (SELECT lang&age_code
FROM fnd_lang&ages
WERE installed_Gag ! 6=6
5+*O+
SELECT nls_lang&age
FROM fnd_lang&ages
WERE installed_Gag ! 6=6"
OR)ER =: &ser_proAle_option_name%
!!!!!!!!!!!!!!!!!
To get modiAed proAle options.
SELECT Hft.&ser_f&nction_name C5ser Form +ameC# Hcr.SE<5E+CE#
Hcr.description# Hcr.r&le_t$pe# Hcr.enabled# Hcr.trigger_e;ent#
Hcr.trigger_obIect# Hcr.condition# Hcr.Are_in_enter_@&er$#
(SELECT &ser_name
FROM fnd_&ser f&
WERE f&.&ser_id ! Hcr.created_b$" CCreated =$ C
FROM fnd_form_c&stom_r&les Hcr# fnd_form_f&nctions_;l Hft
WERE Hcr.*) ! Hft.f&nction_id
OR)ER =: >%
!!!!!!!!!!!!!!!!!!!!!
To get 9atch Le;el.
SELECT a.application_name#
)ECO)E (b.stat&s# 6*6# 6*nstalled6# 6S6# 6Shared6# 6+J'6" stat&s#
patch_le;el
FROM apps.fnd_application_;l a# apps.fnd_prod&ct_installations b
WERE a.application_id ! b.application_id%
!!!!!!!!!!!!!!!!
To get all F&nctions
SELECT f&nction_id# &ser_f&nction_name# creation_date# description
FROM appls$s.fnd_form_f&nctions_tl
order b$ order b$ &ser_f&nction_name%
!!!!!!!!!!!!!!
To get all Re@&est attached to a responsibilit$
SELECT responsibilit$_name # frg.re@&est_gro&p_name#
fcp;.&ser_conc&rrent_program_name# fcp;.description
FROM fnd_re@&est_gro&ps frg#
fnd_re@&est_gro&p_&nits frg&#
fnd_conc&rrent_programs_;l fcp;#
fnd_responsibilit$_;l fr;
WERE frg&.re@&est_&nit_t$pe ! 696
'+) frg&.re@&est_gro&p_id ! frg.re@&est_gro&p_id
'+) frg&.re@&est_&nit_id ! fcp;.conc&rrent_program_id
'+) fr;.re@&est_gro&p_id ! frg.re@&est_gro&p_id
OR)ER =: responsibilit$_name%
J%
!!!!!!!!!!!!!!!!!!!!
To get all re@&est (ith application
SELECT fa.application_short_name#
fcp;.&ser_conc&rrent_program_name#
description#
)ECO)E (fcp;.eKec&tion_method_code#
6=6# 6Re@&est Set Stage F&nction6#
6<6# 6S<LL9l&s6#
66# 6ost6#
6L6# 6S<LLLoader6#
6'6# 6Spa(ned6#
6*6# 69LJS<L Stored 9roced&re6#
696# 6Oracle Reports6#
6S6# 6*mmediate6#
fcp;.eKec&tion_method_code
" eKe_method#
o&tp&t_Ale_t$pe# program_t$pe# printer_name# minim&m_(idth#
minim&m_length# conc&rrent_program_name#
conc&rrent_program_id
FROM fnd_conc&rrent_programs_;l fcp;# fnd_application fa
WERE fcp;.application_id ! fa.application_id
OR)ER =: description
!!!!!!!!!!!!!!!
To Co&nt Mod&le Wise Report
SELECT fa.application_short_name#
)ECO)E (fcp;.eKec&tion_method_code#
6=6# 6Re@&est Set Stage F&nction6#
6<6# 6S<LL9l&s6#
66# 6ost6#
6L6# 6S<LLLoader6#
6'6# 6Spa(ned6#
6*6# 69LJS<L Stored 9roced&re6#
696# 6Oracle Reports6#
6S6# 6*mmediate6#
fcp;.eKec&tion_method_code
" eKe_method#
CO5+T (conc&rrent_program_id" CO5+T
FROM fnd_conc&rrent_programs_;l fcp;# fnd_application fa
WERE fcp;.application_id ! fa.application_id
4RO59 =: fa.application_short_name# fcp;.eKec&tion_method_code
OR)ER =: >%
!!!!!!!!!
To calc&late re@&est time
SELECT f.re@&est_id # pt.&ser_conc&rrent_program_name
&ser_conc&rrent_program_name
# f.act&al_start_date act&al_start_date
# f.act&al_completion_date act&al_completion_date#
Goor(((f.act&al_completion_dateB
f.act&al_start_date"L.7L?/L?/"J1?//"
MM 6 O5RS 6 MM
Goor((((f.act&al_completion_dateBf.act&al_start_date"L.7L?/L?/" B
Goor(((f.act&al_completion_dateB
f.act&al_start_date"L.7L?/L?/"J1?//"L1?//"J?/"
MM 6 M*+5TES 6 MM
ro&nd((((f.act&al_completion_dateBf.act&al_start_date"L.7L?/L?/" B
Goor(((f.act&al_completion_dateB
f.act&al_start_date"L.7L?/L?/"J1?//"L1?// B
(Goor((((f.act&al_completion_dateBf.act&al_start_date"L.7L?/L?/" B
Goor(((f.act&al_completion_dateB
f.act&al_start_date"L.7L?/L?/"J1?//"L1?//"J?/"L?/" ""
MM 6 SECS 6 time_diHerence
#
)ECO)E(p.conc&rrent_program_name#6'LEC)C6#p.conc&rrent_progra
m_nameMM6N6MMf.descriptionMM6O6#p.conc&rrent_program_name"
conc&rrent_program_name
# decode(f.phase_code#6R6#6R&nning6#6C6#6Complete6#f.phase_code"
9hase
# f.stat&s_code
FROM apps.fnd_conc&rrent_programs p
# apps.fnd_conc&rrent_programs_tl pt
# apps.fnd_conc&rrent_re@&ests f
WERE f.conc&rrent_program_id ! p.conc&rrent_program_id
and f.program_application_id ! p.application_id
and f.conc&rrent_program_id ! pt.conc&rrent_program_id
and f.program_application_id ! pt.application_id
'+) pt.lang&age ! 5SERE+E(6Lang6"
and f.act&al_start_date is not n&ll
OR)ER b$ f.act&al_completion_dateBf.act&al_start_date desc%
!!!!!!!!!!!!!!!!!
ChecP responsibilit$ assigned to a speciAc 5SER
SELECT 5+*<5E &.&ser_id# S5=STR (&.&ser_name# ># 1/" &ser_name#
S5=STR (r.responsibilit$_name# ># ?/" responsiblit$#
S5=STR (a.application_name# ># 0/" application
FROM fnd_&ser &#
fnd_&ser_resp_gro&ps g#
fnd_application_tl a#
fnd_responsibilit$_tl r
WERE g.&ser_id(," ! &.&ser_id
'+) g.responsibilit$_application_id ! a.application_id
'+) a.application_id ! r.application_id
'+) g.responsibilit$_id ! r.responsibilit$_id
and a.application_name ! 69&rchasing6
OR)ER =: S5=STR (&ser_name# ># 1/"#
S5=STR (a.application_name# ># 0/"#
S5=STR (r.responsibilit$_name# ># ?/"
!!!!!!!!!!!!!!!
ChecP C&rrent 'pplied 9atch
SELECT patch_name# patch_t$pe# maint_pacP_le;el# creation_date
FROM appls$s.ad_applied_patches
OR)ER =: creation_date )ESC
!!!!!!!!!!!!!!!!!

You might also like