Oracle 10g AWR Report Generation Process

Source: Internet
Author: User
Oracle 10g AWR Report Generation Process

Oracle10g provides an AWR Report, which is automatically recorded every hour by default. This report is useful in both performance testing and real-time production environments, briefly describe the process of obtaining the AWR report:

You can use sys/Manager (as sysdba) to log on
SQL> Conn/As sysdba
SQL> var snap_id number
SQL> Exec: snap_id: = dbms_workload_repository.create_snapshot
SQL> Print snap_id
Snap_id
----------
182 // Number of the currently generated Snapshot
SQL> @? /Rdbms/admin/awrrpt. SQL
The rdbms/admin/awrrpt. SQL file is an Oracle system file. You can first find the specific directory location (find/-name RDBMS-type D) in securecrt)
If an error reading file is not found when executing the preceding statement in PLSQL, you can copy all the files in the rdbms/Admin directory to the local machine and then run awrrpt on the local machine. SQL file.
Enter the value of report_type: <enter is of the HTML type by default>
Enter the num_days value: 1 // view the number of days snapshots are saved for 7 days by default.
Enter the begin_snap value: 181 // The start Number of the snapshot.
Enter the value of end_snap: 182 // The end number of the snapshot
Enter the value of report_name: <enter uses the default file name>
Stopped spooling to D: \ uninstalled SOFTWARE \ PLSQL developer 7.0.1 Chinese Version \ PLSQL developer \ awrrpt_10918109182.html (path of snapshot file storage)
Report written to awrrpt_0000180000182.html
SQL> exit
Download awrrpt_000018.0182.html and open it.

Related Article

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.