首页 > 代码库 > oracle 10g 11g rac 虚拟环境切换
oracle 10g 11g rac 虚拟环境切换
在个人虚拟机上安装了oracle 10g 11g rac 下面是切换脚本命令
#10g rac >11g rac****************************************###############
cat /etc/inittab > /etc/inittab10g
cat /etc/inittab11g > /etc/inittab
#
rm -rf /etc/oracle10g
mv /etc/oracle /etc/oracle10g
cp -rp /etc/oracle11g /etc/oracle
#
cat /etc/oraInst.loc > /etc/oraInst.loc10g
rm -rf /etc/oraInst.loc
cp -p /etc/oraInst.loc11g /etc/oraInst.loc
#
cat /etc/oratab > /etc/oratab10g
rm -rf /etc/oratab
cp -p /etc/oratab11g /etc/oratab
#
rm -rf /var/tmp/.oracle10g
mv /var/tmp/.oracle /var/tmp/.oracle10g
mv /var/tmp/.oracle11g /var/tmp/.oracle
#11g rac >10g rac****************************************###############
cat /etc/inittab > /etc/inittab11g
cat /etc/inittab10g > /etc/inittab
#
rm -rf /etc/oracle11g
mv /etc/oracle /etc/oracle11g
cp -rp /etc/oracle10g /etc/oracle
#
cat /etc/oraInst.loc > /etc/oraInst.loc11g
rm -rf /etc/oraInst.loc
cp -p /etc/oraInst.loc10g /etc/oraInst.loc
#
cat /etc/oratab > /etc/oratab11g
rm -rf /etc/oratab
cp -p /etc/oratab10g /etc/oratab
#
rm -rf /var/tmp/.oracle11g
mv /var/tmp/.oracle /var/tmp/.oracle11g
mv /var/tmp/.oracle10g /var/tmp/.oracle
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
都提前备份
-r-xr-xr-x 1 root root 2436 Oct 6 09:47 /etc/init.d/init.crs
-r-xr-xr-x 1 root root 5538 Oct 6 09:47 /etc/init.d/init.crsd
-r-xr-xr-x 1 root root 5538 Oct 6 09:47 /etc/init.d/init.crsd.bak
-r-xr-xr-x 1 root root 55180 Oct 6 09:47 /etc/init.d/init.cssd
-r-xr-xr-x 1 root root 55180 Oct 6 09:47 /etc/init.d/init.cssd.bak
-r-xr-xr-x 1 root root 3505 Oct 6 09:47 /etc/init.d/init.evmd
-r-xr-xr-x 1 root root 3505 Oct 6 09:47 /etc/init.d/init.evmd.bak
-rwxr-xr-x 1 root root 8782 Oct 17 11:32 /etc/init.d/init.ohasd
-rwxr-xr-x 1 root root 8782 Oct 17 11:32 /etc/init.d/init.ohasdbak
-rwxr-xr-x 1 root root 10999 Oct 17 11:33 /etc/init.d/init.tfa
-rwxr-xr-x 1 root root 10999 Oct 17 11:33 /etc/init.d/init.tfabak
#10g rac >11g rac****************************************###############
cat /etc/inittab > /etc/inittab10g
cat /etc/inittab11g > /etc/inittab
#
rm -rf /etc/oracle10g
mv /etc/oracle /etc/oracle10g
cp -rp /etc/oracle11g /etc/oracle
#
cat /etc/oraInst.loc > /etc/oraInst.loc10g
rm -rf /etc/oraInst.loc
cp -p /etc/oraInst.loc11g /etc/oraInst.loc
#
cat /etc/oratab > /etc/oratab10g
rm -rf /etc/oratab
cp -p /etc/oratab11g /etc/oratab
#
rm -rf /var/tmp/.oracle10g
mv /var/tmp/.oracle /var/tmp/.oracle10g
mv /var/tmp/.oracle11g /var/tmp/.oracle
#11g rac >10g rac****************************************###############
cat /etc/inittab > /etc/inittab11g
cat /etc/inittab10g > /etc/inittab
#
rm -rf /etc/oracle11g
mv /etc/oracle /etc/oracle11g
cp -rp /etc/oracle10g /etc/oracle
#
cat /etc/oraInst.loc > /etc/oraInst.loc11g
rm -rf /etc/oraInst.loc
cp -p /etc/oraInst.loc10g /etc/oraInst.loc
#
cat /etc/oratab > /etc/oratab11g
rm -rf /etc/oratab
cp -p /etc/oratab10g /etc/oratab
#
rm -rf /var/tmp/.oracle11g
mv /var/tmp/.oracle /var/tmp/.oracle11g
mv /var/tmp/.oracle10g /var/tmp/.oracle
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
都提前备份
-r-xr-xr-x 1 root root 2436 Oct 6 09:47 /etc/init.d/init.crs
-r-xr-xr-x 1 root root 5538 Oct 6 09:47 /etc/init.d/init.crsd
-r-xr-xr-x 1 root root 5538 Oct 6 09:47 /etc/init.d/init.crsd.bak
-r-xr-xr-x 1 root root 55180 Oct 6 09:47 /etc/init.d/init.cssd
-r-xr-xr-x 1 root root 55180 Oct 6 09:47 /etc/init.d/init.cssd.bak
-r-xr-xr-x 1 root root 3505 Oct 6 09:47 /etc/init.d/init.evmd
-r-xr-xr-x 1 root root 3505 Oct 6 09:47 /etc/init.d/init.evmd.bak
-rwxr-xr-x 1 root root 8782 Oct 17 11:32 /etc/init.d/init.ohasd
-rwxr-xr-x 1 root root 8782 Oct 17 11:32 /etc/init.d/init.ohasdbak
-rwxr-xr-x 1 root root 10999 Oct 17 11:33 /etc/init.d/init.tfa
-rwxr-xr-x 1 root root 10999 Oct 17 11:33 /etc/init.d/init.tfabak
oracle 10g 11g rac 虚拟环境切换
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。