2020-09-21 22:12发布
点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)你好 Sybase/SAP中... 显示全部
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
你好
Sybase/SAP中的MDA可以用于数据库空间增长吗?
好,谢谢... 我正在寻找的是一种会随着时间推移收集数据库空间增长的工具或东西,我确实有一个"自己的代码",但是需要更多的手动工作
isql-美国-Ppwd -w 300 -o $ {LOG} << EOF
使用母版
去
从系统服务器中选择*
选择"数据库名称" = substring(d.name,1,20)," Owner" = substring(l.name,1,20)," Status" = d.status," Creation Date" = substring( d.crdate,1,20)," Last dump Tran" = substring(d.dumptrdate,1,20)," Size(MB)" = isull(sum(u.size)* 2/1024,0)," 未分配的(MB)" =来自sysdatabase d,syslogins l,sysusages u的isull(sum(u.unreservedpgs)* 2/1024,0),其中d.suid = l.suid和d.dbid = u.dbid按d分组。 dbid,l.suid按1,2
开始
选择"数据库名称" = substring(d.name,1,20)," Dbid" = d.dbid," Segmap" = u.segmap," LStart" = u.lstart," Seg。Size(MB )" = isnull(u.size/512,0)," vdevno" = convert(数字(2,0),u.vstart/power(2,24)),"免费(MB)" = isnull(u。 sysdatabase d,sysusages u中的unreservedpgs/512,0),其中d.dbid = u.dbid顺序为2,4
从系统中选择*
选择"设备名称" = substring(d.name,1,15)," Physical Name" = substring(d.phyname,1,64),vdevno = convert(numeric(2,0),d.low/power(2,24))," Size(MB)" =(d.high-d.low +1)* 2/1024," Reserved(MB)" = isull(sum(u.size)* 2/1024,0)," Left(MB)" =(d.high-d.low +1)* 2/1024-isull(sum(u.size)* 2/1024,0)from sysdevices d,sysusages u其中 d.status&2 = 2和u.vstart/power(2,24)= * d.low/power(2,24)按子字符串(d.name,1,15),substring(d.phyname,1 ,64),d.low/power(2,24),(d.high-d.low +1)* 2/1024的顺序通过vdevno计算sum((d.high-d.low +1)* 2/1024),sum(isnull(sum(u.size)* 2/1024,0)),sum((d.high-d.low + 1)* 2/1024-isull(sum(u.size)* 2/1024,0))
选择" Sybase版本" = substring(@@ version,1,120)
最多设置5个标签!
好,谢谢... 我正在寻找的是一种会随着时间推移收集数据库空间增长的工具或东西,我确实有一个"自己的代码",但是需要更多的手动工作
isql-美国-Ppwd -w 300 -o $ {LOG} << EOF
使用母版
去
从系统服务器中选择*
去
选择"数据库名称" = substring(d.name,1,20)," Owner" = substring(l.name,1,20)," Status" = d.status," Creation Date" = substring( d.crdate,1,20)," Last dump Tran" = substring(d.dumptrdate,1,20)," Size(MB)" = isull(sum(u.size)* 2/1024,0)," 未分配的(MB)" =来自sysdatabase d,syslogins l,sysusages u的isull(sum(u.unreservedpgs)* 2/1024,0),其中d.suid = l.suid和d.dbid = u.dbid按d分组。 dbid,l.suid按1,2
开始
选择"数据库名称" = substring(d.name,1,20)," Dbid" = d.dbid," Segmap" = u.segmap," LStart" = u.lstart," Seg。Size(MB )" = isnull(u.size/512,0)," vdevno" = convert(数字(2,0),u.vstart/power(2,24)),"免费(MB)" = isnull(u。 sysdatabase d,sysusages u中的unreservedpgs/512,0),其中d.dbid = u.dbid顺序为2,4
开始
从系统中选择*
去
选择"设备名称" = substring(d.name,1,15)," Physical Name" = substring(d.phyname,1,64),vdevno = convert(numeric(2,0),d.low/power(2,24))," Size(MB)" =(d.high-d.low +1)* 2/1024," Reserved(MB)" = isull(sum(u.size)* 2/1024,0)," Left(MB)" =(d.high-d.low +1)* 2/1024-isull(sum(u.size)* 2/1024,0)from sysdevices d,sysusages u其中 d.status&2 = 2和u.vstart/power(2,24)= * d.low/power(2,24)按子字符串(d.name,1,15),substring(d.phyname,1 ,64),d.low/power(2,24),(d.high-d.low +1)* 2/1024的顺序通过vdevno计算sum((d.high-d.low +1)* 2/1024),sum(isnull(sum(u.size)* 2/1024,0)),sum((d.high-d.low + 1)* 2/1024-isull(sum(u.size)* 2/1024,0))
去
选择" Sybase版本" = substring(@@ version,1,120)
去
一周热门 更多>