b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

ftp的客户端软件 Linux环境一键自动化安装oracle软件的构想(附she(11)

电脑杂谈  发布时间:2018-01-22 22:07:04  来源:网络整理

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

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...