Name of the tablespace
containing the rollback segment
SEGMENT_ID
NUMBER
NOT NULL
ID number of the rollback
segment
FILE_ID
NUMBER
NOT NULL
File identifier number of the
file containing the segment head
BLOCK_ID
NUMBER
NOT NULL
ID number of the block
containing the segment header
INITIAL_EXTENT
NUMBER
Initial extent size in bytes
NEXT_EXTENT
NUMBER
Secondary extent size in bytes
MIN_EXTENTS
NUMBER
NOT NULL
Minimum number of extents
MAX_EXTENTS
NUMBER
NOT NULL
Maximum number of extent
PCT_INCREASE
NUMBER
NOT NULL
Percent increase for extent
size
STATUS
VARCHAR2(16)
Rollback segment status
INSTANCE_NUM
VARCHAR2(40)
Rollback segment owning Oracle
Real Application Cluster instance number
RELATIVE_FNO
NUMBER
NOT NULL
Relative file number of the
segment header
可以查询的信息:回滚段的标识(SEGMENT_ID)、名称(SEGMENT_NAME)、所在表空间(TABLESPACE_NAME)、类型(OWNER)、状态(STATUS)。 例: SQL>SELECT
segment_name,tablespace_name,owner,status FROM dba_rollback_segs; 回滚段的统计信息 数据字典:V$ROLLNAME,V$ROLLSTAT
Column
Datatype
Description
USN
NUMBER
Rollback segment number
LATCH
NUMBER
Latch for the rollback segment
EXTENTS
NUMBER
Number of extents in the
rollback segment
RSSIZE
NUMBER
Size (in bytes) of the rollback
segment. This value differs by the number of bytes in one database block from
the value of the BYTES column of the ALL/DBA/USER_SEGMENTS views.
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.
UNDOBLKS
NUMBER
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.
TXNCOUNT
NUMBER
Identifies the total number of
transactions executed within the period
MAXQUERYLEN
NUMBER
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
UNDO_RETENTION initialization parameter.
MAXCONCURRENCY
NUMBER
Identifies the highest number
of transactions executed concurrently within the period
UNXPSTEALCNT
NUMBER
Number of attempts to obtain
undo space by stealing unexpired extents from other transactions
UNXPBLKRELCNT
NUMBER
Number of unexpired blocks
removed from certain undo segments so they can be used by other transactions
UNXPBLKREUCNT
NUMBER
Number of unexpired undo blocks
reused by transactions
EXPSTEALCNT
NUMBER
Number of attempts to steal
expired undo blocks from other undo segments
EXPBLKRELCNT
NUMBER
Number of expired undo blocks
stolen from other undo segments
EXPBLKREUCNT
NUMBER
Number of expired undo blocks
reused within the same undo segments
SSOLDERRCNT
NUMBER
Identifies the number of times
the error ORA-01555 occurred. You can use this statistic to decide whether or
not the UNDO_RETENTION initialization parameter is set properly given the
size of the undo tablespace. Increasing the value of UNDO_RETENTION can
reduce the occurrence of this error.
NOSPACEERRCNT
NUMBER
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.
回滚段的当前活动事务 数据字典:V$SESSION,V$TRANSACTION 例: SQL>SELECT
s.username,t.xidusn,t.ubafil,t.ubablk,t.used_ublk FROM v$session s,v$transaction t WHERE s.saddr=t.ses_addr; USERNAMEXIDUSN UBAFIL UBABLKUSED_UBLK
---------------
----------- ----------- ----------- SYSTEM22 71 SCOTT 121631 2 rows selected.