一般想要批量下载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. spark学习笔记01

    spark学习笔记01 1.课程目标 1.熟悉spark相关概念 2.搭建一个spark集群 3.编写简单spark应用程序 2.spark概述 spark是什么 是基于内存的分布式计算引擎,计算速度 ...

  2. Python学习---字符串处理

    This world is but a canvas to our imagination. 世界只是我们的想象的画布. ----Apri 22 ''' 题目内容: "Pig Latin&q ...

  3. 如何改变hr颜色

    html中用css改变颜色,<hr style="border:0;background-color:#ff0000;height:1px;">如果不加border:0 ...

  4. 转:rabbitmq——用户管理

    原文:http://my.oschina.net/hncscwc/blog/262246?p={{currentPage-1}} 安装最新版本的rabbitmq(3.3.1),并启用managemen ...

  5. ACM Ignatius and the Princess II

    Problem Description Now our hero finds the door to the BEelzebub feng5166. He opens the door and fin ...

  6. Java内存泄漏分析系列之六:JVM Heap Dump(堆转储文件)的生成和MAT的使用

    原文地址:http://www.javatang.com JVM Heap Dump(堆转储文件)的生成 正如Thread Dump文件记录了当时JVM中线程运行的情况一样,Heap Dump记录了J ...

  7. 【Android 应用开发】 Android 各种版本简介 ( Support 支持库版本 | Android Studio 版本 | Gradle 版本 | jcenter 库版本 )

    初学者遇到 Android Studio, 导入工程后, 会出现各种奇葩错误, 如果管理好各个插件, gradle, SDK, SDK Tools, 各种官方依赖库 的版本, 会将错误大大的减少; 这 ...

  8. Android开发学习之路--Java和Js互相调用

      随着前端的火热,以前开发的快速,越来越多的native app在其中融合了h5,就拿淘宝就是很多的h5组成的,一旦出现什么节日,他都可以不用通过更新app来实现界面的改变,而且android和io ...

  9. 安卓高级5 zXing

    ZXing作者的github地址: https://github.com/zxing/zxing 这里为大家也提供一个封装好的最新的ZXing Lib: https://github.com/xuyi ...

  10. Swift类中如何创建一个对外只读对内可读写的属性

    很简单用private修饰符,后面跟限制关键字set: class Day{ private(set) var rawValue:Int = 0 func showRawValue(){ print( ...