home *** CD-ROM | disk | FTP | other *** search
- :
- #
- # $Header: plsql.ver.pp,v 6.2 89/03/22 17:44:37 rafsarif Exp $ plsql.ver.pp
- #
- #
- # plsql.verify
- #
- # This script does 2 things to verify the PL/SQL product:
- # - install PL/SQL if $ORACLE_INSTALL!=T
- # i.e. NOT being called inside plsql.install
- # - display banners for PL/SQL
- #
- # The script is assumed itself to be in ?/plsql/install
- # All output of this automated process will be recorded in
- # ?/plsql/install/plsql_ver.out
- #
-
- #
- # Initialize variables used in verification script.
- #
- PRODUCT=PLSQL
- product=plsql
- MKTG_NAME=PL/SQL
-
- #
- # Setup the environment variables for the verification script.
- #
- . $ORACLE_HOME/install/setup.ver
-
- #
- ## 1. Automatically install PL/SQL if ! $ORACLE_INSTALL.
- # i.e. not called by plsql.install
- #
- echo $N ".$C" #Wait message
- if test "$ORACLE_INSTALL" != T
- then
-
- echo "#Default install of PL/SQL:
- " >> $OUTPUT
- # Since we are calling plsql.install within verify,
- # ORACLE_VERIFY should be false.
- ORACLE_VERIFY=F
- export ORACLE_VERIFY
- # exit if install fails
- plsql.install >> $OUTPUT 2>&1 <<!
- !
- if test $? -gt 0
- then exit
- fi
- echo "
-
- " >> $OUTPUT
- echo " #########################################
- " >> $OUTPUT
-
- fi
- #
- ## 2. Check banners for PL/SQL
- # We can't use prtversion.sh, since PL/SQL is not a separate product.
- # we can run sqldba, and if PL/SQL is linked in, it will display a
- # line with the version number of PL/SQL
- #
- echo $N ".$C" #Wait message
- echo "#Check the banners:
- " >> $OUTPUT
- sqldba <<! > temp$$
- exit
- !
- echo $N ".$C" #Wait message
- fgrep "PL/SQL" temp$$ >> $OUTPUT
- rm temp$$
- echo "
-
- (If no banner and version number is displayed, please check)
- (to make sure oracle has been relinked after PL/SQL installation,)
- (and run the verify script again.)" >> $OUTPUT
-
- echo " ####### plsql.Verify Done #######
- " >> $OUTPUT
-
- echo ""
- echo " ####### plsql.Verify Done #######"
-
-