#!/usr/bin/ksh
# whatopatch ()
#------------------------------------------------------------------------------#
#    Module Name:  whatopatch                                                  #
#                                                                              #
#    Purpose:      Report on the Oracle Critical Patch Update Information      #
#                                                                              #
#    Maintenance                                                               #
#    Date          Author        Description                                   #
#    -----------   ------------  --------------------------------------------  #
#    05-Nov-2007   M.Barone      Module design/creation                        #
#------------------------------------------------------------------------------#
{
        DIRNAM=$(dirname $0)
        ORASID=$(echo $CONTEXT_NAME | cut -f1 -d'_')
        HNAME=$(uname -n)

        clear
        echo
        echo  " #--------------------------------------------------------#"
        echo  " # whatopatch:           Oracle OPatch/opatch lsinventory #"
        echo  " #--------------------------------------------------------#"
        echo

        clear

#-----------------------------------------------------------------------------#
#-  Initializing                                                             -#
#-----------------------------------------------------------------------------#
  $ORACLE_HOME/OPatch/opatch lsinventory  | tee /tmp/whatopatch_$$.txt

print
print "Please see /tmp/whatopatch_$$.txt"
print
}