Oracle

將 Oracle 9i 中的 RMAN 備份恢復到另一台伺服器

  • September 21, 2021

我正在嘗試恢復在 Oracle 9i 中使用 rman 製作的冷備份,問題是我設法成功恢復了 pfile 和控製文件,但是當我嘗試給出時:

RMAN> restore database;

Starting restore at [DATE]

allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid = 11 devtype = DISK
RMAN-00571: ======================================================================= =============
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ======================================================================= =============
RMAN-03002: failure of restore command at [date]
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 16 found to restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore

物理上備份件在那裡,但當我這樣做時:

list backup of database;

它沒有顯示失去的。

我必須澄清我在不同的伺服器上進行的恢復,但我保持與原始伺服器相同的目錄結構和相同的 SID。

我還將備份 rman 複製到同一目錄中。

在 Oracle 11g 中發生這種情況時,我只需啟動:

catalog start with

但是對於 9i,沒有這樣的選項。

你能給我推荐一些解決方案嗎?

我使用的 rman 腳本如下:

shutdown immediate;
startup force dba;
shutdown immediate;
startup mount
run {
set command id to 'ORA9';
allocate channel t1 device type disk;
allocate channel t2 device type disk;
allocate channel t3 device type disk;
allocate channel t4 device type disk;
backup filesperset 1
format '/ Backups / FULL_% d_% u'
(
database
include current controlfile
);
release channel t1;
release channel t2;
release channel t3;
release channel t4;
}
alter database open;

如果備份是用磁帶完成的,恢復過程是否類似?

我記得,在 9i 中,當 rman 進行備份時*"include current controlfile"*,此控製文件不包含有關目前處理備份的資訊。您可以通過恢復此控製文件並發出命令來檢查它:

list backup summary;

備份數據文件**後,**您需要備份控製文件。

在或配置控製文件的自動備份之前添加backup current controlfile; 命令- 我更喜歡這個選項。release channel t1;

CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/Backups/%F';

引用自:https://dba.stackexchange.com/questions/193666