Export AWR Logs: Oracle Step-by-Step
To export AWR logs, you can use SQL*Plus or Enterprise Manager to follow these steps:
- Login to the Oracle database using an account with administrator privileges.
- Open a SQL*Plus session or log in to the Enterprise Manager console.
- View the ID of the current database instance:
- Choose the DBID from the V$DATABASE table.
- Check the start and end timestamp of the AWR logs that need to be exported. You can use the following query to retrieve the relevant information:
- Choose the SNAP_ID, BEGIN_INTERVAL_TIME, and END_INTERVAL_TIME
in the DBA_HIST_SNAPSHOT table. - Please make a note of the start and end timestamps for the AWR logs to be exported.
- Export AWR logs using the following command:
- Run the following in SQL*Plus:
@$ORACLE_HOME/rdbms/admin/awrrpt.sqlFollow the prompts to enter the database instance ID, start, and end time stamps.
- In the Enterprise Manager console:
a. Go to the “Databases” section, then select “Performance” > “AWR” > “AWR Reports”.
b. On the “AWR Reports” page, choose the time range of the AWR report to export.
c. Click the “Generate Report” button to generate the AWR report. - Save the generated AWR report to the desired location.
The steps above will assist you in exporting AWR logs for analysis and performance optimization. Please choose the appropriate tools and methods based on your needs.