




已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
IBM Informix 数据库系统日常监控操作技术手册数据库系统日常监控操作技术手册 1 监控数据库系统软件的逻辑日志文件是否正常被备份 防止出现当逻辑日志文件满了而没备份导致数据库停机 使用 onstat l 命令监控逻辑日志的使用 监控输出中的 Flag 标志字段 注 意第位 如果是 则表明此逻辑日志没有备份 该标识位的详细描述如下 Describes the status of the Logical Log using the following coded values Position 1 ANewly added FFree log UUsed log Position 3 BBacked up Position 5 CCurrently active log Position 7 LContains last checkpoint record 如果数据库系统采用 Onbar 进行系统的备份和恢复 也可以直接监控 INFORMIXDIR etc ixbar servernum 日志文件 观察目前备份的状态 2 监控数据库的数据库磁盘空间 IBM Informix 数据库系统的数据存储空间成为 dbspace 每个 dbspace 可以 包括多个 chunks 使用如下命令可以监控到某个 dbspacece 中 chunk 的空间使用情况 oncheck pe dbspace name 输出入下 DBspace Usage Report dataspace Owner informix Created 09 29 2005 Chunk Pathname Size Used Free 8 home informix IDS940 datachk1 500 53 447 Description Offset Size RESERVED PAGES 0 2 CHUNK FREELIST PAGE 2 1 testzeng informix TBLSpace 3 50 FREE 53 447 Total Used 53 Total Free 447 Chunk Pathname Size Used Free 10 home informix IDS940 datachk2 5000 3 4997 Description Offset Size RESERVED PAGES 0 2 CHUNK FREELIST PAGE 2 1 FREE 3 4997 Total Used 3 Total Free 4997 通过监控 dbspace 中每个 chunk 的 Total Used 和 Total Free 可以知道目前 数据库系统实际对磁盘空间的占用情况 注意 Total Used 和 Total Free 是以 数据页为单位的 3 监控数据库系统中锁资源的占用情况 通过 onstat k 命令监控数据库系统中锁资源的占用情况 具体的输出如下 Locks address wtlist owner lklist type tblsnum rowid key bsiz a03b528 0 a14d6b4 0 S 100002 202 0 a03b554 0 a14d6b4 a03b6e0 HDR X 600023 402 K 1 a03b5ac 0 a14d6b4 a03b6b4 HDR X 600020 302 K 1 a03b5d8 0 a14d6b4 a03b630 HDR X 600023 403 0 a03b604 0 a14c5e4 0 S 100002 202 0 a03b630 0 a14d6b4 a03b840 HDR X 600023 402 K 3 a03b65c 0 a14d280 0 S 100002 202 0 a03b688 a14ca18 a14dae8 a03bef4 HDR U 60001f 30a 0 a03b6b4 a14d280 a14d6b4 a03c264 HDR X 600020 302 0 a03b6e0 0 a14d6b4 a03c41c HDR X 600023 402 0 a03b70c 0 a14d6b4 a03bbb0 HDR X 600023 403 K 3 a03b738 0 a14c5e4 a03b604 IX 600020 0 0 a03b764 0 a14d280 a03b65c IX 600020 0 0 a03b790 0 a14ce4c 0 S 100002 202 0 a03b7bc 0 a14ca18 0 S 100002 202 0 a03b7e8 0 a14ca18 a03b7bc IX 60001f 0 0 a03b814 0 a14bd7c 0 S 100002 202 0 a03b840 0 a14d6b4 a03b554 HDR X 600023 402 K 2 a03b86c 0 a14bd7c a03b814 IX 600020 0 0 a03b898 0 a14c1b0 0 S 100002 202 0 a03b9f8 0 a14d6b4 a03b5d8 HDR X 600023 403 K 1 a03bbb0 0 a14d6b4 a03b9f8 HDR X 600023 403 K 2 a03bd68 0 a14dae8 0 HDR S 100002 202 0 a03bef4 0 a14dae8 a03bd68 HDR IX 60001f 0 0 a03c0ac 0 a14d6b4 a03b5ac HDR X 600020 302 K 2 a03c264 0 a14d6b4 a03b528 HDR IX 600020 0 0 a03c41c 0 a14d6b4 a03c0ac HDR IX 600023 0 0 27 active 2000 total 2048 hash buckets 详细的描述如下 Column HeadingColumn DescriptionSee Also addressThe in memory address of the lock structure wtlistThe address of the first userthread waiting for this lock onstat u ownerThe address corresponding to the userthread which holds this lock onstat u lklistThe address of the next lock owned by this userthread A zero indicates the end of the list typeDescribes the type of lock being held using one or more of the following coded values HDRHeader BByte lock SShared XExclusive IIntent UUpdate IXIntent exclusive ISIntent shared SIX Shared intent exclusive tblsnumThe tablespace number for the item that is locked Tblspace Numbers Database Tblspace rowidThe rowid page or 0 within the tblspace upon which the lock is held ROWID key bsizThe index key number or the number of bytes locked for a VARCHAR 4 监控数据库系统中内存的占用情况 通过 onstat g seg 和 onstat g mem 命令监控数据库系统对内存的使用 其中 onstat g seg 显示的是对共享内存短的使用情况 Segment Summary resident segments are not locked id key addr size ovhd class blkused blkfree 7400 1381648385 a000000 999424 824 R 118 4 7401 1381648386 a0f4000 8192000 720 V 444 556 7202 1381648387 a8c4000 573440 604 M 67 3 描述信息如下 COLUMN DEFINITIONS Column HeadingColumn DescriptionSee Also idThe shared memory identifier returned from the call to shmget for acquiring shared memory segments keyThe key passed to shmget based on the value of SERVERNUM addrThe in memory address of the shared memory segment sizeThe size of the shared memory segment in bytes OvhdThe number of bytes of overhead within this segment required to track information ClassThe segment type for this block of shared memory RResident VVirtual MMessage BlkusedThe number of 8K blocks in the segment that have been used BlkfreeThe number of 8K blocks remaining in the segment onstat g mem 显示内存池的详细使用情况 如下 Pool Summary name class addr totalsize freesize allocfrag freefrag resident R a002010 532480 10112 2 2 res buff R a084010 425984 14208 2 2 global V a0f6010 237568 105688 378 11 mt V a0fa010 1572864 282584 2037 24 statistics V a0fc010 327680 8880 4427 40 rsam V a148010 204800 5400 154 26 aio V a188010 401408 69768 114 31 dictpool V a18c010 106496 25824 79 9 procpool V a192010 24576 23536 4 2 XTF mem V a1b2010 376832 12880 4 2 1 V a2b4010 8192 3104 10 1 shmcon M a8c6010 540672 12160 2 2 2 V a2c2010 8192 3104 10 1 3 V a2d0010 8192 3104 10 1 4 V a2dc010 16384 8592 18 3 6 V a2ec010 8192 3104 10 1 7 V a2f8010 16384 7856 22 3 8 V a33e010 8192 1248 9 1 btclean V a346010 8192 1912 12 2 51 V a378010 40960 5272 136 8 52 V a352010 40960 12144 140 9 53 V a39a010 32768 568 128 1 54 V a3b8010 32768 1968 123 2 55 V a3bc010 40960 8160 126 3 56 V a3c8010 32768 2496 128 1 57 V a3ce010 32768 568 128 1 58 V a3d2010 32768 1968 123 2 59 V a3e4010 8192 1248 9 1 Blkpool Summary name class addr size blks global V a0f7ac8 0 0 COLUMN DEFINITIONS POOL SUMMARY Column HeadingColumn DescriptionSee Also nameThe name of the pool Appendix B classThe segment type in which the pool has been created onstat g seg addrThe in memory address of the pool totalsizeThe total size of the pool in bytes freesizeThe number of bytes of free memory allocfragThe number of allocated fragments within this pool freefragThe number of free fragments within this pool 5 当数据库出现异常情况时 备份数据库系统产生的各 项日志信息 准确记录系统异常的现象 当数据库系统出现异常情况时 应当尽量保留数据库系统的现场情况 以便 对数据库系统进行诊断分析 具体的操作步骤如下 onstat a 收集所有的数据库系统在线信息 onstat g all 收集所有线索相关的信息 onstat o 卸载共享内存的信息 保留数据库系统的消息日志 online log 保留 online log 中针对本次异常的相关 af 和 shmem 文件 6 当数据库出现性能下降时 监控正在运行的异常 SQL 语句 当数据库系统出现性能下降的问题时 可以通过执行如下的语句 来监控 某个特定数据库上正在运行 select 的 SQL 语句 通过修改脚本 也可以监控如 update delete 等语句 如果发现某个 SQL 语句持续执行时间很长 则需要对 其进行分析 用 set explain on 命令打开查询分析器 看该语句的访问路径是否 合理 是否可以通过建立正确的索引 提高访问效率 echo n tee a view sel log date tee a view sel log echo n tee a view sel log onstat g sql grep SELECT awk print onstat g sql 1 sh tee a view sel log echo n tee a view sel log echo The SELECT session are n tee a view sel log onstat g sql grep SELECT awk print o
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 中药材赋能新质生产力发展
- 领导干部如何引领新质生产力
- 2025年急诊医学实际操作技能训练考核答案及解析
- 2025年儿科感染性疾病治疗知识检测答案及解析
- 2025年中医学基础理论知识检测答案及解析
- 2025年康复运动处方设计模拟测试卷答案及解析
- 2025年神经内科常见急救药品使用模拟考试答案及解析
- 2025年眼视光学验光技术评定试卷答案及解析
- 2025年脊柱外科脊柱骨折的手术治疗模拟考试卷答案及解析
- 新质生产力产业引热议
- 医学美容技术专业《美容医学咨询与沟通》课程标准
- 营养指导员理论知识考试题库及答案
- 2024生产安全事故隐患排查治理规定(修订征求意见稿)
- 2024年贵州贵安新区产业发展控股集团有限公司招聘笔试参考题库含答案解析
- JB-T 14509-2023 反渗透海水淡化设备技术规范
- (高清版)TDT 1055-2019 第三次全国国土调查技术规程
- 2024年儿童保健考试复习题库(含答案)
- 砖厂机械伤害安全培训课件
- 02J401 钢梯【含03年修改】图集
- 罚款减免申请书范文(19篇)
- 健康管理中的营养监测与干预
评论
0/150
提交评论