Sie sind auf Seite 1von 3

select t.request_id request_id, t.request_date request_date, v.PROGRAM_SHORT_NAME PROGRAM_SHORT_NAME, v.PROGRAM PROGRAM, v.REQUESTOR REQUESTOR, Decode(t.phase_code, 'C', 'Completed', t.

phase_code) phase_code, Decode(t.status_code, 'E', 'Error', 'Q', 'Standby', 'I', 'Normal', 'F', 'Schedul ed', t.status_code) status_code from FND_CONCURRENT_REQUESTS t, FND_CONC_REQ_SUMMARY_V v where t.phase_code = 'C' AND t.status_code IN ('I', 'Q', 'E', 'F') and v.PHASE_CODE = 'C' and t.status_code IN ('I', 'Q', 'E', 'F') and t.request_id = v.REQUEST_ID and t.hold_flag = 'N' ; select t1.ORGANIZATION_NAME||'('||t1.ORGANIZATION_CODE||')' "ORGANIZATION_NMAE",t.trans action_date,t.transaction_type_id "TRANSACTION_TYPE",count(*) "COUNT" ,decode(costed_flag,'N','Not processed and waiting for the cost manager','E','Er rored out during costing') "REASON" from mtl_material_transactions t,ORG_ORGANIZATION_DEFINITIONS t1 where costed_flag is not null and t.organization_id=t1.ORGANIZATION_ID group by t1.ORGANIZATION_NAME,t1.ORGANIZATION_CODE,t.transaction_type_id,t.transaction_da te ,costed_flag /

SELECT * FROM mtl_material_transactions WHERE costed_flag = 'N'; SELECT request_id RequestId, request_date RequestDt, phase_code Phase, status_code Status FROM fnd_concurrent_requests fcr, fnd_concurrent_programs fcp WHERE fcp.application_id = 702 AND to_date(request_date,'DD-MON-YY')='16-FEB-12' and fcp.concurrent_program_name = 'CMCTCM' --AND --fcr.concurrent_program_id = fcp.concurrent_program_id --AND --fcr.program_application_id = 702 AND fcr.phase_code <> 'C' order by fcr.phase_code select request_id,t1.concurrent_program_name,t1. from fnd_concurrent_requests t, fnd_concurrent_programs t1 where status_code in ('Q','I') and t.concurrent_program_id=t1.concurr ent_program_id and requested_start_date > SYSDATE and hold_flag = 'N';

SELECT request_id id,

