.com Solutions Inc. - logo  
Products - Header Buttons
.
Repgen bullet item 7b Installgen bullet item 7b FmPro Migratorbullet item 7b CGIScripter
.
.
.

.
.

Installgen - sol901 - Title Graphic

Installgen Features and Benefits

Installgen Demo Available for download...

.

#! /bin/sh
# script: 4_sol_901_prepinstall_1.sh
# Features: This shell script checks/installs various Solaris utilities
# creates and installs dbora startup script, oratab file, creates mount point
# directories, sets permissions/ownership of these directories,
# creates/installs vfstab, defaultrouter, hosts, system, profile files,
# creates/installs /opt/server_scripts and rotateoraclefiles.sh files script for
# rotating/removing log files, create/install sshd startup script file in /rc3.d.
#
# Script Sequence#: 4
# Used By: run manually as root UNIX user
# Copyright 2002 by .com Solutions Inc.
#
# ---------------------- Revision History ---------------
# Date By Changes
# 9-25-2001 dsimpson Initial Release
# 9-30-2001 dsimpson Added use of environment variables for paths
# 5-27-2002 dsimpson Updated file names of utilities. Added
# fully qualified paths to install files
# in /export/oracle/ directory.
# Added removal of ssh host key files before
# ssh install. Updated to zlib 1.1.4.
# Added use of prngd.
# Added check for additional directories.

# 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 filenames for the files which will be installed
binutils_filename1=binutils-2.11.2-sol8-sparc-local.gz
binutils_filename2=binutils-2.11.2-sol8-sparc-local
gnu_make_filename1=make-3.79.1-sol8-sparc-local.gz
gnu_make_filename2=make-3.79.1-sol8-sparc-local
gzip_filename=gzip-1.3-sol8-sparc-local
less_filename1=less-358-sol8-sparc-local.gz
less_filename2=less-358-sol8-sparc-local
ncurses_filename1=ncurses-5.2-sol8-sparc-local.gz
ncurses_filename2=ncurses-5.2-sol8-sparc-local
top_filename1=top-3.5beta12-sol8-sparc3264-local.gz
top_filename2=top-3.5beta12-sol8-sparc3264-local
perl_filename1=perl-5.6.1-sol8-sparc-local.gz
perl_filename2=perl-5.6.1-sol8-sparc-local
perl_sendmail_filename1=Mail-Sendmail-0.78.tar.gz
perl_sendmail_filename2=Mail-Sendmail-0.78.tar
perl_sendmail_filename3=Mail-Sendmail-0.78
gcc_filename1=gcc-3.0.1-sol8-sparc-local.gz
gcc_filename2=gcc-3.0.1-sol8-sparc-local
openssl_filename1=openssl-0.9.6c-sol8-sparc-local.gz
openssl_filename2=openssl-0.9.6c-sol8-sparc-local
opensshp1_filename1=openssh-3.1p1-sol8-sparc-local.gz
opensshp1_filename2=openssh-3.1p1-sol8-sparc-local
opensshp1_filename3=not_used
opensshp2_filename1=not_used
opensshp2_filename2=not_used
opensshp2_filename3=not_used
prngd_filename1=prngd-0.9.23-sol8-sparc-local.gz
prngd_filename2=prngd-0.9.23-sol8-sparc-local
zlib_filename1=zlib-1.1.4-sol8-sparc-local.gz
zlib_filename2=zlib-1.1.4-sol8-sparc-local
zlib_filename3=none

# define globally used paths/variables
ORACLE_OWNER=oracle
ORACLE_OWNER_PATH=/export/oracle
ORACLE_GROUP=dba
ORACLE_HOME=/u01/v901
ORACLE_SID=prod1

ORA_BACKUP_DIR=/backup
ORA_ARCHIVE_DIR=/archive
ORA_BDUMP_DIR=/u01/bdump
ORA_CDUMP_DIR=/u01/cdump
ORA_UDUMP_DIR=/u01/udump
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/lib/osa/bin:/usr/platform/sun4u/sbin:/opt/sfw/bin:.:/usr/local/sbin
export PATH

# make sure the root user is running this script
if [ ! $LOGNAME = "root" ]
then
# the user running this script is not root - exit
echo "You must be logged in as the root user to run this script, exiting...."
# exit immediately!
exit
fi

if [ -f "/etc/rc2.d/S88sendmail" ]
then
# Ask whether sendmail should be disabled
echo "Disable sendmail from starting at system boot time?"
read answer
if [ "$answer" = "y" ]
then
# rename sendmail startup file to disable automatic startup
mv /etc/rc2.d/S88sendmail /etc/rc2.d/orig-S88sendmail
fi
fi

