Sei sulla pagina 1di 14

TO get the RESPONSBILITY associated with the Particular User

Select a.USER_NAME, a.EMPLOYEE_ID, b.RESPONSIBILITY_ID, c.RESPONSIBILITY_NAME, b.START_DATE, b.END_DATE from apps.FND_USER a, apps.FND_USER_RESP_GROUPS b, apps.FND_RESPONSIBILITY_VL c where a.USER_ID=b.USER_ID and b.RESPONSIBILITY_ID=c.RESPONSIBILITY_ID and user_name = UPPER('&user_name');

TO get the Role Name and the user start date


select user_start_date, user_end_date , role_name from apps.wf_local_user_roles where user_name= UPPER('&user_name');

TO Delete Concurrent program


begin fnd_program.delete_program ('short name of the concurrent program to be deleted','Schema'); fnd_program.delete_executable ('short name of the concurrent program to be deleted','Schema'); commit; end;

To Get Concurrent Program Detail


select FRVL.responsibility_name, e.executable_name, frg.request_group_name, user_concurrent_program_name from APPS.FND_CONCURRENT_PROGRAMS_TL P, APPS.FND_REQUEST_GROUP_UNITS U, apps.FND_REQUEST_GROUPS FRG, apps.FND_RESPONSIBILITY_VL FRVL, apps.FND_APPLICATION_VL FAV, APPS.FND_EXECUTABLES E, APPS.FND_CONCURRENT_PROGRAMS FCP where FRVL.request_group_id=u.request_group_id and u.request_unit_id = p.concurrent_program_id and executable_name like '%FNDSCARU%' and fcp.executable_id = e.executable_id and user_concurrent_program_name like 'Active Responsibilities and Users%' and fcp.concurrent_program_id = p.concurrent_program_id and FRG.request_group_id = U.request_Group_id and FRVL.request_group_id = frg.request_group_id and frg.application_id = fav.application_id;

AND
select --DISTINCT con.APPLICATION_ID ,con.CONCURRENT_PROGRAM_ID ,con.EXECUTABLE_ID ,con.EXECUTABLE_APPLICATION_ID ,exe.USER_EXECUTABLE_NAME ,resp.responsibility_name ,con.CONCURRENT_PROGRAM_NAME ,con.USER_CONCURRENT_PROGRAM_NAME "USER_CONCURRENT_PROGRAM_NAME" from FND_CONCURRENT_PROGRAMS_VL con ,FND_EXECUTABLES_FORM_V exe ,fnd_responsibility_vl resp ,fnd_responsibility_tl FNRTL ,fnd_request_group_units rgu ,fnd_responsibility fr ,FND_APPLICATION_TL FAPP ,APPS.FND_REQUEST_GROUPS FRG ,FND_CONCURRENT_PROGRAMS FCP ,FND_CONCURRENT_PROGRAMS_VL FCPL

where con.EXECUTABLE_ID=exe.EXECUTABLE_ID AND FRG.APPLICATION_ID =FAPP.APPLICATION_ID AND FRG.APPLICATION_ID = RGU.APPLICATION_ID AND FRG.REQUEST_GROUP_ID = RGU.REQUEST_GROUP_ID AND resp.request_group_id = rgu.request_group_id AND FRG.REQUEST_GROUP_ID = FR.REQUEST_GROUP_ID AND FR.RESPONSIBILITY_ID = FNRTL.RESPONSIBILITY_ID AND rgu.request_unit_id = con.concurrent_program_id AND resp.responsibility_id = fr.responsibility_id AND RGU.REQUEST_UNIT_ID = FCP.CONCURRENT_PROGRAM_ID AND RGU.UNIT_APPLICATION_ID = FCP.APPLICATION_ID AND FCP.CONCURRENT_PROGRAM_ID = FCPL.CONCURRENT_PROGRAM_ID AND fr.request_group_id = rgu.request_group_id AND upper(FCPL.USER_CONCURRENT_PROGRAM_NAME) = upper('xxtask') AND exe.USER_EXECUTABLE_NAME='xxtask';

