home *** CD-ROM | disk | FTP | other *** search
- :
- #
- # $Header: loader.in.pp,v 6.18 89/08/03 19:08:42 rafsarif Exp $ loader.in.pp
- #
- # loader.install
- #
- # This is the installation script to install SQL*Loader on a
- # UNIX ORACLE system.
- #
- # It can be invoked by the master installation script, oracle.install,
- # or as a stand alone procedure.
- #
- # The master script, oracle.install, sets ORACLE_HOME,
- # and LOG before it runs this script.
- # If the script is run stand-alone, then these variables must be set and
- # exported before it is run.
- #
- # Default answers are shown in square brackets.
- #
-
- NETLIBNAME="nsl_s"
- PHYS_BLK_SIZE=2048
- VNDR_NETLIBS="-lnsl_s "
- CHOWN=/bin/chown
- MAKE=make
- ORACLE_LPPROG="/usr/bin/lp"
- ORACLE_PAGER="/usr/bin/more"
- ORACLE_LPSTAT="/usr/bin/lpstat"
-
- #
- # Initialize variables used in installation script.
- #
- PRODUCT=LOADER
- product=loader
- MKTG_NAME=SQL*Loader
-
- #
- # Setup the environment variables for the installation script.
- #
- . $ORACLE_HOME/install/setup.ins
-
- #
- # "install" user utilities
- #
- cd $ORACLE_HOME/bin
- chmod 751 sqlload 2>/dev/null
-
- #FILE_LIST=`cat $ORACLE_HOME/${product}/install/${PRODUCT}.DIST`
-
- if [ "$LINK_PRODUCT" = "T" ] ; then
- #
- # Link sqlload (in the lib directory) and put it into the bin directory.
- #
- cd $ORACLE_HOME/${product}/lib
- echo ""
- echo "Linking and installing $MKTG_NAME executables..." | tee -a $LOG
- echo ""
- $MAKE -f sqlloader.mk ORACLE_HOME=$ORACLE_HOME install >> $LOG 2>&1
- if [ $? = 0 ] ; then
- case $SUPER_USER in
- TRUE) $CHOWN $ORACLE_OWNER $ORACLE_HOME/bin/sqlload ;;
- esac
- else
- echo "
- Relinking Error.
- The executable for $MKTG_NAME was not made successfully.
- Please check the log file, and repeat the installation
- procedure for $MKTG_NAME.
- " | tee -a $LOG
- fi
- fi
-
- #
- # Use "touch" to time stamp hidden file, for future verification of
- # product installation.
- touch "$ORACLE_HOME/$product/install/.$product" 2> /dev/null
-
- #
- # Hook for verification scripts -- this must happen last
- #
- case $ORACLE_VERIFY in
- T) if [ -f $ORACLE_HOME/$product/install/${product}.verify ] ; then
- ORACLE_INSTALL=T ; export ORACLE_INSTALL
- chmod 755 $ORACLE_HOME/$product/install/${product}.verify
- $ORACLE_HOME/$product/install/${product}.verify
- fi ;;
- esac
-
- #
- # Do any cleanup and exit this script.
- #
- echo ""
- case $UPDATE in
- Y) echo "$MKTG_NAME update completed." | tee -a $LOG ;;
- *) echo "$MKTG_NAME installation completed." | tee -a $LOG ;;
- esac
- echo ""
- sync;sync;sync
- exit 0
-
-