DBPITR:Determine the target time

本文介绍了如何使用 Flashback 特性确定数据库逻辑损坏发生的时间,并通过查询 V$LOG_HISTORY 来确定归档日志中包含的目标 SCN 对应的日志序列号,以便进行精确的数据恢复。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

■ Determine the target time, SCN, restore point, or log sequence number that should end recovery.

 

The Flashback Query, Flashback Version Query and Flashback Transaction Query features can help you identify when the logical corruption occured.


You can also examine the alert.log for information that may help you  determine the time of the event from which you need to recover.


lternatively, you can determine the log sequence number that contains the target SCN, and then recover through that log.

For example, query V$LOG_HISTORY to  view the logs that have been archived.
RECID STAMP THREAD# SEQUENCE# FIRST_CHAN FIRST_TIM NEXT_CHANG
---------- ---------- ---------- ---------- ---------- --------- ----------
1 344890611 1 1 20037 24-SEP-04 20043
2 344890615 1 2 20043 24-SEP-04 20045
3 344890618 1 3 20045 24-SEP-04 20046


If, for example, you discover that a user accidentally dropped a tablespace at 9:02
a.m., then you can recover to 9 a.m., just before the drop occurred. You will lose all
changes to the database made after that time.


■ If you are using a target time expression instead of a target SCN, then make sure that the time format environment variables are set appropriately before invoking RMAN.

 

The following are sample Globalization Support settings:
NLS_LANG = american_america.us7ascii
NLS_DATE_FORMAT="Mon DD YYYY HH24:MI:SS"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值