Home > Database > Mysql Tutorial > Oracle11生成AWR报告

Oracle11生成AWR报告

WBOY
Release: 2016-06-07 16:56:26
Original
830 people have browsed it

AWR报告的产生方法如下: 1,登陆Oracle数据库: sqlplus / as sysdba 2, 在sqlplus中,以sys用户运行下面的命令,

  AWR报告的产生方法如下:

  1,登陆Oracle数据库:

  sqlplus / as sysdba

  2, 在sqlplus中,以sys用户运行下面的命令,,生成第一份性能数据快照:

  exec DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT (flush_level=>'ALL');

  3,运行你找到的所有或很多性能较差的应用或SQL,让系统压力始终处于比较高的状态(如CPU或IO的使用),并保持此状态达到半小时到1小时

  4,在sqlplus中,以sys用户再次运行下面的命令,生成第二份性能数据快照:

  exec DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT (flush_level=>'ALL');

  5,在sqlplus中,以sys用户运行下面的命令,以产生性能报告:

  @?/rdbms/admin/awrrpt.sql

  根据提示,选择上面生成的2个性能数据快照,最后会生成一个最终的AWR性能报告。

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template