手動和自動啟動多個oracle執行個體,多個oracle執行個體

來源:互聯網
上載者:User

手動和自動啟動多個oracle執行個體,多個oracle執行個體
手工啟動兩個執行個體
su - oracle
lsnrctl start
--假設一個執行個體是itsm、另外一個是test
export ORACLE_SID=itsm
sqlplus / as sysdba
startup
quit
export ORACLE_SID=test
sqlplus / as sysdba
startup
quit
自動啟動,可以在/etc/rc.local中設定,增加如下的內容
--啟動預設的資料庫執行個體
su - oracle
lsnrctl start
sqlplus / as sysdba
startup

quit

--啟動第二個資料庫執行個體
su - oracle
export ORACLE_SID=test
sqlplus / as sysdba
startup
quit

相關文章

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.