Thursday, 3 November 2016

how check file versions

Two ways to check version of file.
            1. Adident   
            2. Strings
 ADIDENT Utility in ORACLE application is used to find version of any file.
STEP:-1
   Syntax : adident Header filename.
   e.g If you want to find out the version of appvndrb.pls
        $ cd AP_TOP/patch/115/sql
        $ adident Header appvndrb.pls
        o/p :
         appvndrb.pls:
         $Header appvndrb.pls 120.78.12010000.83 2010/04/27 21:00:55 vinaik ship
STEP-2
 Using Strings:
  Syntax : strings -a Top_name/location of file/filename | grep '$Header'
   e.g $ strings -a $AP_TOP/patch/115/sql/appvndrb.pls | grep '$Header'
   o/p : /* $Header: appvndrb.pls 120.78.12010000.83 2010/04/27 21:00:55 vinaik ship $ */
                                              OR
      $ cd $AP_TOP/patch/115/sql
      $ strings -a appvndrb.pls | grep '$Header'
OR
grep '$Header' $INV_TOP/patch/115/sql/INVTXGGB.pls

No comments:

Post a Comment