# check for and create /usr/local directory
if [ ! -d "/usr/local" ]
then
# /usr/local directory does not exist - create it here
echo "Creating /usr/local directory."
mkdir /usr/local
fi

# check for existence of gzip
which gzip

# Ask whether gzip should be installed.
echo "Install gzip?(y/n)"
read answer
if [ "$answer" = "y" ]
then
# install gzip
echo "Installing gzip."
pkgadd -d /export/oracle/$gzip_filename
fi

# check for existence of less
which less
# Ask whether less should be installed.
echo "Install less?(y/n)"
read answer
if [ "$answer" = "y" ]
then
# install less
echo "Installing less."
gunzip /export/oracle/$less_filename1
pkgadd -d /export/oracle/$less_filename2
gunzip /export/oracle/$ncurses_filename1
pkgadd -d /export/oracle/$ncurses_filename2
fi

# check for existence of top
which top
# Ask whether top should be installed.
echo "Install top?(y/n)"
read answer
if [ "$answer" = "y" ]
then
# install top
echo "Installing top."
gunzip /export/oracle/$top_filename1
pkgadd -d /export/oracle/$top_filename2
fi

# check for existence of perl
which perl
# Ask whether perl should be installed.
echo "Install perl?(y/n)"
read answer
if [ "$answer" = "y" ]
then
# install perl
echo "Installing perl."
gunzip /export/oracle/$perl_filename1
pkgadd -d /export/oracle/$perl_filename2
fi

# Ask whether Mail::Sendmail should be installed.
echo "Install Mail::Sendmail perl module (this module is required for email notifications from within perl programs)?(y/n)"
read answer
if [ "$answer" = "y" ]
then
# install Mail::Sendmail
echo "Installing Mail::Sendmail."
gunzip /export/oracle/$perl_sendmail_filename1
tar xvf /export/oracle/$perl_sendmail_filename2
cd /export/oracle/$perl_sendmail_filename3
perl /export/oracle/$perl_sendmail_filename3/Makefile.PL
make
make install
echo ""
echo "Please edit the Sendmail.pm file (in the install location listed above) with the correct SMTP server info."
echo ""
echo "Press return key to continue"
read answer

fi
# check for existence of gcc
which gcc
# Ask whether gcc should be installed.
echo "Install gcc?(y/n)"
echo "Note: GCC should be installed with this Oracle 9i installation so that PL/SQL code can be natively compiled by GCC (in the future)."
read answer
if [ "$answer" = "y" ]
then
# install gcc
echo "Installing gcc."
gunzip /export/oracle/$gcc_filename1
pkgadd -d /export/oracle/$gcc_filename2

# install GNU make
echo "installing GNU make."
gunzip /export/oracle/$gnu_make_filename1
pkgadd -d /export/oracle/$gnu_make_filename2
echo "creating symlink from /usr/local/bin/make to /usr/local/bin/gmake"
ln -s /usr/local/bin/make /usr/local/bin/gmake

# install GNU utilities - including ld
echo "installing GNU utilities - including ld."
gunzip /export/oracle/$binutils_filename1
pkgadd -d /export/oracle/$binutils_filename2

fi

# check for existence of sshd (secure shell)
which sshd
# Ask whether secure shell should be installed.
echo "Install secure shell?(y/n)"
read answer
if [ "$answer" = "y" ]
then
# install secure shell
echo "Installing zlib."
gunzip /export/oracle/$zlib_filename1
pkgadd -d /export/oracle/$zlib_filename2

echo "Installing open ssl."
gunzip /export/oracle/$openssl_filename1
pkgadd -d /export/oracle/$openssl_filename2

echo "Installing open ssh - p1."
gunzip /export/oracle/$opensshp1_filename1
pkgadd -d /export/oracle/$opensshp1_filename2

echo "Installing prngd - to get random numbers"
gunzip /export/oracle/$prngd_filename1
pkgadd -d /export/oracle/$prngd_filename2

echo "Using /var/log/syslog as seed file"
cat /var/log/syslog > /usr/local/etc/prngd/prngd-seed
mkdir /var/spool/prngd

# start gathering random numbers
/usr/local/bin/prngd /var/spool/prngd/pool

# remove old host key files first
rm /usr/local/etc/ssh_host_*

