Oracle DBA_EXTENTS视图 与 DBA_SEGMENTS视图
DBA_EXTENTS describes the extents comprising the segments in all tablespaces in the database.
Note that if a datafile (or entire tablespace) is offline in a locally managed tablespace, you will not see any extent information. If an object has extents in an online file of the tablespace, you will see extent information about the offline datafile. However, if the object is entirely in the offline file, a query of this view will not return any records.
Related View
USER_EXTENTS describes the extents comprising the segments owned by the current user's objects. This view does not display the OWNER, FILE_ID, BLOCK_ID, or RELATIVE_FNO columns.
也就是说DBA_EXTENDS描述的是数据库所有表空间中段的扩展信息。使用DBA_EXTENDS必须保证相应的数据文件处于online状态,否则无法返回任何记录。对于一用于,常使用的是USER_EXTENTS视图,比DBA_EXTENDS视图少几个字段。
--------------------------------------------------------------------------------------------------------------------------------
DBA_SEGMENTS describes the storage allocated for all segments in the database.
Related View
USER_SEGMENTS describes the storage allocated for the segments owned by the current user's objects. This view does not display the OWNER, HEADER_FILE, HEADER_BLOCK, or RELATIVE_FNO columns.
DBA_SEGMENTS 视图描述的是数据库中所有段的存储和分配信息。
段包含多个扩展区,扩展区是与数据相关的用户可见的最底层的视图,通过这两个视图,我们可以知道一条记录所在的表空间,数据文件号和分区。还可以知道各储存段的大小和扩展区信息。
相关推荐
goodriver 2020-06-17
lklong 2020-11-22
oraclemch 2020-11-06
shilukun 2020-10-10
周嘉笙 2020-11-09
zhuzhufxz 2020-09-16
bfcady 2020-08-16
Hody 2020-08-16
FightFourEggs 2020-08-16
数据库设计 2020-08-16
yanghuatong 2020-08-16
dbasunny 2020-08-16
罗罗 2020-08-16
ihuaqiang 2020-08-16
choice0 2020-07-30
娜娜 2020-07-28
solarspot 2020-07-28
踩风火轮的乌龟 2020-07-26
娜娜 2020-07-20
xwb 2020-07-19
娜娜 2020-07-18
流云追风 2020-07-04
dataminer 2020-06-25
娜娜 2020-06-22