home *** CD-ROM | disk | FTP | other *** search
- :
- #
- # $Header: sqlplus.ver.pp.120,v 6.7 89/03/10 18:00:08 rafsarif Exp $ base sqlplus sqlplus/install sqlplus.ver.pp 120 Copyr (c) 1988 Oracle Corporation
- #
- #
- # plus.verify
- #
- # This script does 3 things to verify the SQL*Plus product:
- # - install SQL*Plus if $ORACLE_INSTALL!=T
- # i.e. NOT being called inside plus.install
- # - display banners for sqlplus
- # - invoke demo:
- # * do a few 'SELECT's on the demo data
- # (This is just a VERY short test to verify that
- # SQL*Plus is functional. It is not trying
- # to demonstrate the product nor to qa it.)
- #
- # The script is assumed itself to be in ?/sqlplus/install
- # All output of this automated process will be recorded in
- # ?/sqlplus/install/plus_ver.out
- #
-
- PRODUCT=SQLPLUS
- product=sqlplus
- MKTG_NAME=SQL*Plus
-
- #
- # Setup the environment variables for the verification script.
- #
- . $ORACLE_HOME/install/setup.ver
-
- #
- ## 1. Automatically install SQL*Plus if ! $ORACLE_INSTALL.
- # i.e. not called by plus.install
- #
- echo $N ".$C" #Wait message
- if test "$ORACLE_INSTALL" != T
- then
-
- echo "#Default install of SQL*Plus:
- " >> $OUTPUT
- # Since we are calling plus.install within verify,
- # ORACLE_VERIFY should be false.
- ORACLE_VERIFY=F
- export ORACLE_VERIFY
- # exit if install fails
- plus.install >> $OUTPUT 2>&1 <<!
- !
- if test $? -gt 0
- then exit
- fi
- echo "
-
- " >> $OUTPUT
- echo " #########################################
- " >> $OUTPUT
-
- fi
- #
- ## 2. Check banners for sqlplus
- # * uses $ORACLE_HOME/install/prtversion.sh
- #
- echo $N ".$C" #Wait message
- echo "#Check the banners:
- " >> $OUTPUT
- $ORACLE_HOME/install/prtversion.sh -f temp$$
- echo $N ".$C" #Wait message
- fgrep sqlplus temp$$ >> $OUTPUT
- rm temp$$
- echo "
-
- " >> $OUTPUT
-
- echo " ########################################
- " >> $OUTPUT
- #
- ## 3. Invoke the demos
- #
- echo $N ".$C" #Wait message
- echo "#Demo testing:
- " >> $OUTPUT
- # invoke the demos
- sqlplus $SYSTEM_PASS >/dev/null <<!
- spool sqlplus.log
- set echo on
- connect scott/tiger
- select * from emp;
- select * from dept;
- spool off
- exit
- !
- echo " #Take a look at the demo data:
- " >> $OUTPUT
- cat sqlplus.log >> $OUTPUT
- rm sqlplus.log
- echo "
-
- " >> $OUTPUT
-
- echo " ####### Sqlplus.Verify Done #######
- " >> $OUTPUT
-
- echo ""
- echo " ####### Sqlplus.Verify Done #######"
-
-