oracle10g_rman_語法測試_10
-
Use this clause in the following commands:
-
Using both RECOVERY WINDOW and REDUNDANCY clause in a single REPORT OBSOLETE or DELETE OBSOLETE command is not supported.
Keywords and Parameters
Syntax Element | Description |
---|---|
RECOVERY WINDOW OF integer DAYS | Specifies that RMAN should report
as obsolete those backups and copies that are not needed to recover the database
to any point within the last integer days.
See Also: for an explanation of the recovery window |
REDUNDANCY = integer | Specifies the minimum level of redundancy considered necessary for a backup or copy to be obsolete. A datafile copy is obsolete if there are at least integer more recent backups or image copies of this file; a datafile backup set is obsolete if there are at least integer more recent backups or image copies of each file contained in the backup set. For example, REDUNDANCY 2 means that there must be at least two more recent backups or copies of a datafile for any other backup or copy to be obsolete. |
Example
Deleting Obsolete Backups: Example The following command deletes all backups and copies not needed to recover the database to a random point within the last 30 days:
DELETE OBSOLETE RECOVERY WINDOW OF 30 DAYS;
Reporting Database Schema: Example This example, which requires a recovery catalog, reports the names of all datafiles and tablespaces one week ago:
REPORT SCHEMA AT TIME 'SYSDATE-7';
Report of database schema
File K-bytes Tablespace RB segs Datafile Name
---- ---------- -------------------- ------- -------------------
1 307200 SYSTEM *** /oracle/oradata/trgt/system01.dbf
2 20480 UNDOTBS *** /oracle/oradata/trgt/undotbs01.dbf
3 10240 CWMLITE *** /oracle/oradata/trgt/cwmlite01.dbf
4 10240 DRSYS *** /oracle/oradata/trgt/drsys01.dbf
5 10240 EXAMPLE *** /oracle/oradata/trgt/example01.dbf
6 10240 INDX *** /oracle/oradata/trgt/indx01.dbf
7 10240 TOOLS *** /oracle/oradata/trgt/tools01.dbf
8 10240 USERS *** /oracle/oradata/trgt/users01.dbf
Reporting Datafiles Needing Incremental Backups: Example This example reports all datafiles in the database that require the application of five or more incremental backups to be recovered to their current state:
REPORT NEED BACKUP INCREMENTAL 5 DATABASE;
Report of files that need more than 5 incrementals during recovery
File Incrementals Name
---- ------------ ----------------------------------------------
2 9 /oracle/oradata/trgt/undotbs01.dbf
3 9 /oracle/oradata/trgt/cwmlite01.dbf
4 9 /oracle/oradata/trgt/drsys01.dbf
Reporting Datafiles Needing Backups: Example The following example reports all datafiles from tablespace SYSTEM that will need more than two days of archived redo logs to be applied during recovery after being restored from the most recent backup:
REPORT NEED BACKUP DAYS 2 TABLESPACE SYSTEM;
Report of files whose recovery needs more than 2 days of archived logs
File Days Name
---- ----- -----------------------------------------------------
1 3 /oracle/oradata/trgt/drsys01.dbf.f
Reporting Unrecoverable Datafiles: Example The following example reports all datafiles that cannot be recovered from existing backups because redo may be missing:
REPORT UNRECOVERABLE;
Report of files that need backup due to unrecoverable operations
File Type of Backup Required Name
---- ----------------------- -----------------------------------
1 full /oracle/oradata/trgt/system01.dbf
Reporting Obsolete Backups and Copies: Example The following example reports obsolete backups and copies with a redundancy of 1:
REPORT OBSOLETE;
Report of obsolete backups and copies
Type Key Completion Time Filename/Handle
-------------------- ------ ------------------ --------------------
Backup Set 1 OCT 30 2001 15:54:56
Backup Piece 1 OCT 30 2001 15:54:56 /oracle/dbs/01d7t0t9_1_1
Archive Log 1 OCT 30 2001 04:52:17 /oracle/oradata/trgt/arch/archive1_21.dbf
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-615492/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 前端測試框架Jest——語法篇前端框架
- 測試工程師必知的10大測試法則工程師
- 軟體測試培訓之:白盒測試的語句覆蓋法和判定覆蓋法
- python介面自動化測試之python基礎語法Python
- PJzhang:搜尋引擎高階語法與滲透測試
- ESlint語法檢測工具EsLint
- 測試10
- Python初級面試語法Python面試
- APP 多語言測試APP
- 效能測試常用Oracle語句,這10個果斷收藏了!Oracle
- 程式測試第一法則?
- windows10系統無法開啟測試模式怎麼辦Windows模式
- 測試 10 年了
- Java面試需要知道的SQL語句語法Java面試SQL
- 八大藝術測試法
- 整合測試時 MockMvc 無法注入MockMVC
- 如何測試OWASP Top 10
- Go語言中的單元測試Go
- win10搜狗輸入法怎麼新增日語_win10新增日語輸入法的方法Win10
- 邏輯注入漏洞滲透測試檢測辦法
- 從入門到放棄:Python+selenium unittest測試框架及基本語法規則Python框架
- 測試測試測試測試測試測試
- win10搜狗輸入法可以打韓語嗎_win10搜狗輸入法怎麼新增韓語Win10
- 效能測試學習(1)-效能測試分類與常見術語
- 滲透測試常用術語總結
- Go 語言基準測試入門Go
- 英語語法
- win10無法使用韓語輸入法如何解決_win10使用不了韓語輸入法怎麼解決Win10
- Go 語言區塊鏈測試實踐指南(一):GO單元測試Go區塊鏈
- [20220104]in list 幾種寫法效能測試.txt
- HTML語法大全_html語言語法大全(必看)HTML
- 2020-12-15:【黑盒測試用例設計】測試方法之錯誤值猜測法
- JavaScript 新語法 「雙問號語法」與「可選鏈語法」JavaScript
- 『居善地』介面測試 — 10、介面測試的認證機制
- 怎麼關閉win10輸入法語言欄_win10輸入法語言欄關閉的方法Win10
- [一、基本語法]1基本語法概述
- 10大主流壓力測試工具
- win10如何輸入法顯示語言欄_讓win10輸入法顯示語言欄的步驟Win10
- 語法與語義