EBS中odf文件和xdf文件解释

简介: 参考文档:http://blog.csdn.net/pan_tian/article/details/7814422          http://blog.csdn.net/pan_tian/article/details/86435011、ODFodf(Object Descriptor File),里边含有数据库对象的描述,用于创建数据库表,视图,索引等等。

参考文档:http://blog.csdn.net/pan_tian/article/details/7814422          http://blog.csdn.net/pan_tian/article/details/8643501

1、ODF

odf(Object Descriptor File),里边含有数据库对象的描述,用于创建数据库表,视图,索引等等。

除了打patch可以打odf文件,我们还有个手工打odf的工具叫做ADODFCM($AD_TOP/bin下),名字拆开比较好记,AD表示Admin,ODF表示Object Descriptor File,CM表示Compilation。

应用场景,比如发现数据库某张表没有被创建,但odf文件其实是有定义的,这个时候打patch比较麻烦,可以考虑使用ADODFCM


odf文件的位置

$PROD_TOP/patch/115/xxx.odf


adodfcmp用法

[oracle@bej301441 odf]$ cd $INV_TOP/patch/115/odf/
[oracle@bej301441 odf]$ adodfcmp odffile=invslig.odf userid=inv/inv changedb=yes priv_schema=system/manager mode=indexes touser=apps/apps logfile=invtab.log


adodfcmp parameters

parameters are required: mode, touser, priv_schema, odffile, userid
mode (required) :Determines the type of objects to compare against the ODF.Example tables,indexes
touser (required) : Specifies the Oracle username/password of the Oracle Applications product to grant to. In Release 11i/R12 this is usually APPS schema.
priv_schema (required) :Specify a schema having DBA privileges, along with its password. You may specify the SYSTEM schema
odffile (required) : The name of the object descriptor file (file extension .odf) to compare.
userid (required) :The Oracle username/password for the product’s base schema. This is the schema where the product tables, indexes and sequences are located for example inv/inv
changedb (opt) No :Set to yes to change the database objects to match the definitions in the object descriptor files. Customizations are not affected because the utility does not delete objects not found in the ODF. Using the default, No, will not make anychanges only produce a log file indicating what changes need to be made.


Sample Log

************* Start of ODF Comparison Utility session *************
ODF Comparison Utility version: 12.0.0
ODF Comparison Utility started at: Tue Jul 31 2012 00:21:00

Connecting to SYSTEM......Connected successfully.

Connecting to APPS......Connected successfully.

Reading objects from ODF file

Reading table MTL_CLIENT_PARAMETERS ...
Reading table MTL_TXNS_HISTORY ...
Reading table MTL_BILLING_SOURCES_B ...
Reading table MTL_BILLING_SOURCES_TL ...
Reading table MTL_BILLING_RULE_HEADERS_B ...
Reading table MTL_BILLING_RULE_HEADERS_TL ...
Reading table MTL_BILLING_RULE_LINES ...
Reading table MTL_3PL_LOCATOR_OCCUPANCY ...
Reading table MTL_ADJUSTMENT_SYNC_TEMP ...
Reading table MTL_LSP_ONHAND_BALANCE_TMP ...

....

....

...

Start time for statement below is: Tue Jul 31 2012 00:21:03

ALTER TABLE INV.MTL_LSP_ONHAND_BALANCE_TMP STORAGE (FREELISTS 4)

Statement executed.


ODF Comparison Utility is complete.

You should check the file
/u01/oracle/instance/apps/apps_st/appl/inv/12.0.0/patch/115/odf/invtab.log
for errors.


2、xdf

关于odf文件,写过一篇笔记,见:Oracle Apps ADODFCMP Utility, xdf和odf类似,都是数据库对象的描述文件,用于数据库表,视图,索引等等在不同数据库间的移植。根据NOTE:551325.1的说法,xdf将会逐步取代过去的odf,毕竟xdf的xml格式还是要比文本格式的odf有方便处理些。


xdf对应的执行文件是$JAVA_TOP/oracle/apps/fnd/odf2/FndXdfCmp(一java文件)

odf对应的执行文件是$AD_TOP/bin/adodfcmp(脚本语言)


xdf文件放在一般在patch/115/xdf目录下

而odf一般在patch/115/odf/下


xdf包含两个组件:FndXdfGen从源头数据库,生成对应的xdf对象;FndXdfCmp在目标数据库中执行xdf文件。


FndXdfCmp命令的使用

Usage of the Java Utility FndXdfCmp :

adjava -mx512m -nojit oracle.apps.fnd.odf2.FndXdfCmp <Oracle_Schema> <Oracle_Password> \
<apps_schema> <apps_password> <jdbc protocol> <JDBC_Connect_String> <Object Type> \
<full path to xdf file> <full path of $FND_TOP/patch/115/xdf/xsl>

possible Object Types are :
table, mview, view, synonym, index, trigger, comment, context, mviewlog, qtable, sequence, type, queue, policy, all

