激情五月天婷婷,亚洲愉拍一区二区三区,日韩视频一区,a√天堂中文官网8

<ul id="buwfs"><strike id="buwfs"><strong id="buwfs"></strong></strike></ul>
    <output id="buwfs"></output>
  • <dfn id="buwfs"><source id="buwfs"></source></dfn>
      <dfn id="buwfs"><td id="buwfs"></td></dfn>
      <div id="buwfs"><small id="buwfs"></small></div>
      <dfn id="buwfs"><source id="buwfs"></source></dfn>
      1. <dfn id="buwfs"><td id="buwfs"></td></dfn>
        始創(chuàng)于2000年 股票代碼:831685
        咨詢熱線:0371-60135900 注冊(cè)有禮 登錄
        • 掛牌上市企業(yè)
        • 60秒人工響應(yīng)
        • 99.99%連通率
        • 7*24h人工
        • 故障100倍補(bǔ)償
        全部產(chǎn)品
        您的位置: 網(wǎng)站首頁(yè) > 幫助中心>文章內(nèi)容

        RMAN-20035 RMAN-06004與恢復(fù)目錄重新注冊(cè)

        發(fā)布時(shí)間:  2012/7/30 16:57:39

        一個(gè)數(shù)據(jù)庫(kù)RMAN 熱備份失敗,報(bào)錯(cuò)RMAN-20035 和RMAN-06004 。而使用exp 進(jìn)行的邏輯備份正常。

        具體信息如下:

        RMAN-03022: compiling command: backup

        RMAN-03026: error recovery releasing channel resources

        RMAN-08031: released channel: ch01
        -
         

        RMAN-00571: ===========================================================

        RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

        RMAN-00571: ===========================================================

        RMAN-03002: failure during compilation of command

        RMAN-03013: command type: backup

        RMAN-03014: implicit resync of recovery catalog failed

        RMAN-06004: Oracle error from recovery catalog database: RMAN-20035: invalid high recid

        這些錯(cuò)誤信息也證明數(shù)據(jù)庫(kù)本身沒(méi)有問(wèn)題,問(wèn)題應(yīng)該出在RMAN 上。

        這個(gè)庫(kù)的環(huán)境和備份配置這里先介紹一下。

        數(shù)據(jù)庫(kù)是Oracle 8.1.7.4 ,很早的一個(gè)版本。RMAN 備份的目錄庫(kù)是在一個(gè)Oracle 10g 的數(shù)據(jù)庫(kù)中。

        這個(gè)錯(cuò)誤導(dǎo)致了數(shù)據(jù)庫(kù)RMAN 熱備份不成功。

        問(wèn)題的關(guān)鍵點(diǎn)是來(lái)自恢復(fù)目錄數(shù)據(jù)庫(kù)的錯(cuò)誤,如下:

        RMAN-06004: Oracle error from recovery catalog database: RMAN-20035: invalid high recid

        1.  分析
        第一步,檢查備份腳本

        確認(rèn)備份腳本一直以來(lái)沒(méi)有變化過(guò)。因此,腳本本身沒(méi)有問(wèn)題。

        第二步,檢查目錄庫(kù)

        在該數(shù)據(jù)庫(kù)服務(wù)器上登錄sqlplus ,連接到目錄庫(kù)上。

        bash-2.05$ sqlplus  m18_rman_cata_34/wexxxxxxxx@xxxdb

        SQL*Plus: Release 8.1.7.0.0 - Production on Fri May 18 14:42:41 2012

        (c) Copyright 2000 Oracle Corporation.  All rights reserved.

        Connected to:

        Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production

        With the Partitioning, Real Application Clusters, OLAP and Data Mining options

        SQL>

        顯示是可以連接的。

        第三步,檢查備份集情況

        使用rman 操作,顯示一下備份情況。

        RMAN> list backupset;

        RMAN-03022: compiling command: list

        RMAN-03026: error recovery releasing channel resources

        RMAN-00571: ===========================================================

        RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

        RMAN-00571: ===========================================================

        RMAN-03002: failure during compilation of command

        RMAN-03013: command type: list

        RMAN-03014: implicit resync of recovery catalog failed

        RMAN-06004: Oracle error from recovery catalog database: RMAN-20035: invalid high recid

        結(jié)果很悲劇。

        已經(jīng)不能從恢復(fù)目錄庫(kù)中查詢備份結(jié)果集的信息了。

        可以確定備份的恢復(fù)目錄庫(kù)有問(wèn)題了。

        將恢復(fù)目錄庫(kù)重做一下,也可以解決這個(gè)問(wèn)題。

        還有一種方法,是重新注冊(cè)一下,將本庫(kù)重新注冊(cè)進(jìn)入恢復(fù)目錄庫(kù)。

        2.  解決
        首先,查詢一下該庫(kù)在恢復(fù)目錄庫(kù)中的注冊(cè)信息。

        SQL> select db_key,dbid,name from rc_database;

         

            DB_KEY       DBID NAME

        ---------- ---------- --------

                 1 3753655651 M18

         

        在恢復(fù)目錄庫(kù)中,NAME 為M18 的記錄就是我們備份失敗的數(shù)據(jù)庫(kù)。這個(gè)恢復(fù)目錄庫(kù)中只有一個(gè)庫(kù)的備份信息存儲(chǔ)在其中。

        其次,使用dbms_rcvcat 包的unregiseterdatabase 函數(shù)解除恢復(fù)目錄庫(kù)中的注冊(cè)信息

        使用sqlplus 登錄到恢復(fù)目錄庫(kù)中,執(zhí)行下面的SQL

        exec dbms_rcvcat.unregisterdatabase(1,3753655651);

        最后,重新注冊(cè)一下恢復(fù)目錄庫(kù)

        在rman 下執(zhí)行register database; 命令注冊(cè)。操作過(guò)程如下:

        bash-2.05$ rman target / rcvcat m18_rman_cata_34/xxxxx@xxxdb

         

        Recovery Manager: Release 8.1.7.4.0 - Production

         

        RMAN-06005: connected to target database: M18 (DBID=3753655651)

        RMAN-06008: connected to recovery catalog database

         

        RMAN> register database;

         

        RMAN-03022: compiling command: register

        RMAN-03023: executing command: register

        RMAN-08006: database registered in recovery catalog

        RMAN-03023: executing command: full resync

        RMAN-08002: starting full resync of recovery catalog

        ^[RMAN-08004: full resync complete

        可以從執(zhí)行結(jié)果中看出,已經(jīng)完全和恢復(fù)目錄同步成功了。

        數(shù)據(jù)庫(kù)RMAN 熱備份工作恢復(fù)正常。

        3.  總結(jié)
        這個(gè)系統(tǒng)的環(huán)境畢竟復(fù)雜,經(jīng)歷了從物理機(jī)器遷移到虛擬機(jī),又遷移回來(lái)。一般這種錯(cuò)誤是數(shù)據(jù)庫(kù)使用open resetlogs 方式打開過(guò),恢復(fù)目錄庫(kù)的信息就得重建。另有一種情況,就是bug 導(dǎo)致。


         


        本文出自:億恩科技【mszdt.com】

        服務(wù)器租用/服務(wù)器托管中國(guó)五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]

      2. 您可能在找
      3. 億恩北京公司:
      4. 經(jīng)營(yíng)性ICP/ISP證:京B2-20150015
      5. 億恩鄭州公司:
      6. 經(jīng)營(yíng)性ICP/ISP/IDC證:豫B1.B2-20060070
      7. 億恩南昌公司:
      8. 經(jīng)營(yíng)性ICP/ISP證:贛B2-20080012
      9. 服務(wù)器/云主機(jī) 24小時(shí)售后服務(wù)電話:0371-60135900
      10. 虛擬主機(jī)/智能建站 24小時(shí)售后服務(wù)電話:0371-60135900
      11. 專注服務(wù)器托管17年
        掃掃關(guān)注-微信公眾號(hào)
        0371-60135900
        Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權(quán)所有  地址:鄭州市高新區(qū)翠竹街1號(hào)總部企業(yè)基地億恩大廈  法律顧問(wèn):河南亞太人律師事務(wù)所郝建鋒、杜慧月律師   京公網(wǎng)安備41019702002023號(hào)
          0
         
         
         
         

        0371-60135900
        7*24小時(shí)客服服務(wù)熱線