AND
select DISTINCT con.APPLICATION_ID ,con.CONCURRENT_PROGRAM_ID ,con.EXECUTABLE_ID ,con.EXECUTABLE_APPLICATION_ID ,exe.USER_EXECUTABLE_NAME ,resp.responsibility_name ,con.CONCURRENT_PROGRAM_NAME ,con.USER_CONCURRENT_PROGRAM_NAME from FND_CONCURRENT_PROGRAMS_VL con ,FND_EXECUTABLES_FORM_V exe ,fnd_responsibility_vl resp ,fnd_request_group_units rgu where con.EXECUTABLE_ID=exe.EXECUTABLE_ID AND exe.USER_EXECUTABLE_NAME='xxtask' AND resp.request_group_id = rgu.request_group_id AND rgu.request_unit_id = con.concurrent_program_id

Application information and patch level


This query is great for determining the current patch level and status of the various application components within your Oracle system. select application_name ,product_code ,product_version ,DECODE(status, 'I', 'Installed', 'L', 'Custom', 'N', 'Not Installed', 'S', 'Shared Product') as status ,patch_level ,basepath ,tablespace from fnd_application_vl fav ,fnd_product_installations fpi where fav.application_id = fpi.application_id order by application_name

Concurrent Request Run times


Lists all concurrent requests started within the past day and their run times. Useful for analyzing concurrent program run times and identifying poorly performing programs.

select request_id, fcpt.user_concurrent_program_name, completion_text, actual_start_date, actual_completion_date, -- to_date(nvl(actual_completion_date, sysdate actual_start_date,actual_completion_date - actual_start_date) 'HH:MM:SS') duration from fnd_concurrent_requests fcr, fnd_concurrent_programs fcp, fnd_concurrent_programs_tl fcpt where fcr.concurrent_program_id = fcp.concurrent_program_id and fcp.concurrent_program_id = fcpt.concurrent_program_id and fcr.actual_start_date > sysdate - 1 order by actual_completion_date - actual_start_date desc

All responsibilities for current user


select fu.user_name, frt.responsibility_name from fnd_user fu, fnd_user_resp_groups furg, fnd_responsibility fr, fnd_responsibility_tl frt where fu.user_id = furg.user_id and and and furg.responsibility_id = fr.responsibility_id fr.responsibility_id = frt.responsibility_id fu.user_name=UPPER('&user_name')

order by user_name;

List all invalid packages


select owner ,object_name ,object_id ,object_type ,status from all_objects where object_type IN ('PACKAGE', 'PACKAGE BODY') and status = 'INVALID'

order by owner, object_name;

Search all packages for line of code


SELECT * FROM all_source WHERE type in ('PACKAGE', 'PACKAGE BODY') AND upper(text) like ('%XXXX%')

Count of users connected to Oracle Apps


1: Use this SQL statement to Show number of concurrent_users connected to Oracle apps: select distinct d.user_name from apps.fnd_logins a, v$session b, v$process c, apps.fnd_user d where b.paddr = c.addr and a.pid=c.pid and a.spid = b.process and d.user_id = a.user_id

2: Use this SQL statement to count number of users connected to Oracle Apps in the past 1 hour. select count(distinct user_id) users from icx_sessions where

last_connect > sysdate 1/24 and user_id != -1; 3: Use this SQL statement to get number of users connected to Oracle Apps in the past 1 day. select count(distinct user_id) users from icx_sessions where last_connect > sysdate 1 and user_id != -1;

4: Use this SQL statement to get number of users connected to Oracle Apps in the last 15 minutes.

Select limit_time, limit_connects, to_char(last_connect, DD-MON-RR HH:MI:SS) Last Connection time, user_id, disabled_flag from icx_sessions where last_connect > sysdate 1/96;

Potrebbero piacerti anche