Oracle 19c中闪回/时点恢复后还原点是否留存?
Oracle 19c还原点my_restore_point在各类操作后的存在性验证
我创建了还原点my_restore_point:
create restore point my_restore_point;
随后执行以下操作,需确认my_restore_point是否仍存在:
操作1:闪回到该还原点
执行闪回命令:
flashback database to restore point my_restore_point;
可通过以下语句验证还原点是否存在:
select * from v$restore_point where name = 'MY_RESTORE_POINT';
操作2:闪回到该还原点对应的SCN
先获取还原点对应的SCN,再执行闪回:
variable my_scn number exec select scn into :my_scn from v$restore_point where name = 'MY_RESTORE_POINT' flashback database to scn :my_scn;
操作3:闪回到该还原点SCN之前的时点
执行闪回命令:
flashback database to before scn :my_scn;
操作4:使用RMAN执行时点恢复到该SCN
执行RMAN时点恢复命令(其中x为上述:my_scn的值):
run { restore database until scn x; recover database until scn x; }
由于无测试环境,现向社区求助确认以上操作后my_restore_point是否仍存在。使用版本为Oracle Database 19c Enterprise Edition Release 19。
内容的提问来源于stack exchange,提问作者Alex Bartsmon
相关产品推荐
相关产品推荐