# put new ssh_config file into place - disabling root login via ssh
mv /usr/local/etc/sshd_config /usr/local/etc/orig-sshd_config
cp /export/oracle/69_sol_sshd_config_1.txt /usr/local/etc/sshd_config
chmod 644 /usr/local/etc/sshd_config
chown bin:bin /usr/local/etc/sshd_config

echo "Generating ssh keys."
/usr/local/bin/ssh-keygen -t rsa1 -f /usr/local/etc/ssh_host_key -N ""
/usr/local/bin/ssh-keygen -t dsa -f /usr/local/etc/ssh_host_dsa_key -N ""
/usr/local/bin/ssh-keygen -t rsa -f /usr/local/etc/ssh_host_rsa_key -N ""

echo "Creating sshd startup script."
rm /etc/init.d/sshd

exec 3>/etc/init.d/sshd
echo "#! /bin/sh" >&3
echo "# script: sshd">&3
echo "# Features: This shell starts up the sshd daemon upon system startup. ">&3
echo "# ">&3
echo "# Copyright 2002 by .com Solutions Inc.">&3
echo "#">&3
echo "# ---------------------- Revision History ---------------">&3
echo "# Date By Changes">&3
echo "# 10-27-2001 dsimpson Initial Release">&3
echo "# 05-08-2002 dsimpson Added startup of prngd">&3
echo " ">&3
echo "">&3
echo "# Start up prngd for gathering random numbers">&3
echo "/usr/local/bin/prngd /var/spool/prngd/pool">&3
echo "# Start up sshd for remote access">&3
echo "/usr/local/sbin/sshd">&3

# set execute for sshd startup script
/usr/bin/chmod u+x /etc/init.d/sshd

# start sshd manually this first time
/usr/local/sbin/sshd &

# create symbolic link to rc3.d startup scripts directory so it gets started automatically upon reboot
rm /etc/rc3.d/S44sshd
ln -s /etc/init.d/sshd /etc/rc3.d/S44sshd

echo "Secure shell has been installed and started. It is now ready for testing."
echo "After secure shell access has been verified,"
echo "edit /etc/inetd.conf to disable telnet and finger access."
echo ""
echo "Press return key to continue"
read answer

fi

# Ask whether new /etc/profile file should be installed.
echo "Replace existing /etc/profile file?(y/n)"
read answer
if [ "$answer" = "y" ]
then
# replace /etc/profile with new version
echo "Installing new /etc/profile (backing up old version as /etc/orig-profile)."
mv /etc/profile /etc/orig-profile
cp /export/oracle/10_sol_etc_profile_1.sh /etc/profile
chown root:sys /etc/profile
chmod 644 /etc/profile
fi

# Ask whether new /etc/hosts file should be installed.
echo "Replace existing /etc/hosts file?(y/n)"
read answer
if [ "$answer" = "y" ]
then
# replace /etc/hosts with new version
echo "Installing new /etc/hosts (backing up old version as /etc/orig-hosts)."
mv /etc/hosts /etc/orig-hosts
cp /export/oracle/15_sol_etc_hosts_1.txt /etc/hosts
chown root:sys /etc/inet/hosts
chmod 444 /etc/inet/hosts
fi

# Ask whether new /etc/system file should be installed.
echo "Replace existing /etc/system file?(y/n)"
read answer
if [ "$answer" = "y" ]
then
# replace /etc/system with new version
echo "Installing new /etc/system (backing up old version as /etc/orig-system)."
mv /etc/system /etc/orig-system
cp /export/oracle/38_sol_901_etc_system_1.txt /etc/system
chown root:sys /etc/system
chmod 644 /etc/system
echo "/etc/system has been replaced. Enter custom changes into the new file then press the return key."
read answer
fi

# Ask whether new /etc/nsswitch.conf file should be installed.
echo "Replace existing /etc/nsswitch.conf file?(y/n)"
read answer
if [ "$answer" = "y" ]
then
# replace /etc/nsswitch.conf with new version
echo "Installing new /etc/nsswitch.conf (backing up old version as /etc/nsswitch.conf)."
mv /etc/nsswitch.conf /etc/orig-nsswitch.conf
cp /export/oracle/48_sol_etc_nsswitch_1.txt /etc/nsswitch.conf
chown root:sys /etc/nsswitch.conf
chmod 644 /etc/nsswitch.conf
fi

