操作系统: 数 据 库: Syb 11.5网
软件版本: 软件模块:
问题描述:
查看Sybase数据库设备空间占用情况的命令
产生原因:
解决方法:
以下命令以sa或lc00?9999用户登录执行均可:
select device = substring(name,1,15),
“default disk?” = “ ” + substring(“NY”,(status & 1)+1,1),
“total (MB)” = str(round((high-low)/512.,2),7,2),
used = str(round(isnull(sum(size),0)/512.,2),7,2),
free = str(round(abs((high-low-isnull(sum(size),0))/512.),2),7,2)
from master.dbo.sysusages,
master.dbo.sysdevices
where vstart between low and high
and cntrltype=0
group by name
原创文章,转载请注明: 转载自浪潮888博客
本文链接地址: 查看Sybase数据库设备空间占用情况的命令
文章的脚注信息由WordPress的wp-posturl插件自动生成