sybase ASE tempdb 空間不足解決辦法

報錯信息如下

Space available in the log segment has fallen critically low in database 'tempdb'.  All future modifications to this database will be suspended until the log is successfully dumped and space becomes available.
The transaction log in database tempdb is almost full.  Your transaction is being suspended until space is made available in the log.

因爲臨時庫作爲全局應用,涉及到排序、臨時表等操作,所以臨時庫日誌空間不足會導致所有進程掛起

解決辦法1

1.登陸連個sa用戶到sybase server

2.一個用shutdown進行停庫操作,結果顯示信息如下

1> shutdown
2> go
1 task(s) are sleeping waiting for space to become available in the log segment
for database tempdb.
SHUTDOWN is waiting for 1 process(es) to complete.
SHUTDOWN is waiting for 1 process(es) to complete.
SHUTDOWN is waiting for 1 process(es) to complete.
SHUTDOWN is waiting for 1 process(es) to complete.
SHUTDOWN is waiting for 1 process(es) to complete.
SHUTDOWN is waiting for 1 process(es) to complete.
SHUTDOWN is waiting for 1 process(es) to complete.
SHUTDOWN is waiting for 1 process(es) to complete.

3.在第二個窗口用shutdown with nowiat停掉庫,再重啓

1> shutdown with nowait
2> go
A SHUTDOWN command is already in progress. Please log off.
Server SHUTDOWN by request.
The SQL Server is terminating this process.
CT-LIBRARY error:
        ct_results(): network packet layer: internal net library error: Net-Library operation terminated due to disconnect


解決辦法2


 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章