# Ask whether new /etc/resolv.conf file should be installed.
echo "Replace existing /etc/resolv.conf file?(y/n)"
read answer
if [ "$answer" = "y" ]
then
# replace /etc/resolv.conf with new version
echo "Installing new /etc/resolv.conf (backing up old version as /etc/orig-resolv.conf)."
mv /etc/resolv.conf /etc/orig-resolv.conf
cp /export/oracle/44_sol_901_etc_resolv_conf_1.txt /etc/resolv.conf
chown root:sys /etc/nsswitch.conf
chmod 644 /etc/resolv.conf
fi

# Ask whether new /etc/defaultrouter file should be installed.
echo "Replace existing /etc/defaultrouter file?(y/n)"
read answer
if [ "$answer" = "y" ]
then
# replace /etc/defaultrouter with new version
echo "Installing new /etc/defaultrouter (backing up old version as /etc/orig-defaultrouter)."
mv /etc/defaultrouter /etc/orig-defaultrouter
cp /export/oracle/45_sol_901_etc_defaultrouter_1.txt /etc/defaultrouter
chown root:sys /etc/defaultrouter
chmod 644 /etc/defaultrouter
fi

# Ask which dbora startup file should be installed.
echo "Is this an OEM/OMS server?(y/n)"
read answer
if [ "$answer" = "y" ]
then
# install oem version of dbora
echo "Installing OEM version of dbora as /etc/init.d/dbora."
rm /etc/init.d/dbora
cp /export/oracle/12_sol_901_oem_dbora_1.sh /etc/init.d/dbora

else
# install non-OEM version of dbora
echo "Installing dbora as /etc/init.d/dbora."
rm /etc/init.d/dbora
cp /export/oracle/11_sol_901_dbora_1.sh /etc/init.d/dbora
fi

# make startup file readable only by root since it contains OMS password
chmod 611 /etc/init.d/dbora
chown root:sys /etc/init.d/dbora
rm /etc/rc3.d/S88dbora
rm /etc/rc0.d/K88dbora
ln -s /etc/init.d/dbora /etc/rc3.d/S88dbora
ln -s /etc/init.d/dbora /etc/rc0.d/K88dbora

# create /opt/server_scripts directory - add script to rotate log files
mkdir /opt/server_scripts
cp /export/oracle/13_sol_rotateoraclefiles_1.sh /opt/server_scripts/rotateoraclefiles.sh
chown -R $ORACLE_OWNER:$ORACLE_GROUP /opt/server_scripts
chmod +x /opt/server_scripts/rotateoraclefiles.sh

# Prompt user to add CRON job
echo "Please add the following CRON job entry:"
echo "# ******** Rotate Oracle Server logs nightly at 11:55PM ********"
echo "55 23 * * 0-6 /opt/server_scripts/rotateoraclefiles.sh"
echo "-- Press the return key to continue. --"
read answer

# check for each mount point
if [ ! -d "/u01" ]
then
echo "Create /u01 directory(y/n)"
read answer
if [ "$answer" = "y" ]
then
mkdir /u01
mkdir /u01/prod1
chown -R $ORACLE_OWNER:$ORACLE_GROUP /u01
fi
fi

# make each mount point owned by oracle:dba
chown -R $ORACLE_OWNER:$ORACLE_GROUP /u01

# Prompt user to create drive slices with format command
echo "Please create drive slices with the /usr/sbin/format command."
echo "Then press the Return key to continue."
read answer

# Ask whether to create a file system on each device
echo "Create file system on c0t0d0s0 for /u01(y/n)"
echo "WARNING - selecting (y) will cause all data to be lost on c0t0d0s0"
read answer
if [ "$answer" = "y" ]
then
newfs c0t0d0s0
fsck -y c0t0d0s0
mount c0t0d0s0 /u01
mkdir /u01/$ORACLE_SID
chown -R $ORACLE_OWNER:$ORACLE_GROUP /u01
fi

# Check to see if there is a prod1 subdirectory under each mount point
if [ ! -d "/u01/prod1" ]
then
echo "Create /u01/prod1 directory(y/n)"
read answer
if [ "$answer" = "y" ]
then
mkdir /u01/prod1
chown -R $ORACLE_OWNER:$ORACLE_GROUP /u01/prod1
fi
fi



# create /u01/prod1 directory for redo log files multiplexed
if [ ! -d "/u01/prod1" ]
then
# directory does not exist - prompt to create /u01/prod1/redo01g1f2.log directory
echo ""
echo "Create /u01/prod1/redo01g1f2.log directory?(y/n)"
echo ""
read answer
if [ $answer = "y" ]
then
# create /u01/prod1/redo01g1f2.log directory
mkdir /u01/prod1/redo01g1f2.log
chown -R $ORACLE_OWNER:$ORACLE_GROUP /u01/prod1/redo01g1f2.log
fi
fi

