oracle 10g 11g rac 虛擬環境切換

來源:互聯網
上載者:User

標籤:ar   sp   bs   as   安裝   tt   oracle   ca   虛擬機器   

在個人虛擬桌面上安裝了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

oracle 10g 11g rac 虛擬環境切換

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.