0% found this document useful (0 votes)
42 views

Appsdbawiki Ebs Scripts

The document contains several SQL scripts for querying Oracle E-Business Suite (EBS) databases. The scripts provide information about EBS products, profile option changes, user responsibilities, scheduled requests, temporary tablespace usage, user details, and workflow services.

Uploaded by

Lokesh kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Appsdbawiki Ebs Scripts

The document contains several SQL scripts for querying Oracle E-Business Suite (EBS) databases. The scripts provide information about EBS products, profile option changes, user responsibilities, scheduled requests, temporary tablespace usage, user details, and workflow services.

Uploaded by

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

Oracle EBS Scripts

/* EBS Product Details */

SELECT fa.application_short_name,
fat.application_name,
DECODE (fpi.status,
'I', 'installed',
'L', 'custom',
'N', 'not installed',
'S', 'installed as shared product')
INSTALLATION_STATUS,
fpi.product_version,
fpi.patch_level
FROM fnd_application fa,
fnd_application_tl fat,
fnd_product_installations fpi
WHERE fa.application_id = fat.application_id
AND fpi.application_id = fat.application_id
AND fat.language = 'US'
ORDER BY 1;

/* Profile Change Check */

SELECT tl.user_profile_option_name "Profile Option",


DECODE (val.level_id,
10001, 'Site',
10002, 'Application',
10003, 'Responsibility',
10004, 'User',
10005, 'Server',
10006, 'Organization',
10007, 'Server+Resp',
'No idea, boss')
"Option Level",
DECODE (
val.level_id,
10001, 'EVERYWHERE!',
10002, (SELECT application_name
FROM fnd_application_tl
WHERE application_id = val.level_value),
10003, (SELECT responsibility_name
FROM fnd_responsibility_tl
WHERE responsibility_id = val.level_value
AND application_id = val.level_value_application_id),
10004, (SELECT user_name
FROM fnd_user
WHERE user_id = val.level_value),
10005, (SELECT HOST || '.' || domain
FROM fnd_nodes
WHERE node_id = val.level_value),
10006, (SELECT name
FROM hr_all_organization_units
WHERE organization_id = val.level_value),
10007, 'Look it up' --per specification El-Ay-Zed-why
,

Krishnamoorthy Rasappan Page 1


appsdbawiki
Oracle EBS Scripts

'''Tis a mystery')
"Set for",
val.profile_option_value "Value",
val.last_update_date "Set on",
usr.user_name "Set By",
val.profile_option_id
FROM fnd_profile_options opt,
fnd_profile_option_values val,
fnd_profile_options_tl tl,
fnd_user usr
WHERE opt.profile_option_id = val.profile_option_id
AND opt.profile_option_name = tl.profile_option_name
/*and regexp_like( tl.user_profile_option_name
, '(trace|log|debug|audit|diag|sql)'
, 'i'
)
and not(regexp_like( tl.user_profile_option_name
, '(catalog|file|login|utilities)'
, 'i'
)
)*/
AND usr.user_id = val.last_updated_by
AND usr.user_name NOT IN ('AUTOINSTALL', 'INITIAL SETUP', 'ANONYMOUS')
AND val.last_update_date > SYSDATE - 5
--and tl.user_profile_option_name = 'RCV: Processing Mode'
ORDER BY val.last_update_date DESC;

/* Responsibility attached to user */

SELECT SUBSTR (fu.user_name, 1, 30) user_name,


fr.responsibility_id,
frt.RESPONSIBILITY_NAME,
fr.*
FROM fnd_user_resp_groups furg,
FND_RESPONSIBILITY fr,
fnd_responsibility_tl frt,
fnd_user fu
WHERE fu.user_name LIKE '<username>'
AND fu.user_id = furg.user_id
AND furg.responsibility_id = fr.RESPONSIBILITY_ID
AND frt.responsibility_id = fr.RESPONSIBILITY_ID
AND frt.application_id = fr.application_id
AND furg.responsibility_application_id = fr.application_id
AND furg.end_date IS NULL
ORDER BY 1;

/* Scheduled Requests Between Time */

SELECT r.request_id,
p.user_concurrent_program_name,
r.requested_start_date next_run,
argument_text,
user_name

Krishnamoorthy Rasappan Page 2


appsdbawiki
Oracle EBS Scripts

FROM apps.fnd_concurrent_requests r,
applsys.fnd_conc_release_classes c,
apps.fnd_concurrent_programs_tl p,
apps.fnd_user usr,
( SELECT release_class_id,
SUBSTR (MAX (SYS_CONNECT_BY_PATH (s, ' ')), 2) dates,
a
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),
apps.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
GROUP BY release_class_id, a) 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
AND usr.user_id = requested_by
AND r.requested_start_date BETWEEN TO_DATE ('2012-05-09 09:50:00',
'YYYY-MM-DD hh24:mi:ss')
AND TO_DATE ('2012-05-09 10:00:00',
'YYYY-MM-DD hh24:mi:ss')
ORDER BY requested_by, next_run;

/* Temp TB Usage */

SELECT A.tablespace_name tablespace,


D.mb_total,
SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_used,
D.mb_total - SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_free
FROM v$sort_segment A,
( SELECT B.name, C.block_size, SUM (C.bytes) / 1024 / 1024 mb_total
FROM v$tablespace B, v$tempfile C
WHERE B.ts# = C.ts#

Krishnamoorthy Rasappan Page 3


appsdbawiki
Oracle EBS Scripts

GROUP BY B.name, C.block_size) D


WHERE A.tablespace_name = D.name
GROUP BY A.tablespace_name, D.mb_total;

/* User Details */

SELECT DISTINCT fu.user_name employee_number, papf.full_name, fu.end_date


FROM per_all_people_f papf, fnd_user fu
WHERE papf.person_id(+) = fu.employee_id
ORDER BY 1;

/* Find the users who are assigned with particular program / function */

SELECT DISTINCT fu.user_name, papf.full_name, frt.RESPONSIBILITY_NAME --


furg.end_date
FROM fnd_user_resp_groups furg,
FND_RESPONSIBILITY fr,
fnd_responsibility_tl frt,
per_all_people_f papf,
fnd_user fu
WHERE frt.RESPONSIBILITY_NAME IN
(SELECT DISTINCT frv.responsibility_name
FROM fnd_request_groups frg,
fnd_request_group_units frgu,
fnd_concurrent_programs_vl fcpv,
fnd_responsibility_vl frv
WHERE fcpv.user_concurrent_program_name IN
('Program - Automatic Posting', 'Posting')
AND frgu.request_group_id = frg.request_group_id
AND frgu.request_unit_id = fcpv.concurrent_program_id
AND frv.request_group_id = frg.request_group_id)
AND fu.user_id = furg.user_id
AND papf.person_id = fu.employee_id
AND furg.responsibility_id = fr.RESPONSIBILITY_ID
AND frt.responsibility_id = fr.RESPONSIBILITY_ID
ORDER BY 1;

/* Workflow Services Check */

SELECT --fcq.USER_CONCURRENT_QUEUE_NAME,
fsc.COMPONENT_NAME,
DECODE (fcp.OS_PROCESS_ID, NULL, 'Not Running', fcp.OS_PROCESS_ID)
"Proc ID",
fcq.MAX_PROCESSES "Target Process",
fcq.RUNNING_PROCESSES "Actual Process",
v.PARAMETER_VALUE "# of Threads",
fcq.ENABLED_FLAG "Enabled",
fsc.COMPONENT_ID,
fsc.CORRELATION_ID,
fsc.STARTUP_MODE,
fsc.COMPONENT_STATUS
FROM APPS.FND_CONCURRENT_QUEUES_VL fcq,
APPS.FND_CP_SERVICES fcs,
APPS.FND_CONCURRENT_PROCESSES fcp,

Krishnamoorthy Rasappan Page 4


appsdbawiki
Oracle EBS Scripts

fnd_svc_components fsc,
FND_SVC_COMP_PARAM_VALS_V v
WHERE v.COMPONENT_ID = fsc.COMPONENT_ID
AND fcq.MANAGER_TYPE = fcs.SERVICE_ID
AND fcs.SERVICE_HANDLE = 'FNDCPGSC'
AND fsc.concurrent_queue_id = fcq.concurrent_queue_id(+)
AND fcq.concurrent_queue_id = fcp.concurrent_queue_id(+)
AND fcq.application_id = fcp.queue_application_id(+)
AND fcp.process_status_code(+) = 'A'
AND v.PARAMETER_NAME = 'PROCESSOR_IN_THREAD_COUNT'
ORDER BY fcp.OS_PROCESS_ID, fsc.STARTUP_MODE;

/* XML Version */

SELECT DECODE (bug_number,


'3554613', '4.5.0',
'3263588', 'XDO.H',
'3822219', '5.0.0',
'4236958', '5.0.1',
'4206181', '5.5.0',
'4561451', '5.6.0',
'4905678', '5.6.1',
'5097966', '5.6.2',
'5472959', '5.6.3')
PATCH,
bug_number
FROM ad_bugs
WHERE bug_number IN
('3554613',
'3263588',
'3822219',
'4236958',
'4206181',
'4561451',
'4905678',
'5097966',
'5472959');

/* XML Template Update */

SELECT lob_type,
application_short_name,
lob_code,
LANGUAGE,
territory,
file_name,
xdo_file_type
FROM xdo_lobs
WHERE lob_code LIKE 'XXTK_AR_COMM_REPORT%';

DELETE FROM xdo_lobs


WHERE lob_code LIKE 'XXTK_AR_COMM_REPORT%'
AND lob_type IN ('TEMPLATE', 'TEMPLATE_SOURCE')
AND territory = 'US'

Krishnamoorthy Rasappan Page 5


appsdbawiki
Oracle EBS Scripts

AND LANGUAGE = 'en';

COMMIT;

UPDATE apps.xdo_templates_b
SET created_by = 0
WHERE template_code = 'XXTK_AR_COMM_REPORT';

SELECT * FROM XDO_TEMPLATES_B;

SELECT * FROM XDO_TEMPLATES_TL;

SELECT * FROM XDO_DS_DEFINITIONS_B;

SELECT * FROM XDO_DS_DEFINITIONS_TL;

/* Concurrent Request History for Last XX days */

SELECT f.user_name "Requestor",


a.actual_start_date "Start Date",
ctl.user_concurrent_program_name "Concurrent Program Name",
request_id "Request Id",
a.argument_text,
--phase_code,
--status_code,
TO_CHAR (actual_start_date, 'hh24:mi') "Start Time",
TO_CHAR (actual_completion_date, 'hh24:mi') "Completion Time",
( (NVL (actual_completion_date, SYSDATE) - actual_start_date) * 1440)
"RunTime - In Minutes"
FROM APPLSYS.fnd_Concurrent_requests a,
APPLSYS.fnd_concurrent_processes b,
applsys.fnd_concurrent_queues q,
APPLSYS.fnd_concurrent_programs c,
APPLSYS.fnd_concurrent_programs_tl ctl,
APPLSYS.fnd_user f
WHERE a.controlling_manager = b.concurrent_process_id
AND a.concurrent_program_id = c.concurrent_program_id
AND a.program_application_id = c.application_id
AND b.queue_application_id = q.application_id
AND b.concurrent_queue_id = q.concurrent_queue_id
AND ctl.concurrent_program_id = c.concurrent_program_id
AND a.requested_by = f.user_id
AND ctl.language = 'US'
--and actual_completion_date --between to_date('2012-03-09 09:00:00', 'YYYY-MM-
DD hh24:mi:ss') and to_date('2012-03-09 11:59:00', 'YYYY-MM-DD hh24:mi:ss')
AND TRUNC (actual_completion_date) = TRUNC (SYSDATE - 14)
AND actual_start_date IS NOT NULL
AND actual_completion_date IS NOT NULL
AND ctl.user_concurrent_program_name LIKE '<Program_Name>'
--and ((nvl(actual_completion_date,sysdate)-actual_start_date)*1440) > 30
ORDER BY actual_start_date DESC;

/* Pending Request for a particular User */

Krishnamoorthy Rasappan Page 6


appsdbawiki
Oracle EBS Scripts

SELECT r.request_id "Request ID",


DECODE (r.phase_code,
'C', 'Completed',
'I', 'Inactive',
'P', 'Pending',
'R', 'Running',
r.phase_code)
Phase,
DECODE (r.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',
r.status_code)
Status,
DECODE (r.hold_flag, 'Y', 'INACTIVE-HOLD', 'N', '', r.hold_flag)
"ON_HOLD?",
p.user_concurrent_program_name "Program Name",
--r.requested_start_date next_run,
argument_text,
user_name "REQUESTOR",
ACTUAL_COMPLETION_DATE
FROM apps.fnd_concurrent_requests r,
applsys.fnd_conc_release_classes c,
apps.fnd_concurrent_programs_tl p,
apps.fnd_user usr,
( SELECT release_class_id,
SUBSTR (MAX (SYS_CONNECT_BY_PATH (s, ' ')), 2) dates,
a
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))

Krishnamoorthy Rasappan Page 7


appsdbawiki
Oracle EBS Scripts

s
FROM (SELECT LEVEL l
FROM DUAL
CONNECT BY LEVEL <= 31),
apps.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
GROUP BY release_class_id, a) dates
WHERE -- r.phase_code in ('P','I')
CONCAT (r.phase_code, r.status_code) NOT IN ('CC', 'CI', 'CR')
--and concat(r.phase_code,r.status_code,r.hold_flag) not in ('PCN','PIN','PRN')
--and
--r.status_code not in 'C'
--and r.hold_flag
--and r.hold_flag = 'Y'
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
AND usr.user_id = requested_by
AND user_name = '<User_Name>'
--order by requested_by, next_run;
ORDER BY 3;

/* Processes writing to trace files */

SELECT v$process.spid,
u_dump.VALUE
|| '/'
|| db_name.VALUE
|| '_ora_'
|| v$process.spid
|| NVL2 (v$process.traceid, '_' || v$process.traceid, NULL)
|| '.trc'
"Trace File"
FROM v$parameter u_dump
CROSS JOIN v$parameter db_name
CROSS JOIN v$process
JOIN v$session
ON v$process.addr = v$session.paddr
WHERE u_dump.name = 'user_dump_dest' AND db_name.name = 'db_name';

/* Particular Program History in last XX Days */

SELECT TRUNC (Start_Date), Concurrent_Program_Name, COUNT (*)


FROM (SELECT f.user_name "Submitted_By",
a.actual_start_date Start_Date,

Krishnamoorthy Rasappan Page 8


appsdbawiki
Oracle EBS Scripts

ctl.user_concurrent_program_name Concurrent_Program_Name,
request_id "Request Id",
a.argument_text
--a. concurrent_program_id,
--count (a.concurrent_program_id)
FROM APPLSYS.fnd_Concurrent_requests a,
APPLSYS.fnd_concurrent_processes b,
applsys.fnd_concurrent_queues q,
APPLSYS.fnd_concurrent_programs c,
APPLSYS.fnd_concurrent_programs_tl ctl,
APPLSYS.fnd_user f
WHERE a.controlling_manager = b.concurrent_process_id
AND a.concurrent_program_id = c.concurrent_program_id
AND a.program_application_id = c.application_id
AND b.queue_application_id = q.application_id
AND b.concurrent_queue_id = q.concurrent_queue_id
AND ctl.concurrent_program_id = c.concurrent_program_id
AND ctl.language = 'US'
AND actual_completion_date BETWEEN TO_DATE (
'2012-05-08 10:00:00',
'YYYY-MM-DD hh24:mi:ss')
AND TO_DATE (
'2012-05-09 10:59:00',
'YYYY-MM-DD hh24:mi:ss')
AND actual_start_date IS NOT NULL
AND actual_completion_date IS NOT NULL
AND a.requested_by = f.user_id
AND ctl.user_concurrent_program_name LIKE '%TKM%GT%' --order by
actual_start_date desc;
)
GROUP BY TRUNC (start_date), Concurrent_Program_Name;

/* Incompatability Details */

SELECT a2.application_name,
a1.user_concurrent_program_name,
DECODE (running_type,
'P', 'Program',
'S', 'Request set',
'UNKNOWN')
"Type",
--b2.application_name "Incompatible App",
b1.user_concurrent_program_name "Incompatible_Prog",
DECODE (to_run_type, 'P', 'Program', 'S', 'Request set', 'UNKNOWN')
incompatible_type
FROM apps.fnd_concurrent_program_serial cps,
apps.fnd_concurrent_programs_tl a1,
apps.fnd_concurrent_programs_tl b1,
apps.fnd_application_tl a2,
apps.fnd_application_tl b2
WHERE a1.application_id = cps.running_application_id
AND a1.concurrent_program_id = cps.running_concurrent_program_id
AND a2.application_id = cps.running_application_id

Krishnamoorthy Rasappan Page 9


appsdbawiki
Oracle EBS Scripts

AND b1.application_id = cps.to_run_application_id


AND b1.concurrent_program_id = cps.to_run_concurrent_program_id
AND b2.application_id = cps.to_run_application_id
AND a1.language = 'US'
AND a2.language = 'US'
AND b1.language = 'US'
AND b2.language = 'US'
AND b1.user_concurrent_program_name LIKE '<PROG_NAME>'
--and b2.application_name in ('Assets')--,'Payables','Application Object Library','General
Ledger','Inventory','Receivables','Purchasing','Applications DBA');

/* Create User using pl/sql */

DECLARE
v_session_id INTEGER := userenv('sessionid');
v_user_name VARCHAR2(30) := UPPER('TESTXYZ1');

BEGIN
--Note, can be executed only when you have apps password.
-- Call the procedure to Create FND User
fnd_user_pkg.createuser (
x_user_name => v_user_name,
x_owner => '',
x_unencrypted_password => 'Welcome@123',
x_session_number => v_session_id,
x_start_date => SYSDATE - 10,
x_end_date => SYSDATE + 100,
x_last_logon_date => SYSDATE - 10,
x_description => 'TEST SCRIPT',
x_password_date => SYSDATE - 10,
x_password_accesses_left => 10000,
x_password_lifespan_accesses => 10000,
x_password_lifespan_days => 10000 --,x_employee_id => 30
/*Change this id by running below SQL*/
/*
SELECT person_id
,full_name
FROM per_all_people_f
WHERE upper(full_name) LIKE '%' || upper('<ampersand>full_name') || '%'
GROUP BY person_id
,full_name
*/
,
x_email_address => '[email protected]',
x_fax => '',
x_customer_id => '',
x_supplier_id => '');
fnd_user_pkg.addresp (username => v_user_name,
resp_app => 'SYSADMIN',
resp_key => 'SYSTEM_ADMINISTRATOR',
security_group => 'STANDARD',
description => 'Auto Assignment',
start_date => SYSDATE - 10,
end_date => SYSDATE + 1000);

Krishnamoorthy Rasappan Page 10


appsdbawiki
Oracle EBS Scripts

COMMIT;
END;
/

/* Trace Enabled Concurrent Programs */

SELECT CONCURRENT_PROGRAM_NAME, USER_CONCURRENT_PROGRAM_NAME,


enable_trace
FROM FND_CONCURRENT_PROGRAMS_VL
WHERE enable_trace = 'Y';

/* Manager and the Program */

SELECT user_concurrent_queue_name "Manager",


user_concurrent_program_name "Program"
FROM apps.fnd_concurrent_programs_tl cp,
apps.fnd_concurrent_queue_content cqc,
apps.fnd_concurrent_queues_tl cq
WHERE cqc.type_application_id(+) = cp.application_id
AND cqc.type_id(+) = cp.concurrent_program_id
AND cqc.type_code(+) = 'P'
AND cqc.include_flag(+) = 'I'
AND cp.LANGUAGE = 'US'
AND user_concurrent_queue_name LIKE '<Manager_Name>'
AND NVL (cqc.concurrent_queue_id, 0) = cq.concurrent_queue_id
AND NVL (cqc.queue_application_id, 0) = cq.application_id
AND cq.LANGUAGE = 'US';

/* Manager Processes Details */

SELECT CONCURRENT_QUEUE_NAME "Manager",


MAX_PROCESSES "Total Processes",
RUNNING_PROCESSES "Running Processes",
cache_size "Cache Size",
SLEEP_SECONDS "Sleep Seconds"
FROM fnd_concurrent_queues --where CONCURRENT_QUEUE_NAME like 'CUSTOM03' order
by 1;

/* Request Characteristics */

SELECT
NUMBER_OF_COPIES,NLS_LANGUAGE,NLS_TERRITORY,PRINTER,PRINT_STYLE,COMPLETION_T
EXT,OUTPUT_FILE_TYPE,NLS_CODESET,OUTFILE_NODE_NAME,OUTFILE_NAME
FROM FND_CONCURRENT_REQUESTS
WHERE REQUEST_ID = '<Request_ID>';

/* Printer Details for a request */

SELECT PRINTER_STYLE_NAME,
SRW_DRIVER,
WIDTH,
LENGTH,
ORIENTATION

Krishnamoorthy Rasappan Page 11


appsdbawiki
Oracle EBS Scripts

FROM FND_PRINTER_STYLES
WHERE PRINTER_STYLE_NAME = (SELECT PRINT_STYLE
FROM FND_CONCURRENT_REQUESTS
WHERE request_id =' <Request_ID>');

/* Env Details for Con Req ID */

SELECT *
FROM FND_ENV_CONTEXT
WHERE CONCURRENT_PROCESS_ID =
(SELECT CONCURRENT_PROCESS_ID
FROM FND_CONCURRENT_PROCESSES A, FND_CONCURRENT_REQUESTS B
WHERE B.CONTROLLING_MANAGER = A.CONCURRENT_PROCESS_ID
AND B.REQUEST_ID = 52730874)
AND (VARIABLE_NAME IN
('XENVIRONMENT',
'IX_PRINTING',
'ORACLE_HOME',
'LD_LIBRARY_PATH',
'NLS_LANG',
'REPORTS60_NO_DUMMY_PRINTER',
'TK6_PRINT_STATUS',
'TK6_PRINTER',
'TK_PRINTER',
'PRINTER',
'DISPLAY',
'TK_LOCALE',
'PASTA',
'APPLLCSP',
'ORACLE_PRINTER',
'TK_PRINT_STATUS')
OR (VARIABLE_NAME LIKE '%REPORT%' OR VARIABLE_NAME LIKE 'IX_%'));

/* Conc Prog Priority Update */

SELECT 'udpate fnd_concurrent_requests set priority = 5 where request_id = '


|| ''''
|| fcr.request_id
|| ''''
|| ';'
FROM applsys.fnd_concurrent_requests fcr,
applsys.fnd_concurrent_programs_tl fcp,
applsys.fnd_user fu,
hr.per_all_people_f papf
WHERE fcr.concurrent_program_id = fcp.concurrent_program_id
AND fcr.requested_by = fu.user_id
AND fu.user_name = papf.employee_number(+)
AND fcr.priority = 50
AND fcr.phase_code = 'P'
AND fcr.status_code = 'Q'
AND uSER_CONCURRENT_PROGRAM_NAME LIKE 'Journal Import'
AND fu.user_name = '<user_name>';

Krishnamoorthy Rasappan Page 12


appsdbawiki

You might also like