RMAN backup recovery area 命令
?
一朋友問我一個(gè)問題:
RMAN> BACKUP RECOVERY AREA?
?
這個(gè)命令備份哪些內(nèi)容, 還真不太清楚。 Google了一下。 這個(gè)命令是備份Flash recovery Area的內(nèi)容的。 這是也是Oracle 10g以后才有的。10g引進(jìn)了flash recovery area,同時(shí)在rman備份中支持對該區(qū)域的備份。
?
在9i中oracle引入flashback查詢,依賴于undo表空間存儲(chǔ)的信息來閃回查詢以前的版本,當(dāng)然這個(gè)受限于undo表空間的大小,以及保留策略。
?
在10g中oracle又引入了新的flashback功能,使用了flash recovery area來存儲(chǔ)flashback 1og等等。這個(gè)區(qū)域默認(rèn)創(chuàng)建在oracle_base目錄下。在其中可以存放備份集、鏡像拷貝、歸檔日志、自動(dòng)備份的控制文件以及spfile和flashback logs。存放位置和大小由參數(shù)db_recovery_file_dest和db_recovery_file_dest_size決定。
默認(rèn)情況數(shù)據(jù)庫的flashback database是關(guān)閉,可以在mount exclusive狀態(tài)下打開。
???????????
?
看一下Oracle 官方文檔上的幾段文字。
?
To free space in the FRA we could do take a backup of the Flash Recovery Area using the command BACKUP RECOVERY AREA.This command will take the backup of all the files in the FRA to tape only. After this the space occupied by the files in the FRA will be marked as reclaimable。
?
the larger the fast recovery area, the more useful it is. Ideally, the fast recovery area should be large enough for copies of the data files, control files, online redo log files, and archived redo log files needed to recover the database, and also the copies of these backup files that are kept based on the retention policy.
?
The Flash Recovery Area is a unified storage location for all recovery-related files and activities in an Oracle Database. It includes Control File, Archived Log Files, Flashback Logs, Control File Autobackups, Data Files, and RMAN files.
?
?
從上面的幾段話,我們可以得到一下信息:
?
(1)??? BACKUP RECOVERY AREA 命令只能備份到磁帶上。 在磁盤上備份會(huì)報(bào)如下錯(cuò)誤:
RMAN> BACKUP RECOVERY AREA;
啟動(dòng) backup 于 12-8月 -10
使用目標(biāo)數(shù)據(jù)庫控制文件替代恢復(fù)目錄
分配的通道: ORA_DISK_1
通道 ORA_DISK_1: SID=15 設(shè)備類型=DISK
說明與資料檔案庫中的任何歸檔日志都不匹配
說明與資料檔案庫中的任何數(shù)據(jù)文件副本都不匹配
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: backup 命令 (在 08/12/2010 13:50:10 上) 失敗
RMAN-06603: 必須在磁盤設(shè)備上使用 RECOVERY AREA, RECOVERY FILES 或 DB_RECOVERY_FILE_DEST 指定 TO DESTINATION 選項(xiàng)
?
(2)??? Flash recovery area 包含內(nèi)容:控制文件,歸檔文件,flashback logs, 控制文件,自動(dòng)備份的控制文件,數(shù)據(jù)文件,數(shù)據(jù)文件拷貝,RMAN 文件(包括備份集,鏡像備份)。
?????????? 我們可以從以下SQL 的查詢結(jié)果可以看出:
????????????
????????????????? SQL> select file_type from v$flash_recovery_area_usage;
?
??????????????????? FILE_TYPE
?????????????????? --------------------
??????????? ??????? CONTROL FILE
???????????????????? REDO LOG
???????????????????? ARCHIVED LOG
???????????????????? BACKUP PIECE
???????????????????? IMAGE COPY
???????????????????? FLASHBACK LOG
???????????????????? FOREIGN ARCHIVED LOG
????????????????????? 已選擇7行。
?
(3) BACKUP RECOVERY AREA 將備份所有Flash recovery area中的內(nèi)容。
?
?
?
?
------------------------------------------------------------------------------
Blog: http://blog.csdn.net/tianlesoftware
網(wǎng)上資源: http://tianlesoftware.download.csdn.net
相關(guān)視頻:http://blog.csdn.net/tianlesoftware/archive/2009/11/27/4886500.aspx
DBA1 群:62697716(滿); DBA2 群:62697977(滿)
DBA3 群:63306533;???? 聊天 群:40132017
?
轉(zhuǎn)載于:https://www.cnblogs.com/zlja/archive/2010/08/12/2449830.html
總結(jié)
以上是生活随笔為你收集整理的RMAN backup recovery area 命令的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 格密码教程(六):高斯二维格规约,解决S
- 下一篇: SolarWinds2002使用说明(簡