home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a524 / 37.ddi / install / plsql.verify < prev   
Encoding:
Text File  |  1991-03-04  |  1.9 KB  |  84 lines

  1. :
  2. # $Header: plsql.ver.pp,v 6.2 89/03/22 17:44:37 rafsarif Exp $ plsql.ver.pp 
  3. #
  4. # plsql.verify
  5. #
  6. # This script does 2 things to verify the PL/SQL product:
  7. #    - install PL/SQL if $ORACLE_INSTALL!=T
  8. #          i.e. NOT being called inside plsql.install
  9. #    - display banners for PL/SQL
  10. # The script is assumed itself to be in ?/plsql/install
  11. # All output of this automated process will be recorded in 
  12. # ?/plsql/install/plsql_ver.out
  13.  
  14. #
  15. #  Initialize variables used in verification script.
  16. #
  17. PRODUCT=PLSQL
  18. product=plsql
  19. MKTG_NAME=PL/SQL
  20.  
  21. #
  22. #  Setup  the environment variables for the verification script.
  23. #
  24. . $ORACLE_HOME/install/setup.ver
  25.  
  26. #
  27. ## 1. Automatically install PL/SQL if ! $ORACLE_INSTALL.
  28. #             i.e. not called by plsql.install
  29. #
  30. echo $N ".$C"                   #Wait message
  31. if test "$ORACLE_INSTALL" != T
  32. then
  33.  
  34. echo "#Default install of PL/SQL:
  35. " >> $OUTPUT
  36. # Since we are calling plsql.install within verify, 
  37. #   ORACLE_VERIFY should be false.
  38. ORACLE_VERIFY=F
  39. export ORACLE_VERIFY
  40. # exit if install fails
  41. plsql.install >> $OUTPUT 2>&1 <<!
  42. !
  43. if test $? -gt 0
  44. then exit
  45. fi
  46. echo "
  47.  
  48. " >> $OUTPUT
  49. echo "               #########################################
  50. " >> $OUTPUT
  51.  
  52. fi
  53. #
  54. ## 2. Check banners for PL/SQL
  55. #    We can't  use prtversion.sh, since PL/SQL is not a separate product.
  56. #    we can run sqldba, and if PL/SQL is linked in, it will display a
  57. #    line with the version number of PL/SQL
  58. #
  59. echo $N ".$C"                   #Wait message
  60. echo "#Check the banners:
  61. " >> $OUTPUT
  62. sqldba <<! > temp$$
  63. exit
  64. !
  65. echo $N ".$C"                   #Wait message
  66. fgrep "PL/SQL" temp$$ >> $OUTPUT
  67. rm temp$$
  68. echo "
  69.  
  70.     (If no banner and version number is displayed, please check)
  71.     (to make sure oracle has been relinked after PL/SQL installation,)
  72.     (and run the verify script again.)" >> $OUTPUT
  73.  
  74. echo "               #######    plsql.Verify Done    #######
  75. " >> $OUTPUT
  76.  
  77. echo ""
  78. echo "               #######    plsql.Verify Done    #######"
  79.  
  80.