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
创建一个普通的restore point
flashback dtaase to restore point:(必须在guarantee restore point for flashback database的情况)
falshback table
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/90618/viewspace-663765/ ,如需转载,请注明出处,否则将追究法律责任。