DBA_SEGMENTS 川长思鸟来 2023-10-05 17:12 5阅读 0赞 ## DBA\_SEGMENTS ## `DBA_SEGMENTS` 描述为数据库中所有段分配的存储。 **相关资料** `USER_SEGMENTS`描述为当前用户对象拥有的段分配的存储。此视图不显示`OWNER`,`HEADER_FILE`,`HEADER_BLOCK`,或`RELATIVE_FNO`列。 <table> <thead> <tr> <th style="text-align:left;vertical-align:bottom;"><span style="color:#222222;">柱</span></th> <th style="text-align:left;vertical-align:bottom;"><span style="color:#222222;">数据类型</span></th> <th style="text-align:left;vertical-align:bottom;"><span style="color:#222222;">空值</span></th> <th style="text-align:left;vertical-align:bottom;"><span style="color:#222222;">描述</span></th> </tr> </thead> <tbody> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>OWNER</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>VARCHAR2(30)</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">段所有者的用户名</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>SEGMENT_NAME</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>VARCHAR2(81)</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">段的名称(如果有)</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>PARTITION_NAME</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>VARCHAR2(30)</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">对象分区名称(<code>NULL</code>对于未分区的对象,设置为)</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>SEGMENT_TYPE</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>VARCHAR2(18)</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">段类型:<code>INDEX PARTITION, TABLE PARTITION, TABLE, CLUSTER, INDEX, ROLLBACK, DEFERRED ROLLBACK, TEMPORARY, CACHE, LOBSEGMENT</code>和<code>LOBINDEX</code></span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>TABLESPACE_NAME</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>VARCHAR2(30)</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">包含段的表空间的名称</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>HEADER_FILE</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>NUMBER</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">包含片段标题的文件的ID</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>HEADER_BLOCK</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>NUMBER</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">包含段标题的块的ID</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>BYTES</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>NUMBER</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">段的大小(以字节为单位)</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>BLOCKS</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>NUMBER</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">段的大小(以Oracle块为单位)</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>EXTENTS</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>NUMBER</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">分配给段的扩展区数</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>INITIAL_EXTENT</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>NUMBER</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">在创建时针对段的初始范围请求的字节大小。(如果请求的大小大于5个块,则Oracle将扩展区大小四舍五入为5个块的倍数。)</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>NEXT_EXTENT</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>NUMBER</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">要分配给该段的下一个扩展区的大小(以字节为单位)</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>MIN_EXTENTS</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>NUMBER</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">段中允许的最小范围数</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>MAX_EXTENTS</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>NUMBER</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">段中允许的最大扩展数</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>PCT_INCREASE</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>NUMBER</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">增加下一个扩展范围大小的百分比</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>FREELISTS</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>NUMBER</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">分配给该段的进程空闲列表数</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>FREELIST_GROUPS</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>NUMBER</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">分配给该段的自由列表组数</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>RELATIVE_FNO</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>NUMBER</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">段头的相对文件号</span></span></td> </tr> <tr> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>BUFFER_POOL</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"><code>VARCHAR2(7)</code></span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;"> </span></span></td> <td style="text-align:left;"><span style="color:#222222;"><span style="color:#222222;">对象的默认缓冲池</span></span></td> </tr> </tbody> </table>
还没有评论,来说两句吧...