一般想要批量下载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. 40. Combination Sum II(midum, backtrack, 重要)

    Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in ...

  2. python的模块与包的导入

    类似于C语言的包含头文件去引用其他文件的函数,python也有类似的机制,常用的引入方法有以下 import 模块名 #模块名就是py文件名 #使用这种方法以后调用函数的时候要使用模块名.函数名()这 ...

  3. ACM Primes

    Write a program to read in a list of integers and determine whether or not each number is prime. A n ...

  4. 异步请求引发的Chrome死锁

    浏览器支持的并发异步请求数目是有限的,当需要的资源过多时候(远远大于并发数目),就需要自己管理XHR请求. 在实现自己的XHR的Manger时候,当请求数目达到2000多的时候,经常会遇到chrome ...

  5. 负载均衡LVS(DR模式)安装实战

    1.编译安装ipvsadm 首先从LVS官网下载tarball,解压后make && make install即可. 要注意的是LVS的依赖有:popt-static.libnl.ke ...

  6. cassandra 常见问题

    摘要 本文主要介绍在部署cassandra集群以及使用cassandra过程中遇到的一些问题. 文章只发布在CSDN 和个人站点 更多nosql文章可以访问stone fang 个人主页 正文 Q1: ...

  7. Swift按照数组元素出现的次数及大小排序

    要求如下: 1.已知一个数组,按照单个元素在数组中出现的次数作为重新排序的依据,个数多的排在前面 2.相同个数时候,元素值大的排前面 例子: [1, 2, 2, 3, 5, 5] 经过计算得到的结果是 ...

  8. [Flask]学习杂记一 Hello程序

    这几天买了本  <Flask Web开发:基于Python的Web应用开发实战>,之前也用过flask 但是不怎么系统,有时候需要搭建一些临时的测试服务,用falsk比较方面,一个文件就可 ...

  9. Java并发框架——什么是AQS框架

    什么是AQS框架 1995年sun公司发布了第一个java语言版本,可以说从jdk1.1到jdk1.4期间java的使用主要是在移动应用和中小型企业应用中,在此类领域中基本不用设计大型并发场景,当然也 ...

  10. Spring的DataSource配置、将Hibernate配置全部写到Spring配置

    DataSource可以集中管理数据库连接,减少维护工作量,使部署更简单: Spring的DataSource配置:(Spring数据源配置)这里使用dbcp,还有很多其他的如c3p0,jdbc,jn ...