nid 對RMAN備份的影響--- 控制檔案中備份記錄全部丟失
NID 操作要求:
1, DB是MOUNT狀態:
d:oradata>nid target=/
DBNEWID: Release 10.2.0.1.0 - Production on Tue Jun 29 09:56:31 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to database ZR (DBID=3106537735)
NID-00121: Database should not be open
2, 操作完後使用RESETLOGS開啟DB
SQL> startup
ORACLE instance started.
Total System Global Area 603979776 bytes
Fixed Size 1250380 bytes
Variable Size 180358068 bytes
Database Buffers 415236096 bytes
Redo Buffers 7135232 bytes
Database mounted.
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
----有時候,在恢復DB後需要更改DBID。這時需注意控制檔案中的備份記錄會被清除掉。
d:oradata>nid target=/
DBNEWID: Release 10.2.0.1.0 - Production on Tue Jun 29 10:00:57 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to database ZR (DBID=3106537735)
Connected to server version 10.2.0
Control Files in database:
D:ORADATAZRCONTROL01.CTL
D:ORADATAZRCONTROL02.CTL
Change database ID of database ZR? (Y/[N]) => y
Proceeding with operation
Changing database ID from 3106537735 to 3106649561
Control File D:ORADATAZRCONTROL01.CTL - modified
Control File D:ORADATAZRCONTROL02.CTL - modified
Datafile D:ORADATAZRSYSTEM01.DBF - dbid changed
Datafile D:ORADATAZRUNDOTBS01.DBF - dbid changed
Datafile D:ORADATAZRSYSAUX01.DBF - dbid changed
Datafile D:ORADATAZRUSERS01.DBF - dbid changed
Datafile D:ORADATAZREXAMPLE01.DBF - dbid changed
Datafile E:ZR01.DBF - dbid changed
Datafile D:ORADATAZRTEMP01.DBF - dbid changed
Control File D:ORADATAZRCONTROL01.CTL - dbid changed
Control File D:ORADATAZRCONTROL02.CTL - dbid changed
Instance shut down
Database ID for database ZR changed to 3106649561.
All previous backups and archived redo logs for this database are unusable.
Database is not aware of previous backups and archived logs in Recovery Area.
Database has been shutdown, open database with RESETLOGS option.
Succesfully changed database ID.
DBNEWID - Completed succesfully.
----
d:oradata>rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jun 29 10:05:02 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: ZR (DBID=3106649561)
RMAN> list backup ;
using target database control file instead of recovery catalog
RMAN>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/350519/viewspace-1034735/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【備份】RMAN中對控制檔案的幾種備份方法
- rman開啟備份優化對備份歸檔的影響優化
- 【RMAN】Oracle中如何備份控制檔案?備份控制檔案的方式有哪幾種?Oracle
- dg丟失歸檔,使用rman增量備份恢復
- 使用RMAN增量備份處理Dataguard因歸檔丟失造成的gap
- 世界備份日——如果您丟失了所有檔案
- 12 使用RMAN備份和恢復檔案
- RMAN的備份原理
- 【RMAN】RMAN的備份保留策略
- RMAN備份概述
- 【RMAN】RMAN備份至ASMASM
- rman備份的時候讀取v$session_longops失敗導致備份失敗SessionGo
- RMAN-ERROR:因為找不到過期和丟失的歸檔日誌而備份失敗Error
- RMAN備份恢復典型案例——RMAN備份&系統變慢
- RMAN備份進度
- rman 備份指令碼指令碼
- gitlab自動定時備份檔案,備份失敗傳送郵件Gitlab
- 2012-06-03 20:40 catalog start with rman備份集直接匯入控制檔案中
- RMAN備份中發現壞塊
- ManagerDB 備份檔案管理與異地備份
- 手工rm刪除歸檔日誌對備份歸檔日誌的影響
- sql檔案備份SQL
- 【RMAN】同時建立多個備份(建立多重備份)
- RMAN 備份相關的概念
- win10備份登錄檔的方法_win10登錄檔如何備份Win10
- rman 增量備份恢復
- Oracle RMAN備份實戰Oracle
- Oracle OCP(60):RMAN 備份Oracle
- RMAN備份恢復技巧
- 【rman備份策略】實驗
- Networker備份windows檔案Windows
- 分享Oracle Rman的備份指令碼Oracle指令碼
- RMAN加密備份的三種方式加密
- RMAN備份恢復典型案例——資料檔案存在壞快
- RMAN備份整庫和歸檔日誌的方法
- 微信聊天記錄的備份
- RMAN備份詳解(轉載)
- [20190522]rman備份問題.txt
- 使用RMAN備份資料庫資料庫