Preparing Automatic Workload Repository (AWR) report - Windows - Oracle 10.2


Done in 2010


1. Copy files


awrrpt.sql
awrrpti.sql
awrinput.sql
awrinpnm.sql


from the server directory C:\oracle\product\10.2.0\db_1\RDBMS\ADMIN to the local client disk (e.g., to directory C:\AWR)


2. Create a file named connections.sql


conn system/master@<"ip adress">:1521/<"service name">;

@awrrpt.sql


3. Create a file named Run.bat


chcp 1251

sqlplus /nolog @connections.sql
exit;


Result:


Oracle DBA


4. Run run.bat. The program asks in which format to present the information.

Oracle DBA


5. For which period the information is of interest

Oracle DBA


6. Start and end snapshot for this period

Oracle DBA

Oracle DBA


7. Name for the report file being created. In this case report

Oracle DBA


8. Generated report.LST file. Rename it to report.html and run

Oracle DBA


9. Report prepared

Oracle DBA