1、准备工作
(1)剩余空间查询
1>sp_helpdb dataname
2>go
(2)系统进程查看
1>sp_who
2>go
1、建立设备
用root登录,执行如下命令。
#cd
#cd dev
#divvy –m hd02
2、把刚建立的设备操作权赋予给sybase
chgrp sybase extfox
chgrp sybase rextfox
chown sybase extfox
chown sybase rextfox
3、查看已建立的系统设备
用sybase登录,然后进入数据库命令维护界面。
1>select name, low/power(2,24) from sysdevices order by low
2>go
备注:通过这样的命令可以得知最后的vdevno号,比如在建立extfox设备前vdevno号已经用到6了,所以建立extfox设备时vdevno号只能是7了。
1>disk init name='extfox',physname='/dev/rextfox',vdevno=7,size=1024000
2>go
4、将新建立的设备扩展到当前foxhis数据中
1>alter database dataname on extfox=2000
2>go