
Installgen
Features and Benefits
Installgen
Demo Available for download...

#!/bin/sh
# script: 7_sol_ora_install_1.sh
# Features: This shell script starts the installation of Oracle from the
# CD data which has been copied to the hard drive.
#
# Script Sequence#: 7
# Used By: run manually as oracle UNIX user
# Copyright 2002 by .com Solutions Inc.
#
# ---------------------- Revision History ---------------
# Date By Changes
# 9-27-2001 dsimpson Initial Release
# 9-30-2002 dsimpson Added use of environment variables for paths
# 11-02-2002 dsimpson Improved prompts for running root.sh
# This output file was created by Installgen version 1.38 on Sun Nov 10 14:51:56 2002. By .com Solutions Inc. www.dotcomsolutionsinc.net
# define globally used paths/variables
ORACLE_BASE=/u01/v901
ORACLE_HOME=/u01/v901
ORACLE_OWNER=oracle
ORACLE_OWNER_PATH=/export/oracle
ORACLE_GROUP=dba
ORACLE_HOME=/u01/v901
ORACLE_SID=prod1
LD_LIBRARY_PATH=/u01/v901/lib:/u01/v901/lib64:/usr/dt/lib
CLASSPATH=$ORACLE_HOME/jdbc/lib/classes111.zip
ORAENV_ASK=NO
TNS_ADMIN=$ORACLE_HOME/network/admin
PATH=/usr/sbin/:/bin:/usr/bin:/usr/ccs/bin:/usr/ucb/bin:/usr/ucb:/usr/openwin/bin:/usr/dt/bin:/usr/local/bin:/opt/bin:/usr/opt/SUNWmd/sbin:/usr/platform/sun4u/sbin:/opt/sfw/bin:.:/usr/local/sbin:/u01/v901/bin
TERM=vt100
NLS_LANG=AMERICAN_AMERICA.US7ASCII
export ORACLE_OWNER ORACLE_OWNER_PATH ORACLE_GROUP ORACLE_HOME ORACLE_SID ORA_BDUMP_DIR LD_LIBRARY_PATH PATH ORAENV_ASK TNS_ADMIN TERM NLS_LANG
cd1_directory=$ORACLE_OWNER_PATH/901_cd1
cd2_directory=$ORACLE_OWNER_PATH/901_cd2
cd3_directory=$ORACLE_OWNER_PATH/901_cd3
REMOTE_XWINDOW_DISPLAY=10.1.0.15
# make sure the oracle user is running this script
if [ ! $LOGNAME = "$ORACLE_OWNER" ]
then
# the user running this script is not $ORACLE_OWNER - exit
echo "You must be logged in as the $ORACLE_OWNER user to run this script, exiting...."
# exit immediately!
exit
fi
# start in the directory of the 1st CD
cd $cd1_directory
# give the user permission to display the Oracle java installer window
# If this generates an error, go back and run the command as root.
xhost + localhost
echo ""
echo " Please enter: xhost + localhost from a root terminal session."
echo ""
echo "Then press the Return key to continue."
echo ""
read answer
echo ""
echo " -- Installer Display Options -- "
echo "1) Display on server console window."
echo "2) Display on remote X-Window display at ip address $REMOTE_XWINDOW_DISPLAY."
echo "3) Display on an alternate X-Window display at an ip address you will enter."
echo "Please enter the option number followed by the Return key."
echo ""
read answer
case "$answer" in
1)
# DISPLAY variable will not be changed
;;
2)
DISPLAY="$REMOTE_XWINDOW_DISPLAY:0"
export DISPLAY
;;
3)
echo ""
echo "Please enter the IP address to use for the X-Window server:"
echo ""
read answer
DISPLAY=$answer:0
export DISPLAY
;;
esac
echo ""
echo "Please look at the following info to check the amount of swap space available."
echo "If SWAP is less than 400Mb, use the following commands to add a swap file:"
echo "mkfile 300m /u01/swapfile2"
echo "swap -a /u01/swapfile2 (or specify a different mount point for optimal performance)"
echo "Then press the Return key to continue."
echo ""
df -k
read answer
# start the Oracle Java based installer - install the database software
$cd1_directory/runInstaller -responseFile /export/oracle/64_sol_901EE_prod1_db_installer_response_1.rsp -silent
# run the root.sh script after the files are installed
echo ""
echo "Starting Oracle database software installation..."
echo ""
echo "*************************************"
echo "After the Oracle installer has finished, "
echo "run the /u01/v901/root.sh from a root terminal session."
echo "*************************************"
echo ""
echo "Then press the Return key to continue."
echo ""
read answer
# Ask whether OEM software should be installed.
echo "Install OEM server software?(y/n)"
read answer
if [ "$answer" = "y" ]
then
# start the Oracle Java based installer - install the OEM client/server software
$cd1_directory/runInstaller -responseFile /export/oracle/66_sol_901_prod1_oem_installer_response_1.rsp -silent
echo "Starting Oracle OEM/OMS software installation..."
echo ""
echo "*************************************"
echo "After the Oracle installer has finished installing OEM/OMS software, "
echo "run the the /u01/v901/root.sh from a root terminal session."
echo "*************************************"
echo ""
echo "Then press the Return key to continue."
echo ""
read answer
# remove ORCL instance files created during OEM install
rm -R /u01/v901/oradata
rm -R /u01/v901/dbs/dbname
rm /u01/v901/dbs/initORCL.ora
rm /u01/v901/dbs/orapw
fi
# Start building instance now?.
echo "Start building the database instance prod1 now?(y/n)"
read answer
if [ "$answer" = "y" ]
then
echo "Starting to build database instance prod1..."
echo ""
echo "After the instance has been built, please run the"
echo "post-install script 9_sol_901_ora_post_install_1.sh"
echo ""
/export/oracle/8_sol_901_db_build_1.sh
fi

