AWR报告的使用

php中文网
发布: 2016-06-07 17:29:31
原创
1343人浏览过

[Oracle@localhost admin]$ pwd /home/oracle/oracle/product/10.2.0/db_1/rdbms/admin [oracle@localhost admin]$ sqlplus sys/

[oracle@localhost admin]$ pwd

/home/oracle/oracle/product/10.2.0/db_1/rdbms/admin

[oracle@localhost admin]$ sqlplus sys/lubinsu as sysdba

 

SQL*Plus: Release 10.2.0.1.0 - Production on Sun May 19 15:12:52 2013

 

Copyright (c) 1982, 2005, Oracle. All rights reserved.

 

 

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, OLAP and Data Mining options

 

SQL> @/home/oracle/oracle/product/10.2.0/db_1/rdbms/admin/awrrpt.sql

 

Current Instance

~~~~~~~~~~~~~~~~

 

DB Id DB Name Inst Num Instance

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

1326384392 ORCL 1 orclsid

 

 

Specify the Report Type

~~~~~~~~~~~~~~~~~~~~~~~

Would you like an HTML report, or a plain text report?

Enter 'html' for an HTML report, or 'text' for plain text

Defaults to 'html'

Enter value for report_type: html(也是缺省值)

Type Specified: html

 

 

Instances in this Workload Repository schema

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

DB Id Inst Num DB Name Instance Host

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

* 1326384392 1 ORCL orclsid localhost.lo

caldomain

 

Using 1326384392 for database Id

Using 1 for instance number

 

 

Specify the number of days of snapshots to choose from

Yaara
Yaara

使用AI生成一流的文案广告,电子邮件,网站,列表,博客,故事和更多…

Yaara 59
查看详情 Yaara

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Entering the number of days (n) will result in the most recent

(n) days of snapshots being listed. Pressing without

specifying a number lists all completed snapshots.

 

 

Enter value for num_days: 2

 

Listing the last 2 days of Completed Snapshots

 

Snap

Instance DB Name Snap Id Snap Started Level

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

orclsid ORCL 220 19 May 2013 10:18 1

221 19 May 2013 11:00 1

222 19 May 2013 11:42 1

223 19 May 2013 12:00 1

224 19 May 2013 12:30 1

225 19 May 2013 13:00 1

226 19 May 2013 13:30 1

227 19 May 2013 14:00 1

228 19 May 2013 14:30 1

229 19 May 2013 15:00 1

 

 

 

Specify the Begin and End Snapshot Ids

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Enter value for begin_snap: 228

Begin Snapshot Id specified: 228

 

Enter value for end_snap: 229

End Snapshot Id specified: 229

 

 

 

Specify the Report Name

~~~~~~~~~~~~~~~~~~~~~~~

The default report file name is awrrpt_1_228_229.html. To use this name,

press to continue, otherwise enter an alternative.

 

可以设置文件名,报告分析之后:我们可以在浏览器中查看报告(这里列出了数据库的整体运行情况,执行时间长的前几条SQL,,参数文件,等等,注意AWR只是一个报告,并不会帮助我们分析该如何优化,在后面的ADDM报告则会为我们提供优化的建议):

 

linux

相关标签:
最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号