ADODFCMP Utility



Last updated on December 21st, 2015 at 05:40 am

The ODF Comparison utility is used to compare the data model of a customer’s data to a standard set of data model files from the current Oracle Application release. It can optionally modify the database to match the standard data model.

Each application consists of certain building blocks. There is an object descriptor file (ODF) describing the tables, views, indexes, sequences and privilege sets for the particular building block.ODF Comparison compares the building block to the object descriptor file (ODF). A log file is created showing any missing, extra, or incorrectly defined objects

Whenever we apply the oracle application patches,patches supply odf’s file and adpatch run odf comparison utlity to make the changes in the database.

Sometime we need to run odf comparison manually to check for missing objects .

How to run ODF comparison utlity
cd $PROD_TOP/admin/odf
Parameters can be specified in any order on the command line. The following
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.

ExampleMake a comparison of the indexes in onttab.odf. Make changes to the database.
Create a log file called onttab.log in the current directory.
adodfcmp odffile=onttab.odf userid=ont/ont changedb=yes priv_schema=system/manager mode=indexes touser=apps/apps logfile=onttab.log


Leave a Reply