Oracle 读取blob rtf文件,看到个有趣的方法批量下载rtf模板

阅读: 评论:0

Oracle 读取blob rtf文件,看到个有趣的方法批量下载rtf模板

Oracle 读取blob rtf文件,看到个有趣的方法批量下载rtf模板

Hi,

Blob column ‘template file data‘ below is just what you want, open it in PLSQL-DEVELOPER and save it as a rtf file or you can write programs that work with ‘BLOB‘ objects to export them.

select fa.application_name concurrent_program_appl_name

,fcp.user_concurrent_program_name

,urrent_program_name

,(select ution_method_code

,'K'

,fl.meaning

,'P'

,fl.meaning || ' : ' || '$' || fa.basepath ||

'/reports/US/' || fe.execution_file_name || '.rdf')

from fnd_application fa

where fa.application_id = fe.application_id) execution_method

,xdd.data_source_name

,xdd.data_source_code

,xl_xdd.file_name data_source_file_name

,xl_xdd.file_data data_source_file_data

,xt.template_name

,xt.template_code

,xl_xt.file_name template_file_name

,xl_xt.file_data template_file_data

from fnd_concurrent_programs_vl fcp

,fnd_application_vl fa

,fnd_executables_vl fe

,fnd_lookups fl

,fnd_application fa2

,xdo_ds_definitions_vl xdd

,xdo.xdo_lobs xl_xdd

,xdo_templates_vl xt

,xdo.xdo_lobs xl_xt

where fcp.application_id = fa.application_id

utable_application_id = fe.application_id

utable_id = fe.executable_id

ution_method_code = fl.lookup_code

and fl.lookup_type = 'CP_EXECUTION_METHOD_CODE'

and fcp.output_file_type = 'XML'

and fcp.application_id = fa2.application_id

and fa.application_short_name = xdd.application_short_name

urrent_program_name = xdd.data_source_code

and xdd.application_short_name = xl_xdd.application_short_name(+)

and xdd.data_source_code = xl_xdd.lob_code(+)

and trunc(sysdate) between trunc(nvl(xdd.start_date

,sysdate)) and

trunc(d_date

,sysdate))

and xl_xdd.xdo_file_type(+) = 'XML-DATA-TEMPLATE'

and xdd.application_short_name = xt.ds_app_short_name

and xdd.data_source_code = xt.data_source_code

and xt.application_short_name = xl_xt.application_short_name(+)

plate_code = xl_xt.lob_code(+)

and trunc(sysdate) between trunc(nvl(xt.start_date

,sysdate)) and

trunc(d_date

,sysdate))

and xl_xt.xdo_file_type(+) = 'RTF'

urrent_program_name = 'XLAAARPT' --Concurrent Program Name

order by fcp.user_concurrent_program_name

,xdd.data_source_name

,xt.template_name;

本文发布于:2024-02-03 04:49:21,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170690696448754.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:批量   有趣   模板   文件   方法
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23