Oracle10g11grac Virtual Environment Switch
Oracle 10g 11g rac is installed on a personal virtual machine. The following is a switchover script command.
#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
++ ++
Backup in advance
-R-xr-x 1 root 2436 Oct 6 09:47/etc/init. d/init. crs
-R-xr-x 1 root 5538 Oct 6 09:47/etc/init. d/init. crsd
-R-xr-x 1 root 5538 Oct 6 09:47/etc/init. d/init. crsd. bak
-R-xr-x 1 root 55180 Oct 6 09:47/etc/init. d/init.css d
-R-xr-x 1 root 55180 Oct 6 09:47/etc/init. d/init.css d. bak
-R-xr-x 1 root 3505 Oct 6 09:47/etc/init. d/init. evmd
-R-xr-x 1 root 3505 Oct 6 09:47/etc/init. d/init. evmd. bak
-Rwxr-xr-x 1 root 8782 Oct 17 :32/etc/init. d/init. ohasd
-Rwxr-xr-x 1 root 8782 Oct 17 :32/etc/init. d/init. ohasdbak
-Rwxr-xr-x 1 root 10999 Oct 17 :33/etc/init. d/init. tfa
-Rwxr-xr-x 1 root 10999 Oct 17 :33/etc/init. d/init. tfabak