Monitoring the Effect of Flashback Database on Performance

Monitoring the Effect of Flashback Database on Performance

Query V$FLASHBACK_DATABASE_STAT 、 V$FLASHBACK_DATABASE_LOG

Several data analysis methods are available to monitor the Flashback Database workload on your system.

  • V$FLASHBACK_DATABASE_STAT view

    The V$FLASHBACK_DATABASE_STAT view shows the bytes of flashback data logged by the database. Each row in the view shows the statistics accumulated (typically over the course of an hour). The FLASHBACK_DATA and REDO_DATA columns describe bytes of flashback data and redo data written respectively during the time interval, while the DB_DATA column describes bytes of data blocks read and written. The columns FLASHBACK_DATA and REDO_DATA correspond to sequential writes, whereas DB_DATA column corresponds to random reads and writes.

  • V$SYSSTAT view

    Because of the difference between sequential I/O and random I/O, a better indication of I/O overhead is the number of I/O operations issued for flashback logs. The V$SYSSTAT statistics shown in Table 7-1 can tell you the number of I/O operations that your instance has issued for various purposes.

Table 7-1 V$SYSSTAT Statistics

Column NameColumn Meaning

Physical write I/O request

The number of write operations issued for writing data blocks

Physical read I/O request

The number of read operations issued for reading data blocks

Redo writes

The number of write operations issued for writing to the redo log

Flashback log writes

The number of write operations issued for writing to flashback logs

Flashback log write bytes

Total size in bytes of flashback database data written from this instance

 

V$FLASHBACK_DATABASE_LOG

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.

ColumnDatatypeDescription

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

V$FLASHBACK_DATABASE_STAT

V$FLASHBACK_DATABASE_STAT displays statistics for monitoring the I/O overhead of logging flashback data. This view also displays the estimated flashback space needed based on previous workloads.

ColumnDatatypeDescription

BEGIN_TIME

DATE

Beginning of the time interval

END_TIME

DATE

End of the time interval

FLASHBACK_DATA

NUMBER

Number of bytes of flashback data written during the interval

DB_DATA

NUMBER

Number of bytes of database data read and written during the interval

REDO_DATA

NUMBER

Number of bytes of redo data written during the interval

ESTIMATED_FLASHBACK_SIZE

NUMBER

Value of ESTIMATED_FLASHBACK_SIZE in V$FLASHBACK_DATABASE_LOG at the end of the time interval

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

 

 

转载于:https://my.oschina.net/chanrevival/blog/3038144

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值