MySQL社区

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
查看: 7705|回复: 0
打印 上一主题 下一主题

[Sybase] 清除Sybase日志满的情况

[复制链接]
跳转到指定楼层
1#
发表于 2007-12-18 22:18:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
做以记录!

查看Sybase运行日志文件,会发现运行日志文件里记录了日志满的情况,如下:

Symptom:
The sybase in ims is stop. Hossim can not push image to das. The das is stop in flamingo.
And checked the sybase log, LOG FULL error is found:
/logs/sybase_error.log:
01:00000:00280:2007/12/18 10:16:11.50 server  Space available in the log segment has fallen critically low in database 'ims'.  All future modifications to this database will be suspended until the log is successfully dumped and space becomes available.
02:00000:00535:2007/12/18 10:16:11.55 server  background task message: LOG FULL: Transactions in database 'ims' are suspended.
02:00000:00535:2007/12/18 10:16:11.55 server  background task message: LOG FULL: To recover, do an incremental backup to dump the transaction log.



【解决办法】

方法一:手工清除
ISU570:/local/sybase> isql -Usa -P
1> use ims
2> go
1> dump transaction ims with truncate_only
2> go

方法二:打开chkpt选项,Sybase会自动清除
1> use master
2> go
1> sp_dboption ims, "trunc log on chkpt", true
2> go
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
收藏收藏 分享淘帖 顶 踩
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|申请友链|小黑屋|Archiver|手机版|MySQL社区 ( 京ICP备07012489号   
联系人:周生; 联系电话:13911732319

GMT+8, 2024-5-4 08:34 , Processed in 0.063595 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表