2017-04-18 59 views
-1

這是我的命令備份數據庫:備份Oracle數據庫提供了錯誤

RMAN> backup as backupset database plus archivelog; 

這裏是我得到的錯誤:

Starting backup at 18-APR-17 
ORACLE error from target database: 
ORA-00258: manual archiving in NOARCHIVELOG mode must identify log 

using channel ORA_DISK_1 
specification does not match any archived log in the repository 
backup cancelled because there are no files to backup 
Finished backup at 18-APR-17 

Starting backup at 18-APR-17 
using channel ORA_DISK_1 
RMAN-00571: =========================================================== 
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== 
RMAN-00571: =========================================================== 
RMAN-03002: failure of backup plus archivelog command at 04/18/2017 11:59:03 
RMAN-06149: cannot BACKUP DATABASE in NOARCHIVELOG mode 

我很新的甲骨文,所以我不能」自己解決這個問題。你能告訴我如何解決這個問題嗎?謝謝。

+0

首先遵循布賴恩·利奇的回答,他們已經備份後,然後還請刪除歸檔日誌。例如:'備份數據庫;'備份archivelog全部刪除輸入;' –

回答

1

由於處於'NOARCHIVELOG'模式,您無法備份歸檔日誌。當數據庫處於NOARCHIVELOG模式時,使用RMAN備份數據庫的唯一方法是關閉數據庫並進行冷備份。

如果你想使數據庫歸檔日誌模式,作爲DBA從SQLPLUS命令提示符:

shutdown immediate; 
startup mount; 
alter database archivelog; 
alter database open;