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

  1. :
  2. # $Header: loader.in.pp,v 6.18 89/08/03 19:08:42 rafsarif Exp $ loader.in.pp
  3. #
  4. #  loader.install
  5. #
  6. #  This is the installation script to install SQL*Loader on a
  7. #  UNIX ORACLE system.
  8. #
  9. #  It can be invoked by the master installation script, oracle.install,
  10. #  or as a stand alone procedure.
  11. #
  12. #  The master script, oracle.install, sets ORACLE_HOME, 
  13. #  and LOG before it runs this script.
  14. #  If the script is run stand-alone, then these variables must be set and
  15. #  exported before it is run.
  16. #
  17. #  Default answers are shown in square brackets.
  18. #
  19.  
  20. NETLIBNAME="nsl_s"
  21. PHYS_BLK_SIZE=2048  
  22. VNDR_NETLIBS="-lnsl_s "
  23. CHOWN=/bin/chown
  24. MAKE=make        
  25. ORACLE_LPPROG="/usr/bin/lp"
  26. ORACLE_PAGER="/usr/bin/more"
  27. ORACLE_LPSTAT="/usr/bin/lpstat"
  28.  
  29. #
  30. #  Initialize variables used in installation script.
  31. #
  32. PRODUCT=LOADER
  33. product=loader
  34. MKTG_NAME=SQL*Loader
  35.  
  36. #
  37. #  Setup  the environment variables for the installation script.
  38. #
  39. . $ORACLE_HOME/install/setup.ins
  40.  
  41. #
  42. # "install" user utilities
  43. #
  44. cd $ORACLE_HOME/bin
  45. chmod 751 sqlload 2>/dev/null
  46.  
  47. #FILE_LIST=`cat $ORACLE_HOME/${product}/install/${PRODUCT}.DIST`
  48.  
  49. if [ "$LINK_PRODUCT" = "T" ] ; then
  50.    #
  51.    # Link sqlload (in the lib directory) and put it into the bin directory.
  52.    #
  53.    cd $ORACLE_HOME/${product}/lib
  54.    echo ""
  55.    echo "Linking and installing $MKTG_NAME executables..." | tee -a $LOG
  56.    echo ""
  57.    $MAKE -f sqlloader.mk  ORACLE_HOME=$ORACLE_HOME install >> $LOG 2>&1
  58.    if [ $? = 0 ] ; then
  59.       case $SUPER_USER in
  60.         TRUE)    $CHOWN $ORACLE_OWNER $ORACLE_HOME/bin/sqlload ;;
  61.       esac
  62.    else
  63.       echo "
  64.     Relinking Error.
  65.     The executable for $MKTG_NAME was not made successfully.
  66.     Please check the log file, and repeat the installation
  67.     procedure for $MKTG_NAME.
  68.     " | tee -a $LOG
  69.    fi
  70. fi
  71.  
  72. #
  73. #  Use "touch" to time stamp hidden file, for future verification of 
  74. #  product installation.
  75. touch "$ORACLE_HOME/$product/install/.$product" 2> /dev/null
  76.  
  77. #
  78. #  Hook for verification scripts -- this must happen last
  79. #
  80. case $ORACLE_VERIFY in
  81.     T)    if [ -f $ORACLE_HOME/$product/install/${product}.verify ] ; then
  82.         ORACLE_INSTALL=T ; export ORACLE_INSTALL
  83.         chmod 755 $ORACLE_HOME/$product/install/${product}.verify
  84.         $ORACLE_HOME/$product/install/${product}.verify
  85.     fi ;;
  86. esac
  87.  
  88. #
  89. #  Do any cleanup and exit this script.
  90. #
  91. echo ""
  92. case $UPDATE in
  93.     Y) echo "$MKTG_NAME update completed." | tee -a $LOG ;;
  94.     *) echo "$MKTG_NAME installation completed." | tee -a $LOG ;;
  95. esac
  96. echo ""
  97. sync;sync;sync
  98. exit 0
  99.  
  100.