ORA-19602: 無法按 NOARCHIVELOG 模式備份或複製活動文件

使用非存檔模式在RMAN下備份數據文件,遇到ORA-19602錯誤。錯誤如下:

[tom@ocp ~]$ rman target /

恢復管理器: Release 11.2.0.1.0 - Production on 星期二 8月 20 14:01:47 2019

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

已連接到目標數據庫: ORCL (DBID=1523101237, 未打開)

RMAN> backup datafile 5 format '/u01/backup/xxxx';

啓動 backup 於 20-8月 -19
使用目標數據庫控制文件替代恢復目錄
分配的通道: ORA_DISK_1
通道 ORA_DISK_1: SID=10 設備類型=DISK
通道 ORA_DISK_1: 正在啓動全部數據文件備份集
通道 ORA_DISK_1: 正在指定備份集內的數據文件
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: backup 命令 (ORA_DISK_1 通道上, 在 08/20/2019 14:01:50 上) 失敗
ORA-19602: 無法按 NOARCHIVELOG 模式備份或複製活動文件

RMAN> quit;

錯誤根源:

When shutdown the Oracle, it was not shutdown properly,

SQL> shutdown immediate;

Here it hanged, I guess it write someting to the datafile, as it was not shutdown properly, some of the writing to datafile operation was not properly recorded.

以上關閉數據庫應該是有一些操作沒有寫入到datafile,在用RMAN對數據文件進行備份時會出錯。以下可以解決:

Solution: Completedly shutdown the Oracle properly and startup Oracle properly.

Here I was using startup mount, as I was doing backup under non archive mode.

under non archive mode.

SQL> archive log list;
數據庫日誌模式             非存檔模式
自動存檔             禁用
存檔終點            /u01/log/2
最早的聯機日誌序列     6
當前日誌序列           9
SQL>

Stop the Oracle normally and startup as mount,

SQL> startup force;
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE 例程已經啓動。

Total System Global Area  217157632 bytes
Fixed Size		    2211928 bytes
Variable Size		  159387560 bytes
Database Buffers	   50331648 bytes
Redo Buffers		    5226496 bytes
數據庫裝載完畢。
數據庫已經打開。
SQL> shutdown normal;
數據庫已經關閉。
已經卸載數據庫。
ORACLE 例程已經關閉。
SQL> startup mount;
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE 例程已經啓動。

Total System Global Area  217157632 bytes
Fixed Size		    2211928 bytes
Variable Size		  159387560 bytes
Database Buffers	   50331648 bytes
Redo Buffers		    5226496 bytes
數據庫裝載完畢。
SQL>

Successful result was as below:

[tom@ocp ~]$ rman target /

恢復管理器: Release 11.2.0.1.0 - Production on 星期二 8月 20 14:04:54 2019

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

已連接到目標數據庫: ORCL (DBID=1523101237, 未打開)

RMAN> backup datafile 5 format '/u01/backup/xxxx';

啓動 backup 於 20-8月 -19
使用目標數據庫控制文件替代恢復目錄
分配的通道: ORA_DISK_1
通道 ORA_DISK_1: SID=10 設備類型=DISK
通道 ORA_DISK_1: 正在啓動全部數據文件備份集
通道 ORA_DISK_1: 正在指定備份集內的數據文件
輸入數據文件: 文件號=00005 名稱=/u01/yy/yy.dbf
通道 ORA_DISK_1: 正在啓動段 1 於 20-8月 -19
通道 ORA_DISK_1: 已完成段 1 於 20-8月 -19
段句柄=/u01/backup/xxxx 標記=TAG20190820T140458 註釋=NONE
通道 ORA_DISK_1: 備份集已完成, 經過時間:00:00:01
完成 backup 於 20-8月 -19

RMAN>

Oracle數據庫管理›mount狀態,無歸檔模式,rman 不能copy datafile嗎
Oracle will not shutdown, use ‘shutdown immediate’.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章