Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

163

积分

0

好友

12

主题
发表于 2012-5-17 16:38:43 | 查看: 8675| 回复: 3
oracle 版本10.2.0.5

在rman中执行


DELETE ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-7';

DELETE ARCHIVELOG UNTIL TIME 'SYSDATE-7';
有什么区别?

ALL COMPLETED 表示的是?


谢谢!
这个ALL COMPLETED 是不是和data guard日志传输有关?
发表于 2012-5-17 16:58:30
文档:
Note: The UNTIL TIME clause is not the same as the COMPLETED BEFORE clause.
UNTIL TIME specifies logs that could be used to recover to the indicated time,
whereas COMPLETED BEFORE specifies logs that were created
before the indicated time (refer to "completedTimeSpec" on page 2-61).

是不是可以这样理解

假设 时间为2012-05-17 12:00:00
那么用 UNTIL TIME  表示届时可以用来恢复的归档日志时间是从 2012-05-17 12:00:00 开始

而用 COMPLETED BEFORE 是用来表示 归档日志 完成的时间

不知道这样讲对不对 ?

回复 显示全部楼层 道具 举报

发表于 2012-5-17 21:17:56
Archivelog Completed Before VS UNTIL TIME  http://www.oracledatabase12g.com ... -vs-until-time.html

回复 显示全部楼层 道具 举报

发表于 2012-5-19 21:19:29

回复 3# 的帖子

谢谢,讲得清清楚楚,实验的明明白白

回复 显示全部楼层 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-3-19 17:27 , Processed in 0.046903 second(s), 22 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569