今天配置Sybase庫時碰到的幾個問題很久沒用都快忘了,故記錄在此。
1、打開dump transation log on checkpoint選項
use master
go
dump transaction DATABASENAME,trunc,true
go
use DATABASENAME
go
checkpoint
go
2、配置bcp in數據庫選項
use master
go
sp_dboption DATABASENAME,"bulkcopy",true
go
use DATABASENAME
go
checkpoint
go
3、從設備上刪除log,default段
use DATABASENAME
go
sp_dropsegment system,DATABASENAME,devicename
go
sp_dropsegment "default",DATABASENAME,devicename
go
如果設備上僅有logsegment則需要啟動到單用戶模式
use master
go
sp_dboption DATABASENAME,"sing user","true"
go