




已阅读5页,还剩1页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
AWR分析报告提取操作方法oracle遇到性能问题时,性能分析的一个思路就是导出AWR分析报告,通过报告分析定位问题根源,以下是如何生成分析报告的步骤,AWR分析报告文件类型分为txt和html两种,习惯使用html。准备工作:现在我们使用的都是11GR2的数据库,安装完成后什么都不需要任何修改。操作说明:其中红色的部分为需要输入的内容。Windows平台C:sqlplus/nolgC:sqlplus /nologSQL*Plus: Release 11.2.0.1.0 Production on 星期三 9月 12 13:56:09 2012Copyright (c) 1982, 2010, Oracle. All rights reserved.SQL conn sys/zlsoftdemo as sysdba已连接。SQL ?/rdbms/admin/awrrpt.sqlCurrent Instance DB Id DB Name Inst Num Instance- - - - 1270982830 DEMO 1 demoSpecify the Report TypeWould you like an HTML report, or a plain text report?Enter html for an HTML report, or text for plain textDefaults to html输入 report_type 的值: htmlType Specified: htmlInstances in this Workload Repository schema DB Id Inst Num DB Name Instance Host- - - - - 1270982830 1 ORCL orcl USER01* 1270982830 1 DEMO demo QW_TEST_SEVE RUsing 1270982830 for database IdUsing 1 for instance numberSpecify the number of days of snapshots to choose fromEntering the number of days (n) will result in the most recent(n) days of snapshots being listed. Pressing withoutspecifying a number lists all completed snapshots.输入 num_days 的值: 2Listing the last 2 days of Completed Snapshots SnapInstance DB Name Snap Id Snap Started Level- - - - -demo DEMO 12859 11 9月 2012 00:00 1 12860 11 9月 2012 01:00 1 12861 11 9月 2012 02:00 1 12862 11 9月 2012 03:00 1 12863 11 9月 2012 04:00 1 12864 11 9月 2012 05:00 1 12865 11 9月 2012 06:00 1 12866 11 9月 2012 07:00 1 12867 11 9月 2012 08:00 1 12868 11 9月 2012 09:00 1 12869 11 9月 2012 10:00 1 12870 11 9月 2012 11:00 1 12871 11 9月 2012 12:00 1 12872 11 9月 2012 13:00 1 12873 11 9月 2012 14:00 1 12874 11 9月 2012 15:00 1 12875 11 9月 2012 16:00 1 12876 11 9月 2012 17:00 1 12877 11 9月 2012 18:00 1 12878 11 9月 2012 19:00 1 12879 11 9月 2012 20:00 1 12880 11 9月 2012 21:00 1 12881 11 9月 2012 22:00 1 12882 11 9月 2012 23:00 1 12883 12 9月 2012 00:00 1 12884 12 9月 2012 01:00 1 12885 12 9月 2012 02:00 1 12886 12 9月 2012 03:00 1 12887 12 9月 2012 04:00 1 12888 12 9月 2012 05:00 1 12889 12 9月 2012 06:00 1 12890 12 9月 2012 07:00 1 12891 12 9月 2012 08:00 1 12892 12 9月 2012 09:00 1 12893 12 9月 2012 10:00 1 12894 12 9月 2012 11:00 1 12895 12 9月 2012 12:00 1 12896 12 9月 2012 13:00 1Specify the Begin and End Snapshot Ids输入 begin_snap 的值: 12884Begin Snapshot Id specified: 12884输入 end_snap 的值: 12895End Snapshot Id specified: 12895Specify the Report NameThe default report file name is awrrpt_1_12884_12895.html. To use this name,press to continue, otherwise enter an alternative.输入 report_name 的值: test.htmlUsing the report name test.html另外一种方法1:登陆对应的数据库服务器2:找到oracle磁盘空间(d:oracleproduct10.2.0db_1RDBMSAdmin)3:执行cmd-cd d:回车4: cd d:oracleproduct10.2.0db_1RDBMSAdmin 回车 5:sqlplus 用户名/密码服务连接名(例:sqlplus carmot_esz_1/carmotigrp)6:执行awrrpt.sql 回车 解释:第一步输入类型: html第二步输入天数: 天数自定义(如1,代表当天,如果2,代表今天和昨天。)第三步输入开始值与结束值:(你可以看到上面列出的数据,snap值)这个值输入开始,与结束第四步输入导出表的名称:名称自定义 回车第五步,由程序自动导完。linux下的操作rootlinux5 /# su oracle :注意用户的选择oraclelinux5 $ export ORACLE_SID=orcl :环境变量 oraclelinux5 $ export NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK 字符集,可选oraclelinux5 admin$ sqlplus /nolog SQL conn sys/XXXORCL as sysdba已连接.SQL ?/rdbms/admin/awrrpt.sqlCurrent InstanceDB Id DB Name Inst Num Instance- - - -1260101618 ORCL 1 orclSpecify the Report TypeWould you like an HTML report, or a plain text report?Enter html for an HTML report, or text for plain textDefaults to htmlEnter value for report_type: html “选择报告输出的文件类型”Type Specified: html Instances in this Workload Repository schemaDB Id Inst Num DB Name Instance Host- - - - -* 1260101618 1 ORCL orcl linux5Using 1260101618 for database IdUsing 1 for instance numberSpecify the number of days of snapshots to choose fromEntering the number of days (n) will result in the most recent(n) days of snapshots being listed. Pressing withoutspecifying a number lists all completed snapshots.Enter value for num_days: 3 “报告输出的时间范围选择” Listing the last 3 days of Completed SnapshotsSnapInstance DB Name Snap Id Snap Started Level- - - - -orcl ORCL 1 13 Oct 2010 23:00 12 14 Oct 2010 00:00 13 14 Oct 2010 01:00 14 14 Oct 2010 02:00 15 14 Oct 2010 03:00 16 14 Oct 2010 04:00 17 14 Oct 2010 05:00 18 14 Oct 2010 06:00 19 14 Oct 2010 07:00 1Specify the Begin and End Snapshot Ids“选择获取报告的快照范围”Enter value for begin_snap: 2Begin Snapshot Id specified: 2Enter value for end_snap: 9End Snapshot Id specified: 9Specify the Report NameThe default report file name is awrrpt_1_2_9.html. To use this name,press to continue, otherwise enter an alternative.“输出分析报告文件”Enter
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 沧州市2025-2026学年七年级上学期语文期末测试试卷
- 博尔塔拉蒙古自治州2024-2025学年七年级下学期语文期末测试试卷
- 环卫年终安全知识培训课件
- 医院出院患者随访管理制度
- 企业员工职业礼仪规范培训资料
- 房地产项目销售策略与实操指南
- 移动多媒体广播发射设备创新创业项目商业计划书
- 专用面粉创新创业项目商业计划书
- 农业废弃物基料化利用途径创新创业项目商业计划书
- 大型土方施工设备配置及性能指标
- 创客空间运营方案
- 中国加速康复外科临床实践指南2021
- 向量数量积说课课件-2023-2024学年高一下学期数学人教A版(2019)必修第二册
- 《新能源材料及器件组装》课程教学大纲
- 统编版(2025)七年级下册道德与法治1.3《学会自我保护》教案
- 孕产期保健知识
- 目标管理Smart原则培训课件
- GB/T 44927-2024知识管理体系要求
- 《红楼梦》(解析版)
- 达州电力集团笔试真题
- AAMIST79-2017卫生保健设施蒸汽灭菌和无菌保证综合指南
评论
0/150
提交评论