NBU異機(jī)還原oracle問題分析

這篇文章主要介紹“NBU異機(jī)還原oracle問題分析”,在日常操作中,相信很多人在NBU異機(jī)還原oracle問題分析問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對(duì)大家解答”NBU異機(jī)還原oracle問題分析”的疑惑有所幫助!接下來,請(qǐng)跟著小編一起來學(xué)習(xí)吧!

創(chuàng)新互聯(lián)是一家專業(yè)提供富陽企業(yè)網(wǎng)站建設(shè),專注與網(wǎng)站設(shè)計(jì)制作、成都網(wǎng)站制作、html5、小程序制作等業(yè)務(wù)。10年已為富陽眾多企業(yè)、政府機(jī)構(gòu)等服務(wù)。創(chuàng)新互聯(lián)專業(yè)網(wǎng)絡(luò)公司優(yōu)惠進(jìn)行中。

今天在執(zhí)行nbu恢復(fù)oracle的問題,發(fā)現(xiàn)總是出現(xiàn)問題
恢復(fù)腳本是沒問題的
RMAN> run
{
allocate channel c1 type 'sbt_tape';
send 'NB_ORA_CLIENT=mytest1';
restore controlfile from '/cntrl_6255_1_880381344';
release channel c1;
}


using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=59 device type=SBT_TAPE
channel c1: Veritas NetBackup for Oracle - Release 7.6 (2013111313)

sent command to channel: c1

Starting restore at 22-MAY-15

channel c1: restoring control file
released channel: c1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 05/22/2015 14:45:16
ORA-19870: error while restoring backup piece /cntrl_6255_1_880381344
ORA-19507: failed to retrieve sequential file, handle="/cntrl_6255_1_880381344", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
   Backup file </cntrl_6255_1_880381344> not found in NetBackup catalog
  
但通過bplist從nbu備份服務(wù)器上查看也是可以看到的,但就是報(bào)這個(gè)錯(cuò),經(jīng)過分析,感覺可能是用戶的問題,原來備份時(shí)的用戶是oracle,而現(xiàn)在的恢復(fù)環(huán)境是oratest。所以新建新建一個(gè)oracle用戶來,建好后對(duì)oracle用戶授好權(quán)后,再恢復(fù)報(bào)如下錯(cuò)誤:
RMAN> run
{
allocate channel c1 type 'sbt_tape';
send 'NB_ORA_CLIENT=mytest1';
restore controlfile from '/cntrl_6255_1_880381344';
release channel c1;
}

using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=59 device type=SBT_TAPE
channel c1: Veritas NetBackup for Oracle - Release 7.6 (2013111313)

sent command to channel: c1

Starting restore at 25-MAY-15

released channel: c1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 05/25/2015 17:23:18
RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece

后來經(jīng)過咨詢nbu的工程師,得到了答案!

原因是:
1、ORACLE_HOME的屬主,要與原環(huán)境相同。也就是說原環(huán)境中是oracle用戶,那么新環(huán)境也必須是oracle
2、在使用oracle_link鏈接時(shí),必須是使用與原環(huán)境相同的用戶進(jìn)行執(zhí)行
2、恢復(fù)時(shí),使用的執(zhí)行用戶,必須與原環(huán)境相同的用戶。

到此,關(guān)于“NBU異機(jī)還原oracle問題分析”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請(qǐng)繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)砀鄬?shí)用的文章!

網(wǎng)站標(biāo)題:NBU異機(jī)還原oracle問題分析
標(biāo)題URL:http://www.muchs.cn/article0/jpjioo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供營銷型網(wǎng)站建設(shè)、網(wǎng)站策劃、Google全網(wǎng)營銷推廣、網(wǎng)站收錄網(wǎng)頁設(shè)計(jì)公司

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站托管運(yùn)營