if [ $pathsize -lt 31457820 ] ; then
GetPath $1
else
return 0
fi
fi
}
AuzPath(){
if [ $i == "oracle_base" ] ; then
chown -R oracle:oinstall $path
chmod -R 775 `dirname $path`
elif [ $i == "grid_base" ] ; then
chown -R grid:oinstall $path
chmod -R 775 `dirname $path`
elif [ $i == "grid_home" ] ; then
chown -R root:oinstall `dirname $path`
chmod -R 775 `dirname $path`
fi
}
GetPath(){
paths=(oracle_base grid_base grid_home)
printf \nplease input the path of ${paths[0]}:
read install_path
path=$install_path
if CheckPath $path
then
i=${paths[0]}
AuzPath $i $path
fi
obase=`grep -w "ORACLE_BASE=" /home/oracle/.bash_profile |awk -F"=" {print $2}`
sed -i "s#${obase}#$path#" /home/oracle/.bash_profile
if [ $1 == "rac" ] || [ $1 == "RAC" ] ; then
printf \nplease input the path of ${paths[1]}:
read install_path
path=$install_path
if CheckPath $path
then
i=${paths[1]}
AuzPath $i $path
fi
gbase=`grep -w "ORACLE_BASE=" /home/grid/.bash_profile |awk -F"=" {print $2}`
sed -i "s#${gbase}#$path#" /home/grid/.bash_profile
printf \nplease input the path of ${paths[2]}:
read install_path
path=$install_path
if CheckPath $path
then
i=${paths[2]}
AuzPath $i $path
fi
ghome=`grep -w "ORACLE_HOME=" /home/grid/.bash_profile |awk -F"=" {print $2}`
sed -i "#${ghome}#$path#" /home/grid/.bash_profile
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/bofangqi/article-62078-11.html
台湾问题已经超出了政治范畴
杨洋加油