Mandatory Arguments :

  • Oracle_Schema : ORACLE schema name of the EBS module, e.g. FND, AD, GL, MFG.
  • Oracle_Password : ORACLE schema password of EBS module.
  • JDBC_Connect_String : The JDBC connection string to connect to the Database. It must include the <hostname>:<DB_Port>:<SID>

Optional Parameters

  • apps_schema / apps_password : The APPS schema name and APPS shcema password needs to be specified if it is not the default value of apps/apps.
  • ChangeDb : This Parameter inidcates, if the object definitions are written to the Database. Possible values are y / n (Default is y)
  • Logfile : The output is written to standard out. Specify a logfile name if it has to be written to a log file.
  • Data_Sec_Vpd : This is used to specify that a service security synonyms or view has to be created dynamically based on the database version. If the database version is 9 then a synonym is created else a view is created. Permitted values are data_sec_vpd=y
Example :
cd $FND_TOP/patch/115/xdf
adjava -mx512m -nojit oracle.apps.fnd.odf2.FndXdfCmp fnd <Password> apps <Password> thin \
<hostname>:<db_port>:<db_sid> all fnd_usr_roles.xdf $FND_TOP/patch/115/xdf/xsl

Reference:Metalink Note 551325.1 - How to verify or create a Database Object using a odf (adodfcmp) or xdf (FndXdfCmp) file ?





相关文章
|
缓存 关系型数据库 MySQL
MySQL Binlog--事务日志和BINLOG落盘参数对磁盘IO的影响
MySQL Binlog--事务日志和BINLOG落盘参数对磁盘IO的影响
318 0
|
缓存 编译器
BOLT 二进制反馈优化技术
大型应用的代码往往达到数十甚至上百MB,这导致在程序执行时缓存机制无法充分利用,导致大量时间花费在CPU和内存链路上。通过对热点函数的布局进行优化,我们可以更好地利用CPU cache,从而获得较为可观的性能提升。针对这一问题,在编译技术上有PGO和Bolt两种解决办法,两者都是一种通过收集程序在运行时如跳转,调用关系,函数热度等执行信息,这些收集到的程序运行情况数据(profile data),可以更好地指导一些程序优化的策略,如是否对函数进行内联,以及对基本块和函数布局的排布来提高特定场景下的程序性能。
2408 2
BOLT 二进制反馈优化技术
|
7月前
|
人工智能 自然语言处理 Linux
NobodyWho:每个NPC都有独立灵魂!Godot插件实现本地LLM对话,离线生成多线剧情
NobodyWho 是一款为 Godot 游戏引擎设计的插件,支持在本地运行 LLM,实现互动小说创作,无需联网,确保隐私和高性能。
413 14
NobodyWho:每个NPC都有独立灵魂!Godot插件实现本地LLM对话,离线生成多线剧情
|
10月前
|
存储 分布式计算 NoSQL
【赵渝强老师】大数据技术的理论基础
本文介绍了大数据平台的核心思想,包括Google的三篇重要论文:Google文件系统(GFS)、MapReduce分布式计算模型和BigTable大表。这些论文奠定了大数据生态圈的技术基础,进而发展出了Hadoop、Spark和Flink等生态系统。文章详细解释了GFS的架构、MapReduce的计算过程以及BigTable的思想和HBase的实现。
480 0
|
SQL Oracle 关系型数据库
Oracle21C + PLSQL Developer 15 + Oracle客户端21安装配置完整图文版
Oracle21C + PLSQL Developer 15 + Oracle客户端21安装配置完整图文版
1102 0
|
Java 微服务 Spring
【spring cloud】注解@SpringCloudApplication和@SpringBootApplication的区别
【spring cloud】注解@SpringCloudApplication和@SpringBootApplication的区别
279 0
|
网络协议 安全 Linux
深入解析HTTP请求:了解请求特征与报文格式的关键秘密
这篇文章将带您深入了解HTTP请求的特征和报文格式。HTTP作为一种简单、灵活且易于扩展的协议,适用于各种操作系统和设备。我们还将探讨持久性连接如何提高请求的效率。了解HTTP报文的构成,包括起始行、头部字段和消息正文,将帮助您更好地理解HTTP的工作原理。无论您是初学者还是已经有一定了解的读者,本文都将为您提供全面的HTTP知识。
486 1
深入解析HTTP请求:了解请求特征与报文格式的关键秘密
|
SQL 弹性计算 安全
阿里云ECS云服务器部署.NET网站
阿里云ECS云服务器使用的小技巧,以及一些问题的解决方案。
阿里云ECS云服务器部署.NET网站
|
JavaScript 数据可视化 Java
ElasticSerach、kibana配置文件讲解及安装(二更)
ElasticSerach、kibana配置文件讲解及安装(二更)
ElasticSerach、kibana配置文件讲解及安装(二更)
|
计算机视觉
Qt实用技巧:仅去掉标题栏,保持对话框边框
Qt实用技巧:仅去掉标题栏,保持对话框边框