Oracle的Request运行完成后,可以将URL发邮件给指定的用户,但会限制这个URL只能打开一次,无再打开,当提交Rqeust的人不方便,并且收URL邮件的人与提交人不是同一个时,就有些悲剧了。
所以就需要可以在后台重新产生URL(也可以方便IT人员查看用户运行的报表):
注:需要比较大的权限才可以运行,比如APPS
select fcr.request_id,fcr.output_file_type,fcr.last_update_date,fcr.actual_start_date,fcr.actual_completion_date,(select fu.user_namefrom apps.fnd_user fuwhere fu.user_id = fcr.requested_by) requested_by,apps.fnd_webfile.get_url(file_type => 4,id => fcr.request_id -- concurrent request id,gwyuid => 'applsyspub/pub',two_task => 'fcww',expire_time => 1000) output_url--,fcr.*from apps.fnd_concurrent_requests fcrwhere 1 = 1--and fcr.ofile_size > 0and fcr.phase_code not in ('P')and fcr.request_id = &request_idorder by request_date desc
;
