Oracle 视图 DBA_HIST_UNDOSTAT 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图DBA_HIST_UNDOSTAT显示了用于恢复数据库操作的undo空间的每一次操作的详细信息。它包含数据库参数当时的值,及有关undo使用的实时信息,如数据库的“指手势”的总大小,操作期间SQL语句的总大小,以及操作执行的时间跨度等。
一般来说,可以使用该视图来查看影响到恢复的事务信息,以及查看有关数据操作的详细信息,以便为如何最有效地使用undo空间提供参考。比如,如果该视图显示你正在超出undo使用空间静态参数指定的最大大小,可以使用更高的空间大小或者完全停止操作,以便恢复数据库。
官方英文解释
DBA_HIST_UNDOSTAT
displays the history of histograms of statistical data to show how well the system is working.
The available statistics include undo space consumption, transaction concurrency, and length of queries executed in the instance. This view contains snapshots of V$UNDOSTAT
.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Identifies the beginning of the time interval |
|
|
|
Identifies the end of the time interval |
|
|
|
Database ID for the snapshot |
|
|
|
Instance number for the snapshot |
|
|
|
Unique snapshot ID |
|
|
|
Represents the last active undo tablespace in the duration of time. The tablespace ID of the active undo tablespace is returned in this column. If more than one undo tablespace was active in that period, the active undo tablespace that was active at the end of the period is reported. |
|
|
Represents the total number of undo blocks consumed. You can use this column to obtain the consumption rate of undo blocks, and thereby estimate the size of the undo tablespace needed to handle the workload on your system. |
|
|
|
Identifies the total number of transactions executed within the period |
|
|
|
Identifies the length of the longest query (in number of seconds) executed in the instance during the period. You can use this statistic to estimate the proper setting of the |
|
|
|
SQL identifier of the longest running SQL statement in the period |
|
|
|
Identifies the highest number of transactions executed concurrently within the period |
|
|
|
Number of attempts to obtain undo space by stealing unexpired extents from other transactions |
|
|
|
Number of unexpired blocks removed from certain undo segments so they can be used by other transactions |
|
|
|
Number of unexpired undo blocks reused by transactions |
|
|
|
Number of attempts to steal expired undo blocks from other undo segments |
|
|
|
Number of expired undo blocks stolen from other undo segments |
|
|
|
Number of expired undo blocks reused within the same undo segments |
|
|
|
Identifies the number of times the error |
|
|
|
Identifies the number of times space was requested in the undo tablespace and there was no free space available. That is, all of the space in the undo tablespace was in use by active transactions. The corrective action is to add more space to the undo tablespace. |
|
|
|
Total number of blocks in the active extents of the undo tablespace for the instance at the sampled time in the period |
|
|
|
Total number of blocks in the unexpired extents of the undo tablespace for the instance at the sampled time in the period |
|
|
|
Total number of blocks in the expired extents of the undo tablespace for the instance at the sampled time in the period |
|
|
|
System tuned value indicating the period for which undo is being retained The value of this column is not meaningful on an Oracle Active Data Guard standby database instance, because the system does not tune this value on such instances. |
|
|
|
The database ID of the PDB for the sampled session |
|
|
|
The ID of the container that
|
See Also:
“V$UNDOSTAT”