1. <var id="fe6gj"></var>

    <rp id="fe6gj"><nav id="fe6gj"></nav></rp>

    <noframes id="fe6gj"><cite id="fe6gj"></cite>

    <ins id="fe6gj"><button id="fe6gj"><p id="fe6gj"></p></button></ins>
    1. <tt id="fe6gj"><i id="fe6gj"><sub id="fe6gj"></sub></i></tt>
        始創于2000年 股票代碼:831685
        咨詢熱線:0371-60135900 注冊有禮 登錄
        • 掛牌上市企業
        • 60秒人工響應
        • 99.99%連通率
        • 7*24h人工
        • 故障100倍補償
        您的位置: 網站首頁 > 幫助中心>文章內容

        Oracle數據庫教程:ORA-01103錯誤解析

        發布時間:  2012/7/30 17:06:07

        這是一測試庫,我將參數文件,控制文件,數據文件全部刪除之后,做數據恢復,但是

        我把控制文件和參數文件都恢復回來了,可數據庫卻怎么也打不開,報ORA-01103: database name 'WWL' in control file is not 'DUMMY'錯誤
        -
         

        我的數據庫名稱是:WWL

        2、執行過程:

        恢復參數文件:

        RMAN> setDBID=5520179

        executing command: SET DBID

        RMAN> restorespfile from autobackup;

        Starting restore at 23-MAY-12

        using target database control file insteadof recovery catalog

        allocated channel: ORA_DISK_1

        channel ORA_DISK_1: sid=39 devtype=DISK

         

        channel ORA_DISK_1: looking for autobackupon day: 20120523

        channel ORA_DISK_1: autobackup found:c-5520179-20120523-04

        channel ORA_DISK_1: SPFILE restore fromautobackup complete

        Finished restore at 23-MAY-12

        RMAN>

         

        3、恢復控制文件

        RMAN> restorecontrolfile from autobackup;

         

        Starting restore at 23-MAY-12

        using channel ORA_DISK_1

         

        channel ORA_DISK_1: looking for autobackupon day: 20120523

        channel ORA_DISK_1: autobackup found:c-5520179-20120523-04

        channel ORA_DISK_1: control file restorefrom autobackup complete

        output filename=/DBSoft/product/10.2.0/db_1/dbs/cntrlWWL.dbf

        Finished restore at 23-MAY-12

         

        RMAN>

         

        4、報錯信息:

        RMAN> sql 'alterdatabase mount';

        sql statement: alter database mount

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

        RMAN-00569: =============== ERROR MESSAGESTACK FOLLOWS ===============

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

        RMAN-03009: failure of sql command ondefault channel at 05/23/2012 18:51:31

        RMAN-11003: failure during parse/executionof SQL statement: alter database mount

        ORA-01103: database name 'WWL' in controlfile is not 'DUMMY'

         

        RMAN> alterdatabase mount;

        using target database control file insteadof recovery catalog

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

        RMAN-00569: =============== ERROR MESSAGESTACK FOLLOWS ===============

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

        RMAN-03002: failure of alter db command at05/23/2012 18:39:47

        ORA-01103: database name 'WWL' in controlfile is not 'DUMMY'

         

        SQL> alterdatabase mount;

        alter database mount

         

        ERROR at line 1:

        ORA-01103: database name 'WWL' in controlfile is not 'DUMMY'

         

        注意:問題是我恢復的控制文件沒有錯呀,在本機器上也沒有部署過DUMMY的數據庫呀,只有一個實例是WWL。

         

        查詢實例信息,實例信息顯示沒有錯呀是WWL。

        SQL> selectinstance_name,status from v$instance;

         

        INSTANCE_NAME    STATUS

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

        WWL              STARTED

         

        SQL> alterdatabase mount;       ----順便執行了下mount database;

        alter database mount

        *

        ERROR at line 1:

        ORA-01103: database name 'WWL' in controlfile is not 'DUMMY'

         

        奇怪的事發生了,現在再次登錄到RMAM居然連接到的是DUMMY庫:

        問題是,我確定沒有這個庫呀,怎么辦。。。

         

        [Oracle@wwldb dbs]$rman target /

        Recovery Manager: Release 10.2.0.1.0 -Production on Wed May 23 19:01:09 2012

        Copyright (c) 1982, 2005, Oracle.  All rights reserved.

        connected to target database: DUMMY (notmounted)

        RMAN> exit     

        我們剛才做了參數文件和控制文件的恢復,要不將數據庫重啟下,看有沒有問題。

        SQL> shutdownimmediate

        ORA-01507: database not mounted

        Oracle instance shut down.

        SQL> startupmount;

        Oracle instance started.

        Total System Global Area  285212672 bytes

        Fixed Size                  1218968 bytes

        Variable Size              79693416 bytes

        Database Buffers          197132288 bytes

        Redo Buffers                7168000 bytes

        Database mounted.

        再次登錄正常。

        [Oracle@wwldb dbs]$rman target /

        Recovery Manager: Release 10.2.0.1.0 -Production on Wed May 23 19:04:15 2012

        Copyright (c) 1982, 2005, Oracle.  All rights reserved.

        connected to target database: WWL(DBID=5520179, not open)

         

        這個問題我一兄弟在AIX,Linux,Windows 上分別做實驗了,結果是在Windows下不用重啟數據庫,Rman就可以認到,而不會是DUMMY數據庫。
        B,每小時執行一次,整點執行

        interval => 'trunc(sysdate,'HH')+1/24'

        C,一個小時后執行

        interval => 'sysdate+1/24'


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

        服務器租用/服務器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質保障!--億恩科技[ENKJ.COM]

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

        0371-60135900
        7*24小時客服服務熱線

         
         
        av不卡不卡在线观看_最近2018年中文字幕_亚洲欧美一区二区三区_一级A爱做片免费观看国产_日韩在线中文天天更新_伊人中文无码在线