# create /u01/prod1 directory for redo log files multiplexed
if [ ! -d "/u01/prod1" ]
then
# directory does not exist - prompt to create /u01/prod1/redo02g2f2.log directory
echo ""
echo "Create /u01/prod1/redo02g2f2.log directory?(y/n)"
echo ""
read answer
if [ $answer = "y" ]
then
# create /u01/prod1/redo02g2f2.log directory
mkdir /u01/prod1/redo02g2f2.log
chown -R $ORACLE_OWNER:$ORACLE_GROUP /u01/prod1/redo02g2f2.log
fi
fi

# create /u01/prod1 directory for redo log files multiplexed
if [ ! -d "/u01/prod1" ]
then
# directory does not exist - prompt to create /u01/prod1/redo03g3f2.log directory
echo ""
echo "Create /u01/prod1/redo03g3f2.log directory?(y/n)"
echo ""
read answer
if [ $answer = "y" ]
then
# create /u01/prod1/redo03g3f2.log directory
mkdir /u01/prod1/redo03g3f2.log
chown -R $ORACLE_OWNER:$ORACLE_GROUP /u01/prod1/redo03g3f2.log
fi
fi


# create /u01/prod1 directory for redo log files
if [ ! -d "/u01/prod1" ]
then
# directory does not exist - prompt to create /u01/prod1/redo01.log directory
echo ""
echo "Create /u01/prod1/redo01.log directory?(y/n)"
echo ""
read answer
if [ $answer = "y" ]
then
# create /u01/prod1/redo01.log directory
mkdir /u01/prod1/redo01.log
chown -R $ORACLE_OWNER:$ORACLE_GROUP /u01/prod1/redo01.log
fi
fi

# create /u01/prod1 directory for redo log files
if [ ! -d "/u01/prod1" ]
then
# directory does not exist - prompt to create /u01/prod1/redo02.log directory
echo ""
echo "Create /u01/prod1/redo02.log directory?(y/n)"
echo ""
read answer
if [ $answer = "y" ]
then
# create /u01/prod1/redo02.log directory
mkdir /u01/prod1/redo02.log
chown -R $ORACLE_OWNER:$ORACLE_GROUP /u01/prod1/redo02.log
fi
fi

# create /u01/prod1 directory for redo log files
if [ ! -d "/u01/prod1" ]
then
# directory does not exist - prompt to create /u01/prod1/redo03.log directory
echo ""
echo "Create /u01/prod1/redo03.log directory?(y/n)"
echo ""
read answer
if [ $answer = "y" ]
then
# create /u01/prod1/redo03.log directory
mkdir /u01/prod1/redo03.log
chown -R $ORACLE_OWNER:$ORACLE_GROUP /u01/prod1/redo03.log
fi
fi


# create /u01/prod1 directory for controlfiles
if [ ! -d "/u01/prod1" ]
then
# directory does not exist - prompt to create /u01/prod1/control01.ctl directory
echo ""
echo "Create /u01/prod1/control01.ctl directory?(y/n)"
echo ""
read answer
if [ $answer = "y" ]
then
# create /u01/prod1/control01.ctl directory
mkdir /u01/prod1/control01.ctl
chown -R $ORACLE_OWNER:$ORACLE_GROUP /u01/prod1/control01.ctl
fi
fi

# create /u01/prod1 directory for controlfiles
if [ ! -d "/u01/prod1" ]
then
# directory does not exist - prompt to create /u01/prod1/control02.ctl directory
echo ""
echo "Create /u01/prod1/control02.ctl directory?(y/n)"
echo ""
read answer
if [ $answer = "y" ]
then
# create /u01/prod1/control02.ctl directory
mkdir /u01/prod1/control02.ctl
chown -R $ORACLE_OWNER:$ORACLE_GROUP /u01/prod1/control02.ctl
fi
fi

# create /u01/prod1 directory for controlfiles
if [ ! -d "/u01/prod1" ]
then
# directory does not exist - prompt to create /u01/prod1/control03.ctl directory
echo ""
echo "Create /u01/prod1/control03.ctl directory?(y/n)"
echo ""
read answer
if [ $answer = "y" ]
then
# create /u01/prod1/control03.ctl directory
mkdir /u01/prod1/control03.ctl
chown -R $ORACLE_OWNER:$ORACLE_GROUP /u01/prod1/control03.ctl
fi
fi


