重建日志

Sybase数据库日志损坏时重建日志启动数据库的解决办法

一个人想着一个人 提交于 2019-11-30 02:41:15
首先判断错误为页损坏或者索引损坏,根据 Adaptive Server failed to retrieve a row via its RID in database 'escourt5' because the requested RID has a higher number than the last RID on the page. Rid pageid = 0x1c88a8; row num = 0x27. Page pointer = 0x261CA000, pageno = 1869992, status = 0x1, objectid = 8 , indexid = 0, level = 0. 判断其中 :objectid = 8 表示日志段有问题 解决方法一:截断日志 先把 sysdatabases 的 status 修改成 -32768 然后重新启动数据库 1>update sysdatabases set status = -32768   where name = "escourt5" 4>go 登陆数据库 1> dump transaction escourt5 with truncate_only 2> go Msg 921, Level 14, State 1: Line 1: Database 'escourt5' has not been