Oracle11 generates an AWR report

Source: Internet
Author: User
The AWR report is generated as follows: 1. log on to the Oracle database: sqlplusassysdba2. In sqlplus, run the following command as a sys user,

The AWR report is generated as follows: 1. log on to the Oracle database: sqlplus/as sysdba 2. In sqlplus, run the following command as a sys user,

The AWR report is generated as follows:

1. log on to the Oracle database:

Sqlplus/as sysdba

2. In sqlplus, run the following command as sys to generate the first performance data snapshot:

Exec DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT (flush_level => 'all ');

3. Run all or many of the applications or SQL statements you have found with poor performance to keep the system under high pressure (such as CPU or IO usage ), and keep this status from half an hour to one hour.

4. In sqlplus, run the following command again to generate a second performance data snapshot:

Exec DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT (flush_level => 'all ');

5. In sqlplus, run the following command as sys to generate a performance report:

@? /Rdbms/admin/awrrpt. SQL

As prompted, select the two generated performance data snapshots and generate a final AWR performance report.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.