一般想要批量下载rtf模板我们都是用fndload来实现或者 perl download.pl来实现,今天看到一个比较有趣的方法

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
,fcp.concurrent_program_name
,(select decode(fe.execution_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
and fcp.executable_application_id = fe.application_id
and fcp.executable_id = fe.executable_id
and fe.execution_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
and fcp.concurrent_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(nvl(xdd.end_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(+)
and xt.template_code = xl_xt.lob_code(+)
and trunc(sysdate) between trunc(nvl(xt.start_date
,sysdate)) and
trunc(nvl(xt.end_date
,sysdate))
and xl_xt.xdo_file_type(+) = 'RTF' and fcp.concurrent_program_name = 'XLAAARPT' --Concurrent Program Name order by fcp.user_concurrent_program_name
,xdd.data_source_name
,xt.template_name;

或者

写个SQL,批量生成下面的语句,执行就可以自动在指定的路径下生成了。

本帖最后由 yxplove 于 2014-8-11 09:14 编辑

java oracle.apps.xdo.oa.util.XDOLoader DOWNLOAD \
-DB_USERNAME apps \
-DB_PASSWORD xxxxxx \
-JDBC_CONNECTION 192.168.66.xxx:1523:TEST \
-LOB_TYPE TEMPLATE_SOURCE \
-APPS_SHORT_NAME CUX \
-LOB_CODE CUXxxxx \
-LANGUAGE zh \
-XDO_FILE_TYPE RTF \
-FILES_DIR /home/appltest/patch_rtf/xxxx.rtf;

看到个有趣的方法批量下载rtf模板的更多相关文章

  1. PHP批量下载方法

      PHP批量下载方法 界面: $.get(“< ?php echo url::base(true);?>inventory/report/buildCsv”, //后台路径 {‘para ...

  2. ASP.NET批量下载文件的方法

    一.实现步骤 在用户操作界面,由用户选择需要下载的文件,系统根据所选文件,在服务器上创建用于存储所选文件的临时文件夹,将所选文件拷贝至临时文件夹.然后调用 RAR程序,对临时文件夹进行压缩,然后输出到 ...

  3. KRPano资源分析工具使用说明(KRPano XML/JS解密 切片图批量下载 球面图还原 加密混淆JS还原美化)

    软件交流群:571171251(软件免费版本在群内提供) krpano技术交流群:551278936(软件免费版本在群内提供) 最新博客地址:blog.turenlong.com 限时下载地址:htt ...

  4. 利用SkyDrive Pro 迅速批量下载SharePoint Server 上已上传的文件

    在上一篇<SharePoint Server 2013 让上传文件更精彩>,我们一起了解了如何快速的方便的上传批量文件到SharePoint Server 2013 ,而在这一篇日志中您将 ...

  5. 批量下载网站图片的Python实用小工具

    定位 本文适合于熟悉Python编程且对互联网高清图片饶有兴趣的筒鞋.读完本文后,将学会如何使用Python库批量并发地抓取网页和下载图片资源.只要懂得如何安装Python库以及运行Python程序, ...

  6. 使用js脚本批量下载慕课网视频

    慕课网(http://www.imooc.com/)上有很多不错的视频,当然我不是来给慕课网打广告的,我本人学习过很多慕课网上的免费的视频. 在线看如果网速慢时,可能会有卡顿,没网时无法观看.所有说下 ...

  7. C#实体图片下载与批量下载(自动保存功能)

    新工作,第一个小任务,制作一个点击下载图片的功能.并提供批量下载操作.图片是字节流的形式,存放在数据库中的. 为了避免直接从数据库中,下载失败,会在本地保存一份. 进行压缩的是SharpZip这个压缩 ...

  8. Java实现批量下载《神秘的程序员》漫画

    上周看了西乔的博客“西乔的九卦”.<神秘的程序员们>系列漫画感觉很喜欢,很搞笑.这些漫画经常出现在CSDN“程序员”杂志末页的,以前也看过一些. 后来就想下载下来,但是一张一张的点击右键“ ...

  9. C#实现图标批量下载

    本文略微有些长,花了好几晚时间编辑修改,若在措辞排版上有问题,请谅解.本文共分为四篇,下面是主要内容,也是软件开发基本流程. 阶段 描述 需求分析 主要描述实现本程序的目的及对需求进行分析,即为什么要 ...

随机推荐

  1. java web中filter分析

    摘自博客园,博主孤傲苍狼 一.Filter简介 Filter也称之为过滤器,它是Servlet技术中最激动人心的技术,WEB开发人员通过Filter技术,对web服务器管理的所有web资源:例如Jsp ...

  2. ACM pie

    我的生日快到了,传统上我正在做馅饼.不只是一个馅饼,不,我有N个,各种口味和各种尺寸. 数量为F我的朋友会来到我的聚会,每个人都得到一个馅饼. 这应该是一块馅饼,而不是几个小块,因为看起来很乱.这一块 ...

  3. Webpack 4 Tutorial: from 0 Conf to Production Mode

    webpack 4 is out! The popular module bundler gets a massive update. webpack 4, what's new? A massive ...

  4. RDO Stack: Failed connect to server

    Issue: When you create an instance, but cannot connect to the VNC Server because of the error messag ...

  5. Android进阶 | 摆脱斗图 | 行业交流 | 深度学习 | 付费

    Android进阶 | 摆脱斗图 | 行业交流 | 深度学习 | 付费 其实在很早的时候我就有想过,是不是退出一些群,因为群太多了,里面的水友也多,基友也多,就难免会水起来,这样既耽误学习又耽误工作, ...

  6. vue以及js的一些坑或常用技巧

    判断空object Object.getOwnPropertyNames(obj).length === 0 模拟range Array.apply(null, Array(5)).map(funct ...

  7. OpenResty 自定义 access_log 格式

    定义access log的format是 Nginx已经提供的功能,有了 ngx_lua 之后就可以更灵活的记录请求相关的信息,而不仅仅拘泥于 Nginx的内置变量了,可以自定义一些格式和变量来存储结 ...

  8. Swift基础之CoreData的使用

    以前使用过OC版本的CoreData应该很好理解Swift方式,所以这里简单的展示一下,增删改查的方法使用,同时给大家说一下创建步骤,方便大家的使用,转载请注明出处,谢谢~ 步骤一:创建一个Swift ...

  9. git清空某个文件的历史版本

    比如你要清空文件private.ini git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch priva ...

  10. Android studio 中引用jar的其实是Maven?(一)

    由于Studio比eclipse多了一步对工程构建的步骤,即为build.gradle这个文件运行,因此其引入第三方开发jar包与lib工程对比Eclipse已完成不同,引入第三方jar与lib工程显 ...