版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Administering Adaptive Server IQfor the Data WarehouseMonitoring and Troubleshooting2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 1Module OverviewThis module identifies techniques to monitor ASIQ databases. In addition, it describes how to use ASIQ utilities to monitor and troubles
2、hoot.ObjectivesnAfter completing this module, you should be able to:lMonitor an ASIQ databaselMonitor performance using IQ UTILITIESlTroubleshoot problems2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 2Module MapnASIQ监控监控 l监控监控Usersl监控监控Deletes/Loads/Insertsl使用系统存储过程监控使用系统存储过程监控ASIQ
3、l监控监控IQ缓存使用情况缓存使用情况l使用系统提供命令监控系统使用系统提供命令监控系统nTroubleshootinglWhat do I do if.?2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 3监控监控Usersn使用Sybase Central监控已连接用户n双击Connected Users目录l双击connection ID可以获得连接的详细信息2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 4监控监控Loads/De
4、letes/Insertsn在日志文件中查看insert and delete信息.90000 Rows, 8 SecondsMem: 30mb/M31Main Blks: U5872/4%, Buffers: U6392/L9Temporary Blks: U11721/28%, Buffers: U3083/L169Main I: L173970/P2725 O: D27387/P21574 C:D21400Temporary I: L341295/P7229 O: D50851/P13638 C:D32200. 100000 Rows, 8 Seconds Mem: 30mb/M31Ma
5、in Blks: U7784/6%, Buffers: U6392/L9Temporary Blks: U13677/33%, Buffers: U3121/L116Main I: L179988/P2725 O: D28345/P22521 C:D20500Temporary I: L351507/P7230 O: D53062/P14611 C:D301002002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 5监控监控Loads/Deletes/Insertsn在事务结束时,会输出总结信息:100000 recor
6、ds were inserted into customer. Insert for customer, completed in 86 seconds. 100000 records inserted. Mem: 14mb/M31Main Blks: U23932/19%, Buffers: U6393/L0Temporary Blks: U41/0%, Buffers: U9/L1Main I: L249754/P2778 O: D36672/P30625 C:D14900Temporary I: L421871/P14378 O: D63112/P15701 C:D28000n这些信息都
7、保存在 .iqmsg文件中nSee “Interpreting Notification Messages” in Chapter 5 of the Sybase Adaptive Server IQ Administration and Performance Guide2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 6监控数据装载信息监控数据装载信息n在装载的过程中存在三个阶段lPhase 1 从文本文件读数据,然后向磁盘写LF, HNG, and FP索引数据lPhase 2 对HG索引数据进行排序; 同时继
8、续将其它类型的索引数据写到磁盘上lPhase 3 将HG索引数据写到磁盘上n统计信息的频率基于NOTIFY选项的设置值的大小l缺省为100,000行lNOTIFY值的大小可以在LOAD TABLE或者是INSERT语句中指定l也可以通过设置数据库选项Notify_Modulus来更改缺省的NOTIFY的大小(continued)2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 7监控数据装载信息监控数据装载信息n在数据装载的第一阶段, 显示从数据源读数据的统计信息l统计当前使用内存 (IQ caches + Heap
9、)/ 装载总内存 的比例 Mem:30mb/M31l显示数据表空间与临时表空间的使用状况, 数据块的使用情况以及上锁情况Main Blks: U5872/28%, Buffers: U6392/L9Temporary Blks: U13677/33%, Buffers: U3121/L116lReports logical and physical reads, buffer destruction and compression informationMain I: L179988/P2725 O: D28345/P22521 C:D20500Temporary I: L351507/P72
10、30 O: D53061/P14611 C:D30100(continued)2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 8监控数据装载信息监控数据装载信息n在装载第一阶段结束之后, 在装载完成以前会看到类似的写信息, 包括最终的总结信息l如果NOTIFY的值设的太高, 则无法看到装载的过程处理信息l如果NOTIFY的值设的太低, 又会使统计信息的频率发生的太频繁nSee Chapter 5, ASIQ Administration and Performance Guide, for more informa
11、tion on the load notification messages2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 9使用系统提供存储过程监控数据库使用系统提供存储过程监控数据库常用包括以下存储过程常用包括以下存储过程n下面将逐个介绍它们(continued)2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 10使用系统提供存储过程监控数据库使用系统提供存储过程监控数据库sp_iqcheckdbn检查数据库中数据有效性l将数据库中
12、的每个数据“页”从磁盘读到内存中s会消耗大量的时间!l根据数据库的选项对这些数据“页”进行校验和修复l这些处理信息会保存到下一次使用sp_iqdbstatistics 存储过程为止n当成功进行数据库检查后, 更新数据库存储分配信息以反映最新的状态l当发生错误时不更新这些信息nExample on next page(continued)2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 11使用系统提供存储过程监控数据库使用系统提供存储过程监控数据库sp_iqcheckdbn右边只显示部分结果n统计结果中用星号标识的选
13、项是用来表示数据碎片的统计结果l当这些选项存在非零值时,数据库可能存在较为严重的错误n为了使此存储过程获得准确的结果,必须在运行此存储过程之前提交检查点(continued)2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 12(continued)使用系统提供存储过程监控数据库使用系统提供存储过程监控数据库sp_iqdbstatisticssp_iqdbsize2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 13(continued)使
14、用系统提供存储过程监控数据库使用系统提供存储过程监控数据库sp_iqstatusnThings to look for: see next page2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 14使用系统提供存储过程监控数据库使用系统提供存储过程监控数据库sp_iqstatusn检查数据表空间与临时表空间的使用情况l如果使用率过高, 就需要增加表空间了nOld Versions lShows number of old table versions in the database and space usedl
15、There versions will be dropped and space recovered when no longer referenced by active transactionsnActive Txn VersionslNumber of active write transactions and amount of data created and destroyednSee Chapter 1, ASIQ Troubleshooting and Error Message Guide, for more information on sp_iqstatus2002 Sy
16、base, Inc. and its subsidiaries. All rights reserved.14- 15监控缓存使用情况监控缓存使用情况IQ UTILITIES n监控缓存的使用性能n收集缓存的使用信息以及ASIQ使用磁盘I/O的情况n所有的统计信息会保存在一个日志文件中语法:IQ UTILITIES MAIN | PRIVATE INTO dummy_table_nameSTART MONITOR monitor_options .(continued)2002 Sybase, Inc. and its subsidiaries. All rights reserved.14-
17、 16监控缓存使用情况监控缓存使用情况检查以及保存监控结果检查以及保存监控结果n结果以文本形式保存在以下日志文件中:l数据表空间:dbname.connection#-main-iqmonl临时数据表空间:dbname.connection#-temp-iqmonn上述日志文件的后缀可以通过-file_suffix选项来进行指定n可以使用任何的文本编辑器浏览这些信息l这些日志文件会放在存放.db文件的同一目录下(continued)2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 17(continued)监控缓存使
18、用情况监控缓存使用情况n例如:create table monitor_table (a varchar(1);IQ UTILITIES PRIVATE INTO monitor_tableSTART MONITOR -summary -interval 20;n首先需要创建一个虚拟表l此表用于进行缓存的监控l表的内容可以随意定义n启动缓存监控器以记录数据与临时数据缓存的活动状况2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 18监控缓存使用情况监控缓存使用情况n使用 -summary 选项举例Sybase Ada
19、ptive Server IQ Performance Monitor-Version 3.1Options string for Temp cache: -summary -interval 20Summary2001-11-20 10:20:25 Active Main Cache Temp Cache UsersFinds HR% Reads/Writes GDirty Pin% Dirty% InUse% Finds 07639 82.9 3261/15 4 0.0 0.6 100 38075 0 0 0.0 0/0 0 0.0 0.6 100 0 0 0 0.0 0/0 0 0.0
20、0.6 100 0 1 31 96.8 1/0 0 0.0 0.6 100 7 1 250 87.6 31/0 0 0.0 0.6 100 102002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 19停止缓存监控器停止缓存监控器n语法:IQ UTILITIES MAIN | PRIVATE INTO dummy_table_name STOP MONITOR;n例如:IQ UTILITIES PRIVATEINTO monitor_table STOP MONITOR;2002 Sybase, Inc. and its
21、 subsidiaries. All rights reserved.14- 20系统监控工具系统监控工具监控监控CPU 与数据页面的使用与数据页面的使用nUNIX平台:lpslvmstatlsarltoplstatnNT平台:lPerformance MonitorlTask Manager2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 21Module MapnMonitoring lMonitoring FileslMonitoring UserslMonitoring Deletes/Loads/Inser
22、tslUsing System Stored ProcedureslIQ UTILITIESlSystem UtilitiesnASIQ常见问题常见问题lWhat do I do if.?2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 22Troubleshooting FieldsWhat Do I Do If.nASIQ服务无法启动?n用户无法访问数据库?n装载时表空间不足?n事务处理效率低或者挂起?2002 Sybase, Inc. and its subsidiaries. All rights reser
23、ved.14- 23ASIQ 服务无法启动服务无法启动可能原因可能原因n数据库服务已经启动!n数据库元数据事务日志与数据库不匹配n使用了无效的用户启动数据库服务n环境变量未正确设置n网络连接出现问题n没有足够的内存分配给数据库服务2002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 24用户无法访问数据库或数据库对象用户无法访问数据库或数据库对象n用户ID或者口令无效n服务启动方式是数据库管理员专用方式n数据库相关数据文件丢失nODBC数据源未正确定义n数据库正在进行备份n用户没有访问数据库对象的相应权限2002 Syb
24、ase, Inc. and its subsidiaries. All rights reserved.14- 25装载时数据表空间不足装载时数据表空间不足nASIQ处理方法:l挂起此装载进程l轮询是否增加了新的表空间n增加足够的新空间存放数据l使用CREATE DBSPACE命令 (syntax in notes)n例如:CREATE DBSPACE mydb_2AS e:s2datamydb_2.iqSIZE 2002002 Sybase, Inc. and its subsidiaries. All rights reserved.14- 26事务处理效率低或者挂起事务处理效率低或者挂起n首先确定是针对某个用户还是所有用户?l
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 深度解析(2026)《GBT 35853.8-2018航空航天等效术语表 第8部分:飞行器》
- 深度解析(2026)《GBT 35552.1-2017船舶自动识别系统(AIS)B类设备技术要求 第1部分:载波侦听时分多址(CSTDMA)》
- 深度解析(2026)《GBT 35435-2017空间站科学实验柜通 用设计规范》
- 《DAT 43-2009缩微胶片数字化技术规范》(2026年)合规红线与避坑实操手册
- 机械工程师CAD绘图试题及分析
- 大学眼科题库及答案
- 县级计划生育协会工作制度
- 高中美术试题及答案
- 广告创意试题及策略
- 司法考试商法题库及答案
- DGJ08-113-2017 建筑节能工程施工质量验收规程
- 2025年贵州省中考英语试题(附答案和音频)
- DB42T 1892-2022 非煤矿山钻探施工安全技术规程
- 【物化生 江苏卷】2025年江苏省高考招生统一考试高考真题物理+化学+生物试卷(真题+答案)
- 满族装饰艺术主题餐饮空间设计研究
- 2025年软件开发环境考题及答案
- 扬州印象城市介绍旅游宣传
- 2024年国家民委直属事业单位招聘笔试真题
- 中职《劳动教育》课程标准
- 综合实践活动课程实施方案与实施指南
- 腾讯风控师(初级)认证考试题库(附答案)
评论
0/150
提交评论