100% found this document useful (1 vote)
683 views

Oracle Ebs SQL Queries

This document provides two SQL queries to retrieve profile option values at different levels (site, application, responsibility, user) and details about concurrent programs including the executable, execution method, and program name. The first query joins several tables to return the profile option name, value, level, and context. The second query returns details about concurrent programs by joining tables for executables, applications, and concurrent programs, filtering on the program name.

Uploaded by

mutthu_mh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
683 views

Oracle Ebs SQL Queries

This document provides two SQL queries to retrieve profile option values at different levels (site, application, responsibility, user) and details about concurrent programs including the executable, execution method, and program name. The first query joins several tables to return the profile option name, value, level, and context. The second query returns details about concurrent programs by joining tables for executables, applications, and concurrent programs, filtering on the program name.

Uploaded by

mutthu_mh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Problem

Get values set for a profile option at various levels (Site, Application, Responsibility, User)

Solution

Use below query

SELECT p.profile_option_name short_name, n.user_profile_option_name NAME,
TO_CHAR (v.last_update_date, 'DD-MON-RR') "Last Updated",
DECODE (v.level_id,
10001, 'Site',
10002, 'Application',
10003, 'Responsibility',
10004, 'User',
10005, 'Server',
10007, 'SERVRESP',
'UnDef'
) level_set,
DECODE (TO_CHAR (v.level_id),
'10001', '',
'10002', app.application_short_name,
'10003', rsp.responsibility_key,
'10005', svr.node_name,
'10006', org.NAME,
'10004', usr.user_name,
'10007', 'Serv/resp',
'UnDef'
) "CONTEXT",
v.profile_option_value VALUE
FROM fnd_profile_options p,
fnd_profile_option_values v,
fnd_profile_options_tl n,
fnd_user usr,
fnd_application app,
fnd_responsibility rsp,
fnd_nodes svr,
hr_operating_units org
WHERE p.profile_option_id = v.profile_option_id(+)
AND p.profile_option_name = n.profile_option_name
AND usr.user_id(+) = v.level_value
AND rsp.application_id(+) = v.level_value_application_id
AND rsp.responsibility_id(+) = v.level_value
AND app.application_id(+) = v.level_value
AND svr.node_id(+) = v.level_value
AND org.organization_id(+) = v.level_value
--AND p.profile_option_name IN ('ORG_ID')
--AND v.profile_option_value = '204'
--AND n.user_profile_option_name like 'MO%O%'
ORDER BY short_name, level_set;


Problem

Get concurrent program details (Executable, execution method, program name)

Solution

Use below query

SELECT prog.user_concurrent_program_name, prog.concurrent_program_name,
appl.application_name, prog.description, exe.executable_name,
(SELECT meaning
FROM fnd_lookup_values_vl flv
WHERE UPPER (flv.lookup_type) =
'CP_EXECUTION_METHOD_CODE'
AND flv.lookup_code = exe.execution_method_code) execution_method,
exe.execution_file_name
FROM fnd_executables exe,
fnd_application_tl appl,
fnd_concurrent_programs_vl prog
WHERE prog.application_id = appl.application_id
AND exe.executable_id = prog.executable_id
AND prog.user_concurrent_program_name LIKE '%User%f%' -- Replace with your Concurrent Program
Name

You might also like