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.
See Also:Oracle9i Database Administrator's Guide.
WRITES
NUMBER
Number of bytes written to the rollback segment
XACTS
NUMBER
Number of active transactions
GETS
NUMBER
Number of header gets
WAITS
NUMBER
Number of header waits
OPTSIZE
NUMBER
Optimal size of the rollback segment
HWMSIZE
NUMBER
High water mark of rollback segment size
SHRINKS
NUMBER
Number of times the size of a rollback segment decreases
WRAPS
NUMBER
Number of times rollback segment is wrapped
EXTENDS
NUMBER
Number of times rollback segment size is extended
AVESHRINK
NUMBER
Average shrink size
AVEACTIVE
NUMBER
Current size of active extents, averaged over time.
STATUS
VARCHAR2(15)
Rollback segment status:
ONLINE
PENDING OFFLINE
OFFLINE
FULL
CUREXT
NUMBER
Current extent
CURBLK
NUMBER
Current block
例: SQL>SELECT n.name,s.extents,s.rssize,s.optsize,s.hwmsize,s.xacts,s.status FROM v$rollname n,v$rollstat s WHERE n.usn=s.usn; 数据字典:v$undostat
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.