Oracle 视图 V$FLASHBACK_DATABASE_LOG 官方解释,作用,如何使用详细说明

本站中文解释

Oracle的Flashback Database功能可以将数据库恢复到之前的某个时间点,通过V$FLASHBACK_DATABASE_LOG视图可以查看Flashback过程中数据库改变的内容,这个视图可以显示出在特定时间点之前在数据库中产生的所有变更数据日志文件、SCN(System Change Number)和闪回时间。

使用V$FLASHBACK_DATABASE_LOG视图来识别并查询每个数据日志文件的改变:

SELECT FIRST_CHANGE#, FIRST_TIME, NEXT_CHANGE#, NEXT_TIME FROM V$FLASHBACK_DATABASE_LOG;

这些信息可以用来检查某个特定SCN之前数据库中所做的更改日志文件。

官方英文解释

V$FLASHBACK_DATABASE_LOG displays information about the flashback data. Use this view to help estimate the amount of flashback space required for the current workload.

Column Datatype Description

OLDEST_FLASHBACK_SCN

NUMBER

Lowest system change number (SCN) in the flashback data, for any incarnation

OLDEST_FLASHBACK_TIME

DATE

Time of the lowest SCN in the flashback data, for any incarnation

RETENTION_TARGET

NUMBER

Target retention time (in minutes)

FLASHBACK_SIZE

NUMBER

Current size (in bytes) of the flashback data

ESTIMATED_FLASHBACK_SIZE

NUMBER

Estimated size of flashback data needed (in bytes) for the current target retention

CON_ID

NUMBER

The ID of the container to which the data pertains. Possible values include:

  • 0: This value is used for rows containing data that pertain to the entire CDB. This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data


数据运维技术 » Oracle 视图 V$FLASHBACK_DATABASE_LOG 官方解释,作用,如何使用详细说明