mopsite 发表于 2009-01-19 15:11

不能截断数据库日志的问题

因为日志增长过快,手动截断日志出现以下问题:
1> dump transaction db_name with truncate_only
2> go
Msg 692, Level 20, State 1:
Line 1:
Uninitialized logical page '347775' was read while accessing object '8' in
database '6'. Please contact Sybase Technical Support.
The SQL Server is terminating this process.

其中参数为no_log也是出现同样的问题,用户数据库添加数据库选项sp_dboption db_name,"trunc log",true同样不能生效;
数据库版本为11.9.2,平台为unixware7;由于日志不断增长,目前只能不断添加日志设备,请问这个问题如何解决(运行过dbcc不能解决),或者我是否可以删除使用过的日志设备???

[ 本帖最后由 mopsite 于 2009-1-19 15:14 编辑 ]

mopsite 发表于 2009-01-19 15:21

其实是个用户数据库的syslogs,运行dbcc tablealloc出现以下提示:
1> dbcc tablealloc(syslogs)
2> go
The default report option of OPTIMIZED is used for this run.
The default fix option of NOFIX is used for this run.
***************************************************************
TABLE: syslogs          OBJID = 8
INDID=0FIRST=347769    ROOT=308871   SORT=0
Msg 2529, Level 16, State 7:
Line 1:
Table Corrupt: Attempted to get page 347769, object 8;got page 0, object 0.
TOTAL # of extents = 0

帮忙给看看哈,谢谢!

hobbylu 发表于 2009-01-19 16:20

需要停机处理一下,试着在-32768状态重建日志。
页: [1]
查看完整版本: 不能截断数据库日志的问题