- 浏览: 150468 次
- 性别:
- 来自: 北京
最新评论
-
zizhi9999:
坑姐吧……这个 解压不了
java.lang.UnsatisfiedLinkError: /tmp/install.dir.4394/Linux/resource/jre/lib/i38 -
david_je:
db2look –d dbname -l –e –i us ...
DB2 备份及跨平台迁移 -
凤凰山:
很 好!
DB2 备份及跨平台迁移 -
rain2005:
...
linux 下修改时间的方法 -
zhou2008gang:
学习学习了
tcpdump 抓包命令 简例
一.生成AWR报告 注:报告生成在$ORACLE_HOME/rdbms/admin/目录下。 二.修改awr的默认设置
SQL> select * from dba_hist_wr_control; DBID SNAP_INTERVAL RETENTION
TOPNSQL
[ractest@sun880-1 /u01/app/oracle/orahome/rdbms/admin]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Sun Jan 27 20:47:38 2008
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> @awrrpt
......
//根据Oracle提示生成报告......
SQL>exec dbms_workload_repository.modify_snapshot_settings (interval=>30,retention =>3*24*60);
---------- ---------------------------- -------------------
----------
2420544136 +00000 02:00:00.0 +00005 00:00:00.0
DEFAULT
三.关闭AWR自动收集
注:10g默认是自动开启awr信息收集的,会对系统有一定的影响(很小);如果要关闭awr信息收集,只需设置interval参数为0即可。但interval设0后,AWR报告无法生成。
如下是:
Oracle 9i下,使用statspack生成性能报告。生成AWR报告的完整过程
Oracle 10g下,使用AWR生成性能报告,AWR报告需通过sys账户来生成。一个示例如下:
[oracle@testserver admin]$ pwd
/oracle/product/10g/rdbms/admin
[oracle@testserver admin]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 3月 18 09:33:44 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect /as sysdba
已连接。
SQL> @awrrpt
Current Instance
~~~~~~~~~~~~~~~~
DB Id DB Name Inst Num Instance
----------- ------------ -------- ------------
1986166942 KMS 1 kms
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'
输入 report_type 的值: text
Type Specified: text
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DB Id Inst Num DB Name Instance Host
------------ -------- ------------ ------------ ------------
* 1986166942 1 KMS kms testserver
Using 1986166942 for database Id
Using 1 for instance number
Specify the number of days of snapshots to choose from
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Entering the number of days (n) will result in the most recent
(n) days of snapshots being listed. Pressing <return> without
specifying a number lists all completed snapshots.
输入 num_days 的值: 5
Listing the last 5 days of Completed Snapshots
Snap
Instance DB Name Snap Id Snap Started Level
------------ ------------ --------- ------------------ -----
kms KMS 6634 14 3月 2010 00:00 1
6635 14 3月 2010 01:00 1
6636 14 3月 2010 02:00 1
6637 14 3月 2010 03:00 1
6638 14 3月 2010 04:00 1
6639 14 3月 2010 05:00 1
6640 14 3月 2010 06:00 1
6641 14 3月 2010 07:00 1
6642 14 3月 2010 08:00 1
6643 14 3月 2010 09:00 1
6644 14 3月 2010 10:00 1
6645 14 3月 2010 11:01 1
6646 14 3月 2010 12:01 1
6647 14 3月 2010 13:00 1
6648 14 3月 2010 14:00 1
6649 14 3月 2010 15:00 1
6650 14 3月 2010 16:00 1
6651 14 3月 2010 17:00 1
6652 14 3月 2010 18:00 1
6653 14 3月 2010 19:00 1
6654 14 3月 2010 20:00 1
6655 14 3月 2010 21:00 1
6656 14 3月 2010 22:00 1
6657 14 3月 2010 23:00 1
6658 15 3月 2010 00:00 1
6659 15 3月 2010 01:00 1
6660 15 3月 2010 02:00 1
6661 15 3月 2010 03:00 1
6662 15 3月 2010 04:00 1
6663 15 3月 2010 05:00 1
6664 15 3月 2010 06:00 1
6665 15 3月 2010 07:00 1
6666 15 3月 2010 08:00 1
6667 15 3月 2010 09:00 1
6668 15 3月 2010 10:00 1
6669 15 3月 2010 11:00 1
6670 15 3月 2010 12:00 1
6671 15 3月 2010 13:00 1
6672 15 3月 2010 14:00 1
6673 15 3月 2010 15:00 1
6674 15 3月 2010 16:00 1
6675 15 3月 2010 17:00 1
6676 15 3月 2010 18:00 1
6677 15 3月 2010 19:00 1
6678 15 3月 2010 20:01 1
6679 15 3月 2010 21:01 1
6680 15 3月 2010 22:01 1
6681 15 3月 2010 23:00 1
6682 16 3月 2010 00:00 1
6683 16 3月 2010 01:00 1
6684 16 3月 2010 02:00 1
6685 16 3月 2010 03:00 1
6686 16 3月 2010 04:00 1
6687 16 3月 2010 05:00 1
6688 16 3月 2010 06:00 1
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
输入 begin_snap 的值:
6634
Begin Snapshot Id specified: 6634
输入 end_snap 的值: 6681
End Snapshot Id specified: 6681
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_6634_6681.txt. To use this name,
press <return> to continue, otherwise enter an alternative.
输入 report_name 的值:
<此部分内容为生成的awrrpt报告的内容>
End of Report
Report written to awrrpt_1_6682_6739.txt
发表评论
-
博客搬家了
2012-11-24 17:25 641欢迎大家到我的新博客去做客 www ... -
获得表和索引DDL语句的方法
2011-12-24 16:45 1345获得单个表和索引DDL语句的方法 set hea ... -
对大表中数据去重的一种方法
2011-12-21 15:12 1075为了情节重现,先创建一个表为test01 ,很简单的两列 ... -
oracle exp出现ORA-06550 必须说明SET_NO_OUTLINES 组件 解决方法
2011-05-03 15:00 5221oracle 10.2G 在导出是出现: exp: Relea ... -
分布式事务故障处理
2011-02-17 15:46 1310分布式事务,简单来说,是指一个事务在本地和远程执行,本 ... -
ORA-14133: ALTER TABLE MOVE cannot be combined with other operations
2010-12-01 14:07 3643SQL> select tablespace_name ... -
ORACLE表批量迁移表空间
2010-12-01 13:14 1312第一步:将表迁移到 ... -
如何处理Oracle中TEMP表空间满的问题?
2010-10-29 15:13 1051转贴:from ORACLE技术中国用户讨论组 如何处理Or ... -
ORA-00257: archiver error. Connect internal only, until freed 错误的处理方法
2010-10-14 09:41 1180archive log 日志已满ORA-00257: arch ... -
oracle权限全集
2010-10-12 15:23 733alter any cluster 修改任意簇的权限 al ... -
oracle 中处理杀不掉的进程
2010-09-16 19:43 1724一些ORACLE中的进程被杀掉后,状态被置为"kil ... -
Oracle中创建同义词
2010-09-07 10:49 1209如果要为本用户创建同义词,必须具有“CREATE SYNONY ... -
ORA-27061: skgfospo: waiting for async I/Os failed
2010-07-30 13:32 2049刚刚IMP了大约60多万的 ... -
报ora-01144
2010-07-29 16:35 1225今天在solaris sparc10上安装单节点oracle1 ... -
如何生成Oracle AWR报告
2010-07-22 15:37 1881Oracle性能分析入门学习中,遇到Oracle数据库的性能问 ... -
恢复oracle中用pl sql误删除drop掉的表
2010-07-07 16:18 814查看回收站中表 select object_name,o ... -
Oracle用户被锁原因及办法
2010-07-05 10:35 1780Oracle用户被锁原因及办法 在登陆时被告知test用 ... -
如何在Oracle10g中启动和关闭OEM
2010-06-28 11:11 1213从Oracle10g开始,Oracle极大的增强了OEM工具, ... -
session_cached_cursors的详细解释
2010-06-28 10:44 1324SESSION_CACHED_CURSORS,就是 ... -
oracle参数-open_cursors
2010-06-28 10:37 1564open_cursors 指定一个会话一次可以打开的游 ...
相关推荐
AWR报告生成详解,详细介绍了ORACLE的AWR分析
ORACLE AWR报告生成
本文介绍Windows和Linux平台生成oracle awr报告方法,适合新手查阅。欢迎大家下载,如有建议和疑问可联系作者
window下直接调用生成弹出html格式的awr报告,不用去linux下了,但是妖之道数据库密码的啊,不然没法调用,修改里bat里的连接串即可 样例: sqlplus sys/oracle@zhengshiku_2 as sysdba @addmrpt.sql
对oracle的AWR报表生成和各项关键指标分析进行具体分析论述。
AWR报告生成和分析详解,对于报告中相关参数解析,分析数据库异常
在分析oracle数据库性能时,判断哪个语句的有问题,可以准确的定位出哪个sql有问题
最近想要通过awr观察下某个oracle实例的性能情况,碰到了在sqlplus执行awrrpt.sql到选择snapshot区间的时候无任何区间供选导致无法进一步生 成awr的情况,而且手动使用execute DBMS_WORKLOAD_REPOSITORY.CREATE_...
使用非常详尽的步骤,一步一步的指引我们在oracle 中如何生成一份awr报告
AWR报告生成手动配置,调整AWR配置,dbms_workload_repository包
脚本生成AWR报告步骤
oracle查看awr的详细介绍 AWR 是 Oracle 10g 版本 推出的新特性, 全称叫Automatic Workload Repository-自动负载信息库, AWR 是通过对比两次快,照(snapshot)收集到的统计信息,来生成报表数据,生成的报表包括多个...
AWR报告管理与分析,开启ORACLE性能优化之路。
性能测试过程中,我们会监控数据库资源,发现性能测试瓶颈在数据库后,需要打印oracle awr报告来定位问题,那我们如何打印awr报告呢?以下为生成awr步骤。1. 首先第一步查看实例:echo $ORACLE_SID 2. 赋值实例:...
AWR报告的生成、管理和分析,是一份不错的入门文档
Oracle的AWR报告生成方法,按照文档基本能生成,提供给大家参考
oracle awr报告分析 详细介绍如何生成awr报告以及如何分析awr报告的详细内容。
AWR 学习报告 学习资源讲解awr的生成和awr各个性能参数的讲解。
oracle 11G生成Awr报告个人分享如果存在问题请老师批评指正