這篇文章將為大家詳細(xì)講解有關(guān)RAC數(shù)據(jù)庫(kù)重啟的示例分析,小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,希望大家閱讀完這篇文章后可以有所收獲。
在平?jīng)龅鹊貐^(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場(chǎng)前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供成都網(wǎng)站制作、網(wǎng)站設(shè)計(jì) 網(wǎng)站設(shè)計(jì)制作定制網(wǎng)站,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),品牌網(wǎng)站建設(shè),網(wǎng)絡(luò)營(yíng)銷推廣,成都外貿(mào)網(wǎng)站建設(shè)公司,平?jīng)鼍W(wǎng)站建設(shè)費(fèi)用合理。
1)su - grid --進(jìn)入用戶
2)lsnrctl stop --停用監(jiān)聽
srvctl stop listener -n rac02
srvctl stop listener -n rac01
srvctl start listener -n rac01
srvctl start listener -n rac02
3)停用數(shù)據(jù)庫(kù)
srvctl stop db -d vbsrun -o immediate
3)crs_stat -t --查看RAC當(dāng)前狀態(tài)(目前正常)
[grid@rac01 ~]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ARCH.dg ora....up.type ONLINE ONLINE rac01
ora.DATA.dg ora....up.type ONLINE ONLINE rac01
ora....ER.lsnr ora....er.type ONLINE ONLINE rac01
ora....N1.lsnr ora....er.type ONLINE ONLINE rac02
ora....N2.lsnr ora....er.type ONLINE ONLINE rac01
ora....N3.lsnr ora....er.type ONLINE ONLINE rac01
ora.OCR.dg ora....up.type ONLINE ONLINE rac01
ora.asm ora.asm.type ONLINE ONLINE rac01
ora.cvu ora.cvu.type ONLINE ONLINE rac01
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora....network ora....rk.type ONLINE ONLINE rac01
ora.oc4j ora.oc4j.type ONLINE ONLINE rac01
ora.ons ora.ons.type ONLINE ONLINE rac01
ora....SM1.asm application ONLINE ONLINE rac01
ora....01.lsnr application ONLINE ONLINE rac01
ora.rac01.gsd application OFFLINE OFFLINE
ora.rac01.ons application ONLINE ONLINE rac01
ora.rac01.vip ora....t1.type ONLINE ONLINE rac01
ora....SM2.asm application ONLINE ONLINE rac02
ora....02.lsnr application ONLINE ONLINE rac02
ora.rac02.gsd application OFFLINE OFFLINE
ora.rac02.ons application ONLINE ONLINE rac02
ora.rac02.vip ora....t1.type ONLINE ONLINE rac02
ora....ry.acfs ora....fs.type ONLINE ONLINE rac01
ora.scan1.vip ora....ip.type ONLINE ONLINE rac02
ora.scan2.vip ora....ip.type ONLINE ONLINE rac01
ora.scan3.vip ora....ip.type ONLINE ONLINE rac01
ora.vbsrun.db ora....se.type ONLINE ONLINE rac01
4)停用RAC(請(qǐng)?jiān)趓ac01和rac02分別執(zhí)行)root用戶
/u01/app/11.2.0/grid/bin/crsctl stop cluster -all
5)等待rac狀態(tài)都是offline之后重啟主機(jī)
reboot
6)重啟主機(jī)正常之后 請(qǐng)?jiān)趓ac01上執(zhí)行開啟集群節(jié)點(diǎn)
/u01/app/11.2.0/grid/bin/crsctl start cluster -all
7)狀態(tài)檢測(cè)
檢查狀態(tài)
[root@rac02 ~]# /u01/app/11.2.0/grid/bin/crs_stat -t -v
8)分別重啟數(shù)據(jù)
startup
關(guān)于“RAC數(shù)據(jù)庫(kù)重啟的示例分析”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,使各位可以學(xué)到更多知識(shí),如果覺得文章不錯(cuò),請(qǐng)把它分享出去讓更多的人看到。