一般想要批量下载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. Leetcode Scratching Recorder

    Author: Zhong-Liang Xiang Start from: August 7th, 2017 这个题为连滚带爬的Leetcode填坑记录就这么开始了. 网上看了看, 一堆小伙从2014 ...

  2. JavaScript Date(日期)对象

    返回当日的日期和时间 如何使用 Date() 方法获得当日的日期. getFullYear() 使用 getFullYear() 获取年份. getTime() getTime() 返回从 1970 ...

  3. 状态模式、职责链模式——省去if-else的繁琐结构

    小时候写日记都是这么写的:上午七点起床,八点之前洗脸刷牙吃早饭,十二点之前好好上课,中午一点,吃午饭,下午两点到六点,上课,下课,找请假,明天妈妈要带我去姥姥家,九点之前,看动画片,九点钟,收拾去姥姥 ...

  4. Android图表库MPAndroidChart(十三)——简约的底部柱状图

    Android图表库MPAndroidChart(十三)--简约的底部柱状图 我们继续上一讲,今天还是说下柱状图,这个图的话应该是用的比较多的,所有拿出来溜溜,先看下效果 我们还是来看下基本实现 一. ...

  5. android混淆那些坑

    ProGuard简介 在最新的Android Studio 2.2.2版本创建的Android工程中,module中的build.gradle有如下一段配置.这里的minifyEnabled即用来控制 ...

  6. tolua++没法用

    tolua++没法用(金庆的专栏)觉得从C++头文件生成lua绑定代码的方法比较简单,想试试tolua++.从Github获取toluapp:https://github.com/LuaDist/to ...

  7. Apache shiro集群实现 (三)shiro身份认证(Shiro Authentication)

    Apache shiro集群实现 (一) shiro入门介绍 Apache shiro集群实现 (二) shiro 的INI配置 Apache shiro集群实现 (三)shiro身份认证(Shiro ...

  8. #pragma pack(x) CPU对齐

    编译器会尽量把成员对齐以提高内存的命中率.对齐是可以更改的,使用"#pragma pack(x)" 可以改变编译器的对齐方式. C++固有类型的对界取编译器对齐方式与自身大小中较小 ...

  9. HTML简单使用

    HTML简单使用 标签 : 前端技术 HTML HTML(Hypertext Marked Language), 即超文本标记语言,能够独立于各种操作系统平台(如UNIX/Linux/Windows等 ...

  10. EBS开发性能优化之查找需要优化的程序

    1.登陆数据库LINUX环境 使用 top 命令查看进程状况 [oratest@ebsdb~]$top top - 15:58:59 up 8 days, 22:04,  1 user,  load ...