examples:
./install_oracle_main.sh client
./install_oracle_main.sh db rac 11.2.0.4
./install_oracle_main.sh db signle 11.2.0.4
EOF
exit 1
}
# Retrieve name of the platform
PLATFORM=`uname`
PWD=`pwd`
WEBSITE=""
NUM_OF_NODES=3
NODE1="node1"
NODE2="node2"
NODE3="node3"
PASSWD="Rootpasswd"
if [ ${PLATFORM} = "HP-UX" ] ; then
echo "This script does not support HP-UX platform for the time being"
elif [ ${PLATFORM} = "SunOS" ] ; then
echo "This script does not support SunOS platform for the time being"
elif [ ${PLATFORM} = "AIX" ] ; then
echo "This script does not support AIX platform for the time being"
elif [ ${PLATFORM} = "Linux" ] ; then
TYPE1=$1
TYPE2=$2
VERSION=$3
case ${TYPE1} in
db|DB)
case ${TYPE2} in
rac|RAC)
case ${VERSION} in
11.2.0.3|11.2.0.4|12.1.0.2)
sh ${PWD}/install_rpm.sh
sh ${PWD}/install_configure.sh ${TYPE2}
sh ${PWD}/create_user.sh ${TYPE2} ${PASSWD}
#以下两个脚本暂未完全调整好
sh ${PWD}/ssh_setup.sh ${NUM_OF_NODES} ${NODE1} ${NODE2} ${PASSWD}
sh ${PWD}/silent_install.sh ${TYPE2} ${VERSION}
;;
*)
usage
;;
esac
;;
signle|SIGNLE)
case ${VERSION} in
11.2.0.3|11.2.0.4|12.1.0.2)
sh ${PWD}/install_rpm.sh
sh ${PWD}/install_configure.sh ${TYPE2}
#以下两个脚本暂未完全调整好
sh ${PWD}/create_user.sh ${TYPE2} ${PASSWD}
sh ${PWD}/silent_install.sh ${TYPE2} ${VERSION}
;;
*)
usage
;;
esac
;;
*)
usage
;;
esac
;;
client|CLIENT) #暂未将安装客户端的脚本考虑进来
sh ${PWD}/install_rpm.sh
sh ${PWD}/install_configure.sh
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/bofangqi/article-62078-2.html
做为老百姓不建议