Oracle10GR2 中的RESTORE POINT
還原點是10GR2新增加的一個功能,它是建立在資料庫層面上的, 跟savepoint不同. 必須在資料庫處於ARCHIVELOG模式下才可以使用,主題思想是在資料庫的某個時間點建立一個restore point,在隨後的某個時間點可以將表或資料庫falshback 到這個restore point.那麼能否真正的完成flashback,依賴於建立的restore point型別和flashback要操作的物件.flashback database需要SYSDBA許可權,flashback table需要 FLASHBACK ANY TABLE的許可權.
guarantee
restore point for flashback database
guarantee restore
point必須在資料庫處於flashback on 的狀態下,才可以定義的一中restore
point,它的主題思想是保證資料庫能夠準確完整的flashback 到定義的 restore point. 操作依賴於flashback
log和archivelog, 如果定義了guarantee restore point,那麼flashback
logs將不受db_recovery_retention_target引數的限制,oracle不會刪除flashback
log,只要flashback arae有足夠的磁碟空間,oracle就會儲存足夠的flashback logs,滿足flashback
database to restore point.
如果資料庫沒有處於flashback
on,那麼定義一個guarantee restore point必須在database
mount狀態下進行.其實這個也可以理解,oracle根據定義的restore point,可以個保證database
open後的歸檔可以不被刪除.但有一點必須明確的是,guarantee restore point是針對flashback
database而言的,不對flashback table起作用,為什麼呢, 因為flashback
table依賴於undo,如果在guarantee時間範圍內,undo過期了, 那麼flatable table
還是不能還原到定義的guarantee restore point.
Normal restore point
普通的restore point 非常簡單, 如果要flashback database,那麼資料庫必須處於flashback on
狀態,但這個時候不一定可以flashback database到定義的restore
point,oracle會根據db_recovery_retention_target自動維護建立的restore
ponit和flashback logs,如果超過db_recovery_retention_target 定義的restore
point,oracle會自動刪除 , 無論是flashback table或者flashback database都不能完成.
簡單的流水帳記錄,為了試自己更加明確restore point的原理.
建立一個guarantee restore point
Code highlighting produced by Actipro CodeHighlighter (freeware)
-->SQL> create restore point a guarantee flashback database;
建立一個普通的restore point
Code highlighting produced by Actipro CodeHighlighter (freeware)
-->SQL> create restore point b;
flashback dtaase to restore point:(必須在guarantee restore point for flashback database的情況)
Code highlighting produced by Actipro CodeHighlighter (freeware)
-->SQL> startup mount
ORACLE instance started.
Total System Global Area 209715200 bytes
Fixed Size 1266632 bytes
Variable Size 134220856 bytes
Database Buffers 71303168 bytes
Redo Buffers 2924544 bytes
Database mounted.
SQL> flashback database to restore point a;
Flashback complete.
SQL> alter database open resetlogs;
Database altered.
falshback table
Code highlighting produced by Actipro CodeHighlighter (freeware)
-->SQL> alter table test_histogram enable row movement;
Table altered.
SQL> flashback table test_histogram to restore point a;
Flashback complete.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/90618/viewspace-663765/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RESTORE POINTREST
- restore point -特色的SCN標誌(一)REST
- 閃回還原點restore pointREST
- Orace Flash Restore Point(閃回還原點)REST
- [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
- oracle小知識點3--有保證的復原點guaranteed restore pointOracleREST
- 6150680: Cannot Create Guaranteed Restore Point In Physical Standby DB_602270.1REST
- archivelog模式和flashback db以及guarantee restore point之間的相互制約關係!Hive模式REST
- Oracle OCP 1Z0 053 Q390(Flashback database&Named restore point)OracleDatabaseREST
- 什麼是 bootstrap 中的 break pointboot
- db_recovery_file_dest_size, v$flashback_database_logfile,v$restore_point引發的血案.DatabaseREST
- Oracle rman中recover和restore的區別:OracleREST
- zt:Oracle10gR2中調整user commit的實用方法OracleMIT
- guarantee restore points-Flashback after RMAN restoreREST
- restore,recover的區別REST
- canvas restore()CanvasREST
- JavaScript some pointJavaScript
- 用ntdsutil命令中的restore object 更新版本號RESTObject
- study critical point and saddle point using Hessian Matrix
- 把AIX中的Oracle10gR2資料遷移到HP 叢集Oracle11gR2中AIOracle
- oracle 8i的restoreOracleREST
- Restore ArchivelogRESTHive
- DBMS_BACKUP_RESTORE.DBMS_BACKUP_RESTORE用於特殊情況下的恢復REST
- 在Oracle10gR2中調整過於頻繁user commit的一個方法OracleMIT
- oracle restore與recover的區別OracleREST
- restore archivelog 的各種用法RESTHive
- restore archivelog 的各種用法RESTHive
- Oracle10gR2 Logical Standby (zt)Oracle
- DOCKER特性 - LIVE RESTOREDockerREST
- canvas save()和restore()CanvasREST
- SQL Server Backup & RestoreSQLServerREST
- How restore CBO statisticsREST
- TFS Express backup and restoreExpressREST
- backup and restore tipsREST