QCO601SpaceManagerwithLiveReorgTraining

上传人:ni****g 文档编号:570208771 上传时间:2024-08-02 格式:PPT 页数:44 大小:1.78MB
返回 下载 相关 举报
QCO601SpaceManagerwithLiveReorgTraining_第1页
第1页 / 共44页
QCO601SpaceManagerwithLiveReorgTraining_第2页
第2页 / 共44页
QCO601SpaceManagerwithLiveReorgTraining_第3页
第3页 / 共44页
QCO601SpaceManagerwithLiveReorgTraining_第4页
第4页 / 共44页
QCO601SpaceManagerwithLiveReorgTraining_第5页
第5页 / 共44页
点击查看更多>>
资源描述

《QCO601SpaceManagerwithLiveReorgTraining》由会员分享,可在线阅读,更多相关《QCO601SpaceManagerwithLiveReorgTraining(44页珍藏版)》请在金锄头文库上搜索。

1、Quest SoftwareQuest数据库管理解决方案数据库管理解决方案Space Manager w/LiveReorg1About MelRain Li李文京lManager, Professional Services, Quest ChinalPhone 86 010 85185651 x 505lCell 86 13601281160lFax 86 01085151322lYears of Experience with Oracle/SAP Database ReorganizationlYears of Experience with Oracle Database Admin

2、istration, Tuning and Management2培训日程培训日程l空间管理问题与收益lSpace Manager w/LiveReorg介绍l如何发现与诊断问题?l如何解决问题?3空间管理问题与收益空间管理问题与收益空间管理问题与收益空间管理问题与收益4空间管理问题与收益空间管理问题与收益l空间管理的收益在于:数据库优化的重要部分保护数据库可用性存储空间耗尽!提高性能High WatermarkChained RowsFragmented TablesInvalid IndexesI/O Balance回收浪费的空间优化I/O5收益:性能提高收益:性能提高l提高性能有效地减少

3、I/O操作用户实际反馈,对关键查询和批处理操作来说,性能有50-100%的提高例如:对于ERP批处理任务BEFORE full tablespace reorg: 12 hours runtimeAFTER full tablespace reorg: 5 1/2 hours runtime6收益:空间回收收益:空间回收l浪费的空间(Wasted space)Tables IndexesTablespacesl回收浪费的空间例如:650G SAP system重组500G回收200G空间l容量规划 对象和数据库存储空间的增长速度为多少?明年需要多少存储空间?7Space Manager w/L

4、iveReorg介绍介绍Space Manager w/LiveReorg介绍8Traditional Reorganization9Live Reorganization10How LiveReorg Works- light-weight collection triggersTEST_TABLECol1Number Primary KeyCol2DateCol3Varchar2Col4Varchar2Transactions on the table during reorg:INSERT into table values (5, 05/05/2005, a, a)UPDATE tab

5、le set Col4=A1 where PK=1DELETE from table where PK=2 TEST_TABLE1, 05/05/2005, a, a2, 05/06/2005, b, b3, 05/05/2005, c, c4, 05/06/2005, d, d5, 05/05/2005, a, a, Insert1, 05/05/2005, a, A1, Update2, 05/06/2005, a, a, DeleteTEST_TABLE1, 05/05/2005, a, A13, 05/05/2005, c, c4, 05/06/2005, d, d5, 05/05/2

6、005. a, aTEST_TABLE1, 05/05/2005, a, a2, 05/06/2005, b, b3, 05/05/2005, c, c4, 05/06/2005, d, dRowid5, I1, DRowid1, I2, DTEST_TABLE_LR1, 05/05/2005, a, A13, 05/05/2005, c, c4, 05/06/2005, d, d5, 05/05/2005. a, aexample:Light-weight Collection Trigger example:transactionresult11LiveReorg Architecture

7、LiveReorg ClientReorgThreadReorgThreadReorgThreadreorg tablereorg indexreorg indexget reorg job from repositorystore reorg job to repositoryQuest Server Agentmonitor progressLight-weight Triggerrecord incremental changesOracle Database12A LiveReorg JoblCreate Table and Data CopylPost-data CopylPrepa

8、re to SwitchlTable switch13Create Table and Data CopylCreate Table and Data CopylPost-data CopylPrepare to SwitchlTable switchCreate copy tableCreate table as select- Insert as select- PL/SQL block- FastCopy14Post-data CopylCreate Table and Data CopylPost-data CopylPrepare to SwitchlTable switch- Cr

9、eate indexes- Post changes from The collection triggers- Constraint, privilege and comment creation 15Prepare to SwitchlCreate Table and Data CopylPost-Data CopylPrepare to SwitchlTable switchQSA waits for the switch from original table to reorganized copy table 16Table SwitchlCreate Table and Data

10、CopylPost-Data CopylPrepare to SwitchlTable switchThe copy table takes the place of the original 17InstallationlLiveReorg Client InstallationlLiveReorg Server ComponentslQSA Installation18Space Manager w/LiveReorg主要功能主要功能l监控和管理空间使用问题的发现与诊断Exception reportsTablespace Map问题的解决Reorg ManagerReorg XpertC

11、hained Row RepairLiveReorg容量规划Capacity reports 19Space Manager w/LiveReorg特点特点l图形方式检测空间存储问题l查看数据库对象详细信息l交互式重组,保证过程安全l重组时对应用的影响减至最低l预测空间使用状况l提供容量规划和数据库增长趋势分析20Space Manager w/LiveReorg工作步骤工作步骤l统计信息收集l检测问题l对象属性l重组l预测表空间失败l容量规划21Space Manager w/LiveReorg结构结构lWindows 控制台l通过SQL*Net连接到数据库 l数据库服务器上建立Reposi

