有时候日志段空间满了使用下列语句也无济于事,又不能直接重启库,就加空间应急,
dump tran QAS with truncate_only
dump tran QAS with no_log
sp_helpdevice
go
sp_helpdb QAS
go
sp_helpsegment logsegment
go
声明设备
use master
DISK INIT
name = 'QAS_data_004',
physname = 'E:sybaseQASsapdata_1QAS_data_004.dat',
size = '100G',
directio = true
go
DISK INIT
name = 'QAS_log_004',
physname = 'E:sybaseQASsaplog_1QAS_log_004.dat',
size = '20G',
directio = true
go
更改数据库
ALTER DATABASE QAS
ON QAS_data_004 = '50G'
LOG ON QAS_log_004 = '20G'
go