home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a524 / 27.ddi / install / plus.verify < prev    next >
Encoding:
Text File  |  1991-03-04  |  2.4 KB  |  106 lines

  1. :
  2. #
  3. #  $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 
  4. #
  5. #
  6. # plus.verify
  7. #
  8. # This script does 3 things to verify the SQL*Plus product:
  9. #    - install SQL*Plus if $ORACLE_INSTALL!=T
  10. #          i.e. NOT being called inside plus.install
  11. #    - display banners for sqlplus
  12. #    - invoke demo: 
  13. #        * do a few 'SELECT's on the demo data
  14. #          (This is just a VERY short test to verify that
  15. #           SQL*Plus is functional.  It is not trying
  16. #           to demonstrate the product nor to qa it.)
  17. # The script is assumed itself to be in ?/sqlplus/install
  18. # All output of this automated process will be recorded in 
  19. # ?/sqlplus/install/plus_ver.out
  20.  
  21. PRODUCT=SQLPLUS
  22. product=sqlplus
  23. MKTG_NAME=SQL*Plus
  24.  
  25. #
  26. #  Setup  the environment variables for the verification script.
  27. #
  28. . $ORACLE_HOME/install/setup.ver
  29.  
  30. #
  31. ## 1. Automatically install SQL*Plus if ! $ORACLE_INSTALL.
  32. #             i.e. not called by plus.install
  33. #
  34. echo $N ".$C"                   #Wait message
  35. if test "$ORACLE_INSTALL" != T
  36. then
  37.  
  38. echo "#Default install of SQL*Plus:
  39. " >> $OUTPUT
  40. # Since we are calling plus.install within verify, 
  41. #   ORACLE_VERIFY should be false.
  42. ORACLE_VERIFY=F
  43. export ORACLE_VERIFY
  44. # exit if install fails
  45. plus.install >> $OUTPUT 2>&1 <<!
  46. !
  47. if test $? -gt 0
  48. then exit
  49. fi
  50. echo "
  51.  
  52. " >> $OUTPUT
  53. echo "               #########################################
  54. " >> $OUTPUT
  55.  
  56. fi
  57. #
  58. ## 2. Check banners for sqlplus
  59. #        * uses $ORACLE_HOME/install/prtversion.sh
  60. #
  61. echo $N ".$C"                   #Wait message
  62. echo "#Check the banners:
  63. " >> $OUTPUT
  64. $ORACLE_HOME/install/prtversion.sh -f temp$$
  65. echo $N ".$C"                   #Wait message
  66. fgrep sqlplus temp$$ >> $OUTPUT
  67. rm temp$$
  68. echo "
  69.  
  70. " >> $OUTPUT
  71.  
  72. echo "               ########################################
  73. " >> $OUTPUT
  74. #
  75. ## 3. Invoke the demos
  76. #
  77. echo $N ".$C"                   #Wait message
  78. echo "#Demo testing:
  79. " >> $OUTPUT
  80. # invoke the demos
  81. sqlplus $SYSTEM_PASS >/dev/null <<!
  82. spool sqlplus.log
  83. set echo on
  84. connect scott/tiger
  85. select * from emp;
  86. select * from dept;
  87. spool off
  88. exit
  89. !
  90. echo "      #Take a look at the demo data:
  91. " >> $OUTPUT
  92. cat sqlplus.log >> $OUTPUT
  93. rm sqlplus.log
  94. echo "
  95.  
  96. " >> $OUTPUT
  97.  
  98. echo "               #######    Sqlplus.Verify Done    #######
  99. " >> $OUTPUT
  100.  
  101. echo ""
  102. echo "               #######    Sqlplus.Verify Done    #######"
  103.  
  104.