重新計(jì)算日志空間的方法如下:以庫latn為例:
1、正常shutdown server。
2、在RUN文件中加入-T7408,啟動(dòng)server。啟動(dòng)過程中可查看到“Forcing server to scan allocation pages to find free log space count for database 7”。Server會(huì)重新計(jì)算每個(gè)數(shù)據(jù)庫的free log space。
3、啟動(dòng)后用sp_helpdb latn查看log free的情況,仍可能是錯(cuò)誤的。
isql -U -P -S
>use latn
>go
>create table dummy_table_aaa (c1 int,c2 char(2))
>go
>insert into dummy_table_aaa values(1,”1”)
>go 200
>checkpoint (必須手工執(zhí)行)
>go
>sp_helpdb latn
>go
顯示latn的log free space為正常,修復(fù)成功。
>drop table dummy_table_aaa
>go
3.去除RUN文件中的-T7408
shutdown server。去除RUN文件中的-T7408,再次啟動(dòng)server,sp_helpdb latn,正常。
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請
點(diǎn)擊舉報(bào)。