Oracle extents视图,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视图少几个字段。

5497a4f642d8b8b14970b91229164a68.png

--------------------------------------------------------------------------------------------------------------------------------

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 视图描述的是数据库中所有段的存储和分配信息。

6a759192a2aba77b35837b34f79eb49e.png

段包含多个扩展区,扩展区是与数据相关的用户可见的最底层的视图,通过这两个视图,我们可以知道一条记录所在的表空间,数据文件号和分区。还可以知道各储存段的大小和扩展区信息。

0b1331709591d260c1c78e86d0c51c18.png

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值