RESTORE POINT
RESTORE POINT
目的:
以往做閃回時都要指定閃回的scn或timestamp 現在建立了restore point後 可以把table或database閃回到restore point所指定的時間點或scn
語法:
CREATE RESTORE POINT point_name [guarantee flashback database]
RESTORE POINT 有兩種
Guaranteed restore points:不受DB_FLASHBACK_RETENTION_TARGET 引數的限制 它只能保證保留足夠的閃回日誌來閃回資料庫 而閃回表物件需要撤銷日誌
它不會過期 只能手動刪除 所有需謹慎使用
建立它需要sysdba許可權
Normal restore points 受DB_FLASHBACK_RETENTION_TARGET 引數的限制 當達到上限(The database can retain up to 2048 restore point)時會自動把最舊的point清除 當然也可以手動刪除
建立它需要SELECT ANY DICTIONARY or FLASHBACK ANY TABLE privilege
目的:
以往做閃回時都要指定閃回的scn或timestamp 現在建立了restore point後 可以把table或database閃回到restore point所指定的時間點或scn
語法:
CREATE RESTORE POINT point_name [guarantee flashback database]
RESTORE POINT 有兩種
Guaranteed restore points:不受DB_FLASHBACK_RETENTION_TARGET 引數的限制 它只能保證保留足夠的閃回日誌來閃回資料庫 而閃回表物件需要撤銷日誌
它不會過期 只能手動刪除 所有需謹慎使用
建立它需要sysdba許可權
Normal restore points 受DB_FLASHBACK_RETENTION_TARGET 引數的限制 當達到上限(The database can retain up to 2048 restore point)時會自動把最舊的point清除 當然也可以手動刪除
建立它需要SELECT ANY DICTIONARY or FLASHBACK ANY TABLE privilege
11g的變化是
相對10g 建立restore point是保留的是當前的scn 而11g則可以指定過去的scn或timestamp
相對10g 建立restore point是保留的是當前的scn 而11g則可以指定過去的scn或timestamp
CREATE RESTORE POINT res_jun08 AS OF SCN 2340009;
CREATE RESTORE POINT res_jun08 AS OF TIMESTAMP to_date('01-04-2008 07:30','DD-MM-YYYY HH24:MI');
這個scn必須是當前能flashback的時間點
另外:
normal 是可以自動清除的 新增PRESERVE子句則防止其不刪除
CREATE RESTORE POINT res_jun08 AS OF TIMESTAMP to_date('01-04-2008 07:30','DD-MM-YYYY HH24:MI');
這個scn必須是當前能flashback的時間點
另外:
normal 是可以自動清除的 新增PRESERVE子句則防止其不刪除
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28211342/viewspace-2129316/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 閃回還原點restore pointREST
- restore point -特色的SCN標誌(一)REST
- Orace Flash Restore Point(閃回還原點)REST
- Oracle10GR2 中的RESTORE POINTOracleREST
- [20171204]guaranteed restore point.txtREST
- restore point特色二&閃回資料庫特性(三)REST資料庫
- [20160820]11g Restore Point EnhancementsREST
- How to Create or Remove Restore Point on Standby database (文件 ID 1672977.1)REMRESTDatabase
- [20160822]11g Restore Point Enhancement2REST
- 6150680: Cannot Create Guaranteed Restore Point In Physical Standby DB_602270.1REST
- Oracle OCP 1Z0 053 Q390(Flashback database&Named restore point)OracleDatabaseREST
- oracle小知識點3--有保證的復原點guaranteed restore pointOracleREST
- archivelog模式和flashback db以及guarantee restore point之間的相互制約關係!Hive模式REST
- db_recovery_file_dest_size, v$flashback_database_logfile,v$restore_point引發的血案.DatabaseREST
- guarantee restore points-Flashback after RMAN restoreREST
- canvas restore()CanvasREST
- JavaScript some pointJavaScript
- study critical point and saddle point using Hessian Matrix
- Restore ArchivelogRESTHive
- DOCKER特性 - LIVE RESTOREDockerREST
- canvas save()和restore()CanvasREST
- SQL Server Backup & RestoreSQLServerREST
- How restore CBO statisticsREST
- TFS Express backup and restoreExpressREST
- backup and restore tipsREST
- TMS request queue restoreREST
- Windows Embedded for Point of Service概述Windows
- Windows Embedded for Point of Service 益處Windows
- 收藏What’s the Point of Oracle Checkpoints?Oracle
- tablespace point in time recover (tpitr)
- Restore Points 制定回退方案REST
- restore和recover 區別REST
- restore database check readonlyRESTDatabase
- rman restore archivelog logRESTHive
- restore,recover的區別REST
- Cold backup and restore the entire databaseRESTDatabase
- How to restore ASM based OCRRESTASM
- DBMS_BACKUP_RESTORE.DBMS_BACKUP_RESTORE用於特殊情況下的恢復REST