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
viewThe
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). TheFLASHBACK_DATA
andREDO_DATA
columns describe bytes of flashback data and redo data written respectively during the time interval, while theDB_DATA
column describes bytes of data blocks read and written. The columnsFLASHBACK_DATA
andREDO_DATA
correspond to sequential writes, whereasDB_DATA
column corresponds to random reads and writes. -
V$SYSSTAT
viewBecause 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 Name | Column 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.
Column | Datatype | Description |
---|---|---|
|
| Lowest system change number (SCN) in the flashback data, for any incarnation |
|
| Time of the lowest SCN in the flashback data, for any incarnation |
|
| Target retention time (in minutes) |
|
| Current size (in bytes) of the flashback data |
|
| Estimated size of flashback data needed (in bytes) for the current target retention |
|
| The ID of the container to which the data pertains. Possible values include:
|
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.
Column | Datatype | Description |
---|---|---|
|
| Beginning of the time interval |
|
| End of the time interval |
|
| Number of bytes of flashback data written during the interval |
|
| Number of bytes of database data read and written during the interval |
|
| Number of bytes of redo data written during the interval |
|
| Value of |
|
| The ID of the container to which the data pertains. Possible values include:
|