教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 基础教育 >

SYBASE数据库系统检查和日常维护命令指南(2)

来源:网络收集 时间:2026-04-13
导读: device_fragments size usage created free kbytes ---------------- ---- ----- ------- ----------- ksqhdb_part1 1000.0 MB data only Sep 6 2006 9:37AM 705104 ksqhdb_part2 1000.0 MB data only Sep 6 2006 9

device_fragments size usage created free kbytes

---------------- ---- ----- ------- -----------

ksqhdb_part1 1000.0 MB data only Sep 6 2006 9:37AM 705104

ksqhdb_part2 1000.0 MB data only Sep 6 2006 9:37AM 1019490

ksqhdb_part3 1000.0 MB data only Sep 6 2006 9:37AM 1006902

ksqhdb_part4 1000.0 MB data only Sep 6 2006 9:37AM 1020000

ksqhdblog 1000.0 MB log only Sep 6 2006 9:37AM not applicable

- log only free kbytes = 1019850

所有设备均显示data only或log only,代表数据段和日志段都使用独立设备

B. 如果日志段使用独立设备,当可用空间为50%以下时,使用dump tran dbname to ‘dumpfile’命令备份并

截断非活动日志

C. 如果日志段使用混合设备或者数据库选项’trunc log on chkpt’被打开,当可用空间为50%以下时,

需确保当前数据库为空闲状态后,运行dump tran dbname with truncate_only命令截断非活动日志。

日志被截断后后,请尽快执行dump database dbname命令,确保数据库故障时可以利用备份介质恢复到 故障发生点。

D. 一般情况禁止使用dump tran dbname with no_log截断日志空间,该命令仅用于数据库崩溃后的紧急恢复。

执行周期:可随时执行。

1.4 SYBASE数据库日志文件检查

检查方法:检查SYBASE数据库.log消息日志文件,详见下表:

检查内容 数据库消息日志 正常状态 非正常状态和采取措施 消息日志中无severity消息日志中出现severity大于大于18的出错信息, 18的信息,代表数据库发生关键错误,联系SYBASE支持小组确认解决方案。 命令举例: bash-2.05$ tail -100 /opt/sybase/ASE-12_5/install/SYBASE.log

此处应根据实际情况确定需要查看消息日志文件长度。

00:00000:00001:2006/09/07 14:51:03.20 server Started estimating recovery log boundaries for database 'archivedb'.

00:00000:00001:2006/09/07 14:51:03.20 server Database 'archivedb', checkpoint=(2385377, 4), first=(2385377, 4), last=(2385377, 4).

00:00000:00001:2006/09/07 14:51:03.20 server Completed estimating recovery log boundaries for database 'archivedb'.

00:00000:00001:2006/09/07 14:51:03.20 server Started ANALYSIS pass for database 'archivedb'. 00:00000:00001:2006/09/07 14:51:03.20 server Completed ANALYSIS pass for database 'archivedb'.

00:00000:00001:2006/09/07 14:51:03.20 server Started REDO pass for database 'archivedb'. The total number of log records to process is 1.

00:00000:00001:2006/09/07 14:51:03.23 server Completed REDO pass for database 'archivedb'.

00:00000:00001:2006/09/07 14:51:03.23 server Recovery of database 'archivedb' will undo incomplete nested top actions.

00:00000:00001:2006/09/07 14:51:03.23 server Started recovery checkpoint for database 'archivedb'. 00:00000:00001:2006/09/07 14:51:03.23 server Completed recovery checkpoint for database 'archivedb'. 00:00000:00001:2006/09/07 14:51:03.24 server Started filling free space info for database 'archivedb'. 00:00000:00001:2006/09/07 14:51:03.24 server Completed filling free space info for database 'archivedb'.

00:00000:00001:2006/09/07 14:51:03.24 server Started cleaning up the default data cache for database 'archivedb'. 00:00000:00001:2006/09/07 14:51:03.24 server Completed cleaning up the default data cache for database 'archivedb'.

00:00000:00001:2006/09/07 14:51:03.24 server The transaction log in the database 'archivedb' will use I/O size of 2 Kb.

00:00000:00001:2006/09/07 14:51:03.25 server Database 'archivedb' is now online.

00:00000:00001:2006/09/07 14:51:03.31 server Recovery has restored the value of 'local async prefetch limit' for '16K' pool in 'default data cache' from '80' to 'DEFAULT'.

00:00000:00001:2006/09/07 14:51:03.31 server Recovery has restored the value of 'local async prefetch limit' for '2K' pool in 'default data cache' from '80' to 'DEFAULT'.

00:00000:00001:2006/09/07 14:51:03.38 server Recovery has restored the original size for '16K' pool and '2K' pool in 'default data cache'.

00:00000:00001:2006/09/07 14:51:03.41 server Recovery complete.

00:00000:00001:2006/09/07 14:51:03.41 server SQL Server's default unicode sort order is 'binary'. 00:00000:00001:2006/09/07 14:51:03.42 server SQL Server's default sort order is: 00:00000:00001:2006/09/07 14:51:03.42 server 'bin_iso_1' (ID = 50)

00:00000:00001:2006/09/07 14:51:03.42 server on top of default character set: 00:00000:00001:2006/09/07 14:51:03.42 server 'iso_1' (ID = 1).

00:00000:00001:2006/09/07 14:51:03.42 server Master device size: 60 megabytes, or 30720 virtual pages. (A virtual page is 2048 bytes.)

执行周期:可随时执行。

…… 此处隐藏:1937字,全部文档内容请下载后查看。喜欢就下载吧 ……
SYBASE数据库系统检查和日常维护命令指南(2).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/565848.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)