12、tory存储数据对象增长统计信息存储重组脚本lQuest Server Agent(Scheduler)收集统计信息运行重组脚本22Space Manager w/LiveReorg发现与诊断问题发现与诊断问题23发现问题:收集统计信息发现问题:收集统计信息lSpace Manager需要使用统计信息进行空间管理,包括查看对象的使用情况、报告存储问题等l统计信息被存储在Repository中 l为了方便统计信息收集,可以使用Analysis groups和Instant analysis功能24发现问题:收集统计信息步骤发现问题:收集统计信息步骤Manage=New Analysis Grou

13、pManage=Open Analysis Group定义组;查看对象;分析选项;调度选项;Save&Start。25发现问题:统计信息使用发现问题:统计信息使用l统计信息可用于问题检测、问题解决和容量规划等问题报告(Exception reports) 管理报告(Management reports)容量规划报告(Capacity reports)统计信息报告(Analysis Validation reports)26诊断问题:方法一诊断问题:方法一Tablespace MapTablespace Maps:在某一表空间上点击右键,选择“Tablespace Map”Reorg Need

14、模式Object Type 模式27重组术语重组术语lReorg need is a measure of the benefit of reorganizing an object. Benefit can be thought of in terms of the problems to be fixed by reorg and the improvement in database performance to be gained from fixing them. The higher an objects reorg need, the greater the benefit of

15、 reorganizing it.lReorg need ratiois a measure of the benefit of reorganizing an object relative to the cost of reorganizing it. Cost can be thought of in terms of the amount of database I/O required to reorganize an object (this corresponds to the amount of data to be moved and the time it will tak

16、e to move it). The value for need ratio can be from zero to 100. The higher an objects need ratio, the greater the benefit of reorganizing it relative to cost. 28属性信息属性信息l查看对象属性在Tablespace Map中选择对象,点击右键,选中属性快捷方式即可l查看表空间属性选择表空间,点击右键,选中属性快捷方式即可29对象属性信息对象属性信息l在对象属性页上可以查看对象信息和检查问题,这些信息包括Properties TabSt

17、atistics TabConstraints TabDependencies TabColumns TabGrowth TabReorg Need Tab30诊断问题:方法二诊断问题:方法二Exception Reports使用问题报告(Exception Reports):可以使用问题报告识别出有问题的对象,例如具有高Reorg need的对象在报告中可以指定检测的问题,如 Objects that have Reached MaxExtents、Non-selective Indexes、 Table/Index Contention例如,需要检测具有较高 Reorg need rati

18、o的对象就可以运行Objects Needing Reorganization报告 31诊断问题:方法三诊断问题:方法三Capacity Report使用容量规划报告:利用容量规划报告可以检测需要重组的对象或表空间,从而防止潜在的空间问题运行Tablespace Failure Prediction报告查看什么时间表空间的剩余空间将用尽运行Trend Analysis报告查看对象空间的增长速度和Extent分配的历史32Space Manager w/LiveReorg解决问题解决问题33解决问题解决问题l识别出存储问题后,就可以进行问题解决,可以使用的功能为Reorg ManagerReor

19、g XpertChained Row Repair34解决问题:重组解决问题:重组l对数据库对象的重组包括重组或重新构造表和索引修复行链接重组表空间定位表和索引到其它表空间上35解决问题:重组工具解决问题:重组工具lReorg Manager交互式的重组方式,可以针对一个或多个数据库对象 lReorg Xpert基于表空间的智能重组工具,不需要人工干预lChained Row Repair修复行链接36解决问题:重组方法解决问题:重组方法l离线重组(Offline Reorg)重组期间,需要停止应用和业务处理l在线重组(Live Reorg)在线重组试用于全天候运营企业,重组期间业务应用不受影

20、响被重组的表始终是可用的,只是在原表和新表之间进行切换时存在短暂的延迟37数据移动方法数据移动方法l使用SQL方式和FastCopy混合方式使用SQL方式移动不包含 LONG或 LONG RAW字段的数据,而用 FastCopy方式移动包含 LONG或 LONG RAW字段的数据lSQL方式和FastCopy也可以单独使用,可在重组策略中指定38解决问题:重组步骤解决问题:重组步骤l利用交互式方式重组对象时需要完成以下几个步骤选择目标表空间和中间临时表空间选择脚本选项定义存储策略客户化对象分配脚本预测重组空间查看重组脚本调度脚本执行或立即执行39解决问题:行链接修复解决问题:行链接修复l行链接

21、修复用于修复行链接比率较小的表,从而避免重组整个表l因为修复要快于重组,所以对表的可用性影响要小l行链接修复原理将原来链接的行删除,重新插入到一个新的数据快中修复后,Oracle只扫描一个数据块即可40检测具有行链接的表检测具有行链接的表l使用Tablespace Maps每一个表的行链接百分比在Chained Row %字段中显示出来l使用问题报告(Exception Reports)运行报告Tables with Chained Rows和 Objects Needing Reorganization Exception 检测行链接41行链接修复步骤行链接修复步骤行链接修复的步骤主要包括:选择需要修复的对象设定修复选项选择修复类型执行修复动作42解决问题:容量规划解决问题:容量规划l表空间失败预测预测什么时候表空间将会用尽剩余空间也会预测那一个对象将会引起表空间分配空间失败对于表空间中的对象,报告可以显示Extent将会被分配的日期,分配后对象的尺寸等l趋势分析针对指定的时间段预测对象的增长趋势43选择选择QUEST,选择共赢,选择共赢谢谢 谢谢44

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 资格认证/考试 > 自考

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号