nvl(meaning, 'UNKNOWN') status, user_concurrent_program_name pname, to_char(request_date, 'DD-MON-RR HH24:MI:SS') submitd FROM fnd_concurrent_requests fcr, fnd_lookups fl, fnd_concurrent_programs_vl fcpv WHERE -- phase_code = 'P' user_concurrent_program_name like '%Record Order%' --AND --hold_flag = 'N' AND fcr.requested_start_date <= sysdate --AND status_code != 'P' AND LOOKUP_TYPE = 'CP_STATUS_CODE' AND lookup_code = status_code AND fcr.concurrent_program_id = fcpv.concurrent_program_id AND fcr.program_application_id = fcpv.application_id ORDER BY request_date, request_id; SELECT distinct t1.USER_CONCURRENT_PROGRAM_NAME "COST_MANAGEMENT_PROGRAM", decode(phase_code, 'P', 'Pending', 'R', 'Running', 'C', 'Completed ', phase_code) phase, decode(status_code,'E','Error') status , to_char(request_date, 'DD-MON-RRRR HH24:MI') submitd, argument_text,v.PROGRAM FROM fnd_concurrent_requests t, fnd_concurrent_programs_vl t1,FND_CONC_REQ_SUM MARY_V v where t1.USER_CONCURRENT_PROGRAM_NAME IN ('Record Order Management Transactions', 'Collect Revenue Recognition Information', 'Generate COGS Recognition Events') and status_code='E' and phase_code=' C' and to_char(request_date, 'DD-MON-RR') = '16-FEB-12'; --GROUP BY phase_code,t1.USER_CONCURRENT_PROGRAM_NAME; select to_date(sysdate,'DD-MON-RR') from dual; select T.USER_CONCURRENT_QUEUE_NAME , B.MAX_PROCESSES, B.RUNNING_PROCESSES, B.CA CHE_SIZE, B.MIN_PROCESSES, B.TARGET_PROCESSES, B.TARGET_NODE, B.SLEEP_SECONDS, B.DIAGNOSTI C_LEVEL, B.MANAGER_TYPE, B.ENABLED_FLAG, T.DESCRIPTION from FND_CONCURRENT_QUEUES_TL T, FND_CONCURRENT_QUEUES B where B.APPLICATION_ID = T.APPLICATION_ID and B.CONCURRENT_QUEUE_ID = T.CONCURRENT_QUEUE_ID and T.LANGUAGE = userenv('LANG'); SELECT request_id, NAME, argument_text, user_name FROM (SELECT cr.request_id, DECODE (cp.user_concurrent_program_name, 'Report Set', 'R eport Set:',cr.description, cp.user_concurrent_program_name ) NAME, argument_text, fu.user_name FROM apps.fnd_concurrent_programs_tl cp, apps.fnd_concurrent_requests cr, apps.fnd_user fu WHERE cp.application_id = cr.program_application_id AND cp.concurrent_program_id = cr.

concurrent_program_id AND cr.requested_by = fu.user_id AND cr.phase_code = 'P' AND cr.requested_start_ date > SYSDATE AND cp.LANGUAGE = 'US' AND fu.user_name NOT LIKE 'PPG%') t1 WHERE EXISTS ( SELECT 1 FROM (SELECT cr.request_id, DECODE (cp.user_concurrent_program_name, 'Report Set', 'Report Set:' ,cr.descrip tion, cp.user_concurrent_program_name ) NAME, argument_text, fu.user_name FROM apps.fnd_concurrent_programs_tl cp, apps.fnd_concurrent_requests cr, apps.fnd_user fu WHERE cp.application_id = cr.program_application_id AND cp.concurrent_program_id = cr.concurrent_program_id AND cr.requested_by = fu.use r_id AND cr.phase_code = 'P' AND cr.requested_start_date > SYSDATE AND cp.LANGUAGE = 'US' AND fu.user_name NOT LIKE 'PPG%') t2 WHERE t1.NAME = t2.NAME AND t1.argument_text = t2.argument_text AND t1.user_name = t2.user_name GROUP BY NAME, argument_text, user_name HAVING COUNT (*) > 1) ORDER BY user_name, NAME select t.request_id request_id, t.request_date request_date, v.PROGRAM_SHORT_NAME PROGRAM_SHORT_NAME, v.PROGRAM PROGRAM, v.REQUESTOR REQUESTOR, Decode(t.phase_code, 'C', 'Completed', t.phase_code) phase_code, Decode(t.status_code, 'E', 'Error', 'Q', 'Standby', 'I', 'Normal', 'F', 'Schedul ed', t.status_code) status_code from FND_CONCURRENT_REQUESTS t, FND_CONC_REQ_SUMMARY_V v where t.phase_code = 'C' AND t.status_code IN ('I', 'Q', 'E', 'F') and v.PHASE_CODE = 'C' and t.status_code IN ('I', 'Q', 'E', 'F') and t.request_id = v.REQUEST_ID --and v.PROGRAM in ('Collect Revenue Recognition Information','Record Order Mana gement Transactions','Generate COGS Recognition Events') and t.hold_flag = 'N' and to_DATE(t.request_date, 'DD-MON-RR HH24:MI:SS') = to_d ate(SYSDATE,'DD-MON-RR HH24:MI:SS'); select status_code, phase_code, logfile_name, concurrent_program_name into &status_code, &phase_code, &logfile_name, &concurrent_program_name*/ from fnd_concurrent_requests f, fnd_concurrent_programs fc where status_code='E' and phase_code='C' and f.concurrent_program_id=fc.concurrent_program_id and concurrent_program_name in ('CSTRCMCR','CSTRCMCR3','CSTRCMCR1')

Das könnte Ihnen auch gefallen