if [ ! -d "/archive" ]
then
echo "Create /archive directory(y/n)"
read answer
if [ "$answer" = "y" ]
then
mkdir /archive
chown -R $ORACLE_OWNER:$ORACLE_GROUP /archive
fi
fi
if [ ! -d "/backup" ]
then
echo "Create /backup directory(y/n)"
read answer
if [ "$answer" = "y" ]
then
mkdir /backup

# create UTL_FILE_DIR within /backup directory
mkdir /backup/oracle_utl_file_dir
chown -R $ORACLE_OWNER:$ORACLE_GROUP /backup

fi
fi

if [ ! -d "/u01/bdump" ]
then
echo "Create /u01/bdump directory(y/n)?"
read answer
if [ "$answer" = "y" ]
then
mkdir /u01/bdump
chown -R $ORACLE_OWNER:$ORACLE_GROUP /u01/bdump
fi
fi

if [ ! -d "/u01/cdump" ]
then
echo "Create /u01/cdump directory(y/n)?"
read answer
if [ "$answer" = "y" ]
then
mkdir /u01/cdump
chown -R $ORACLE_OWNER:$ORACLE_GROUP /u01/cdump
fi
fi

if [ ! -d "/u01/udump" ]
then
echo "Create /u01/udump directory(y/n)?"
read answer
if [ "$answer" = "y" ]
then
mkdir /u01/udump
chown -R $ORACLE_OWNER:$ORACLE_GROUP /u01/udump
fi
fi


if [ ! -d "$ORACLE_HOME" ]
then
echo "Create Oracle Home directory as $ORACLE_HOME(y/n)"
read answer
if [ "$answer" = "y" ]
then
mkdir $ORACLE_HOME
mkdir $ORACLE_HOME/plsql_compiled_code

# create 1000 compiled code subdirectories for Oracle to use
echo "Creating 1000 plsql compiled code subdirectories within the $ORACLE_HOME/plsql_compiled_code directory ..."
loop1=0
while [ $loop1 -lt 1000 ]
do
echo "$ORACLE_HOME/plsql_compiled_code/d$loop1"
mkdir $ORACLE_HOME/plsql_compiled_code/d$loop1
loop1=`expr $loop1 + 1`
done

chown -R $ORACLE_OWNER:$ORACLE_GROUP $ORACLE_HOME

fi
fi

# display the mounted volumes
df -k

echo "#device device mount FS fsck mount mount"
echo "#to mount to fsck point type pass at boot options"
echo "#"
echo "# Oracle file systems on disk array"
echo "#"
echo "c0t0d0s0 c0t0d0s0 /u01 ufs 1 yes -"
echo ""
echo "Edit /etc/vfstab automatically with the above info:?(y/n)"
echo ""
read answer

if [ "$answer" = "y" ]
then
# copy existing /etc/vfstab file as a backup
cp /etc/vfstab /etc/orig-vfstab
chown root:sys /etc/orig-vfstab
chmod 644 /etc/orig-vfstab
# append new info to /etc/vfstab
echo "Appending new info to /etc/vfstab file."
echo "#" >> /etc/vfstab
echo "# Oracle file systems on disk array" >> /etc/vfstab
echo "#" >> /etc/vfstab
echo "c0t0d0s0 c0t0d0s0 /u01 ufs 1 yes -" >> /etc/vfstab
else
# user will edit /etc/vfstab manually
echo "Use the contents of the 14_sol_etc_vfstab_1.txt file to edit /etc/vfstab manually."

fi

echo ""
echo "Start the 5_sol_901_prep_copyoracle_cds_1.sh script to copy the Oracle installation files from CD, after it has completed, reboot the system for the /etc/system kernel tuning parameters to take effect."
echo ""
echo "Press the Return key to continue."
echo ""
read answer

# give the user permission to display the Oracle java installer window
xhost + localhost

# create subdirectory for installer location file
mkdir /var/opt/oracle
chown oracle:dba /var/opt/oracle

# move installer location file into proper location
cp /export/oracle/65_sol_901_prod1_installer_location_1.loc /var/opt/oracle/oraInst.loc

# create installer inventory directory
mkdir /u01/v901/oraInventory
chown oracle:dba /u01/v901/oraInventory



.

hline

. .

.

. .
 

Home | Products | Services | Downloads | Order | Support | Contact

Legal Notices

.
.   .
.
Home Products Services Downloads Order Support Contact