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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle10g_rman_語法測試_1Oracle
- oracle10g_rman_語法測試_2Oracle
- oracle10g_rman_語法測試_3Oracle
- oracle10g_rman_語法測試_4Oracle
- oracle10g_rman_語法測試_5Oracle
- oracle10g_rman_語法測試_6Oracle
- oracle10g_rman_語法測試_7Oracle
- oracle10g_rman_語法測試_8Oracle
- oracle10g_rman_語法測試_restore專題OracleREST
- oracle10g_rman_語法測試_show專題Oracle
- oracle10g_rman_語法測試_spool_sql_startupOracleSQL
- oracle10g_rman_語法測試_reset database_allocate channel_OracleDatabase
- if測試和語法規則
- 前端測試框架Jest——語法篇前端框架
- python語法-測試程式碼Python
- 測試工程師必知的10大測試法則工程師
- 軟體測試培訓之:白盒測試的語句覆蓋法和判定覆蓋法
- 測試10
- PJzhang:搜尋引擎高階語法與滲透測試
- 【日語】日語一級考試100個語法詳解
- python介面自動化測試之python基礎語法Python
- 軟體測試術語
- 程式測試第一法則?
- ESlint語法檢測工具EsLint
- C語言單元測試C語言
- 測試測試測試測試測試測試
- 效能測試常用Oracle語句,這10個果斷收藏了!Oracle
- 《shell條件測試語句,字串測試apache是否開啟》字串Apache
- 整合測試時 MockMvc 無法注入MockMVC
- 八大藝術測試法
- oracle儲存過程plsql_sp_多個out引數測試語法Oracle儲存過程SQL
- windows10系統無法開啟測試模式怎麼辦Windows模式
- Go語言中的單元測試Go
- 軟體測試常用術語表
- 測試TOM=SQLLDR使用CASE語句SQL
- 如何測試OWASP Top 10
- 10.2 flashback database 測試!Database
- 邏輯注入漏洞滲透測試檢測辦法