fi
return 0
}
Configure_signle(){
cat >> /etc/security/limits.conf <<EOF
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
EOF
if [ $? != 0 ]; then
errorExit Unable to configure settings for database
fi
return 0
}
Configure_rac(){
cat >> /etc/security/limits.conf <<EOF
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 1024
grid hard nofile 65536
EOF
if [ $? != 0 ]; then
errorExit Unable to configure settings for database
fi
return 0
}
Configure3(){
cat >> /etc/pam.d/login <<EOF
session required pam_limits.so
EOF
if [ $? != 0 ]; then
errorExit Unable to configure settings for database
fi
return 0
}
if [ $1 == "rac" ] || [ $1 == "RAC" ] ; then
prepareSystem Configure1 && Configure_rac && Configure3 || errorExit ""
if [ -f /etc/ntp.conf ]; then
mv /etc/ntp.conf /etc/ntp.conf.bak
/etc/init.d/ntpd stop > /dev/null 2>&1
chkconfig --level 0123456 ntpd off
fi
elif [ $1 == "signle" ] || [ $1 == "SIGNLE" ] ; then
prepareSystem Configure1 && Configure_signle && Configure3 || errorExit ""
fi
3、4软件安装用户建立及用户环境配置(create_user.sh)
#!/bin/sh -
#!/usr/bin/sh
#-----------------------------------------------------------------------------------------------
# Install softeare -- Install oracle 11g database software
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/bofangqi/article-62078-9.html
美国佬所做的一切