2017-05-08 106 views
0

我們當配置RMAN採取我們看到在日誌下面的錯誤備份Windows服務器&我們的Oracle實例運行,RMAN備份錯誤而創建完整和增量備份

錯誤詳細信息:

channel ch1: starting piece 1 at 07-MAY-17 
channel ch1: finished piece 1 at 07-MAY-17 
piece handle=\\backup_share\FULL_db01_20170507.BAK tag=COMPLETE_BACKUP comment=NONE 
channel ch1: backup set complete, elapsed time: 02:10:37 
channel ch1: starting incremental level 0 datafile backup set 
channel ch1: specifying datafile(s) in backup set 
including current control file in backup set 
including current SPFILE in backup set 
channel ch1: starting piece 1 at 07-MAY-17 
released channel: ch1 
RMAN-00571: =========================================================== 
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== 
RMAN-00571: =========================================================== 
RMAN-03009: failure of backup command on ch1 channel at 05/07/2017 23:10:45 
ORA-19504: failed to create file "\\backup_share\FULL_db01_20170507.BAK" 
ORA-27038: created file already exists 
OSD-04010: <create> option specified, file already exists 

RMAN命令腳本:

run{ 
Allocate channel ch1 type disk format '\\backup_share\full_%d_%T.bak'; 
Backup incremental level=0 database tag='complete_backup'; 
Release channel ch1; 
Allocate channel t1 type disk format '\\backup_share\ctrl_%d_%T'; 
Backup current controlfile; 
Release channel t1; 
} 

嘗試進行增量備份時,我看到了同樣的日誌記錄。有人可以幫我解決這個問題嗎?

回答

4
[[email protected] ~]$ oerr ora 27038 
27038, 00000, "created file already exists" 
// *Cause: trying to create a database file, but file by that name already 
//   exists 
// *Action: verify that name is correct, specify reuse if necessary 

%d格式指定數據庫的名稱和%T指定這種格式公曆的年,月,日:YYYYMMDD。它也反映在您的備份文件名FULL_db01_20170507.BAK中。可能有同名的文件。

最好使用%U以指定系統生成的唯一文件名的文件名格式。

文檔:

formatSpec

+0

謝謝。那工作:) – sqlcheckpoint