免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1079 | 回复: 2
打印 上一主题 下一主题

sql语句求解 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-03-08 09:46 |只看该作者 |倒序浏览
想要取得以下结果,但总是想不明白是否可写出这样的sql语句,请大家帮个忙。

表空间名
该表空间下数据表的最大下一扩展空间大小
下一扩展空间为上一列数据的表的总数
表空间中大于最大下一扩展空间的块的数量有多少
表空间中最大的可用块空间大小
表空间当前可用空间大小

论坛徽章:
0
2 [报告]
发表于 2004-03-08 17:25 |只看该作者

sql语句求解

论坛徽章:
0
3 [报告]
发表于 2004-03-08 23:40 |只看该作者

sql语句求解

dba_segments
OWNER
VARCHAR2(30)
  Username of the segment owner

SEGMENT_NAME
VARCHAR2(81)
  Name, if any, of the segment

PARTITION_NAME
VARCHAR2(30)
  Object Partition Name (Set to NULL for non-partitioned objects)

SEGMENT_TYPE
VARCHAR2(17)
  Type of segment: INDEX PARTITION, TABLE PARTITION, TABLE, CLUSTER, INDEX, ROLLBACK, DEFERRED ROLLBACK, TEMPORARY, CACHE, LOBSEGMENT and LOBINDEX

TABLESPACE_NAME
VARCHAR2(30)
  Name of the tablespace containing the segment

HEADER_FILE
NUMBER
  ID of the file containing the segment header

HEADER_BLOCK
NUMBER
  ID of the block containing the segment header

BYTES
NUMBER
  Size in bytes, of the segment

BLOCKS
NUMBER
  Size, in Oracle blocks, of the segment

EXTENTS
NUMBER
  Number of extents allocated to the segment

INITIAL_EXTENT
NUMBER
  Size in bytes requested for the initial extent of the segment at create time. (Oracle rounds the extent size to multiples of 5 blocks if the requested size is greater than 5 blocks.)

NEXT_EXTENT
NUMBER
  Size in bytes of the next extent to be allocated to the segment

MIN_EXTENTS
NUMBER
  Minimum number of extents allowed in the segment

MAX_EXTENTS
NUMBER
  Maximum number of extents allowed in the segment

PCT_INCREASE
NUMBER
  Percent by which to increase the size of the next extent to be allocated

FREELISTS
NUMBER
  Number of process freelists allocated to this segment

FREELIST_GROUPS
NUMBER
  Number of freelist groups allocated to this segment

RELATIVE_FNO
NUMBER
  Relative file number of the segment header

BUFFER_POOL
VARCHAR2(7)
  Default buffer pool for the object
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP