今天是2014-04-01,忙碌了一天終于有時(shí)間寫(xiě)點(diǎn)東西了。前段時(shí)間寫(xiě)了RAc中ocr存在備份的情況下如何恢復(fù),今天寫(xiě)一下在沒(méi)有備份情況下如何去重建ocr和olr呢?
最大的悲劇莫過(guò)于數(shù)據(jù)庫(kù)壞了備份沒(méi)了。讓我想起了前幾年流行的一句話:“最大的悲劇是人活著,錢(qián)沒(méi)了”。總之備份重于一切。
情景介紹:
在11G中ocr的asm磁盤(pán)組被用戶不小心刪了且所有備份都誤刪,olr呢也損壞了。至此悲劇重演。
恢復(fù)過(guò)程:(其實(shí)就是使用root.sh重建ocr的過(guò)程,重建之后可能需要重新注冊(cè)相關(guān)資源如listener or database 實(shí)例等!)
1、清空所有節(jié)點(diǎn)cluster配置信息:(11G中存在rootcrs.sh腳本,該腳本默認(rèn)存在于$GRID_HOME/crs/install)。
注,該腳本需要在root下執(zhí)行,否則會(huì)有錯(cuò)誤提示
?
1 2 3 4 5 6 [[email protected] install]$ ./rootcrs.pl You must be logged in as root to run this script. Log in as root and rerun this script. 2014-04-01 17:08:12: Not running as authorized user Insufficient privileges to execute this script. root or administrative privileges needed to run the script.了解該腳本的功能可以查看-help。如升級(jí)、回退、重新配置等待》
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 [[email protected] install]# ./rootcrs.pl -help Usage: rootcrs.pl [-verbose] [-upgrade [-force] | -patch] [-paramfile <parameter-file>] [-deconfig [-deinstall] [-keepdg] [-force] [-lastnode]] [-downgrade -oldcrshome <old crshome path> -version <old crs version> [-force] [-lastnode]] [-unlock [-crshome <path to crs home>] [-nocrsstop]] [-init] Options: -verbose Run this script in verbose mode -upgrade
|
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注