你可以使用isql命令中执行sp_helpdevice进行查看。
ASE12.5.x版本中不会显示设备剩余空间,ASE15.x中会显示 ...
andkylee 发表于 2011-08-25 08:23
回复 yiguihuo
楼主的问题很清楚、明白。 在平常运维中,我也遇到和楼主一样的问题。执行:sp_h ...andkylee 发表于 2011-08-25 12:05复制代码
- /*
- * 此存储过程在ASE v11.0.1, ASE v11.5.1, ASE v11.9.2, ASE v12.5, v12.5.0.3, v12.5.4 平台测试通过!适用于 ASE v11.x, v12.x,不能用于ASE15。实际上ASE15.x中的sp_helpdevice完全能够实现该功能!
- * ASE v11.x版本中系统表 sysusages中没有crdate这个表示设备段分配时间的字段,考虑到支持ASEv11.x为了简单处理,没有在Allocation information 中列出设备段的具体分配时间!
- */
- use sybsystemprocs
- go
- if exists(select 1 from dbo.sysobjects where type='P' and name='sp_helpdevice2')
- drop procedure sp_helpdevice2
- go
- create procedure sp_helpdevice2
- @devname varchar(30) = "%"
- as
- declare @numpgsmb float
- declare @Major_Version int
- set nocount on
- select @numpgsmb = (1048576. / @@pagesize)
- --select @version_as_num = @@version_as_integer
- select @Major_Version= convert(int, right(substring(@@version,1,charindex('.',@@version)-1),2) )
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |