echo "Running runMeFixEtc.sh for Oracle install on Linux" # echo "Setting hosts file" cp -p /etc/hosts /etc/hosts_original cat >> /etc/hosts << EOF # server IP address | fully qual domain name | local name 192.168.1.15 db_server.fqd_name.com db_server 123.45.67.89 db_server.fqd_name.com db_server EOF # echo "copying ifcfg-eth0 to ifcfg-lo for Oracle" mkdir /etc/sysconfig/network-scripts/SAVE cp -p /etc/sysconfig/network-scripts/ifcfg-lo /etc/sysconfig/network-scripts/SAVE cp -f etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-lo # echo "setting parameters for Oracle in csh.login" cp -p csh.login csh_login.original cat >> /etc/csh.login << EOF if ( $USER == "oracle" ) then limit maxproc 16384 limit descriptors 65536 umask 022 endif EOF # echo "adding oraInst.loc for Oracle" # MAKE SURE THIS IS THE PATH YOU WANT TO USE # AFTER CREATING THE ORACLE USER, WE WILL CHANGE OWNER OF THE FILE touch etc/oraInst.loc cat >> /etc/otaInst.loc << EOF inventory_loc=/u01/app/oracle/oraInventory inst_group=oinstall EOF # echo "adding parameters for Oracle in profile" cp -p /etc/profile /etc/profile_original cat >> /etc/profile << EOF # added per Oracle install instructions # http://www.oracle.com/technology/pub/articles/smiley_10gdb_install.html if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi umask 022 fi EOF # echo "setting kernel parameters for Oracle" cp -p /etc/sysctl.conf /etc/sysctl_conf_original cat >> /etc/sysctl.conf <> /etc/security/limits.conf <> /etc/pam.d/login <