3.3.4 Performance Reports
SQL Developer for VS Code provides the following performance reports under the DBA node for reviewing database activity and workload information.
- Active Session History (ASH) Report: It provides a focused view of active database session activity for a selected time period. In SQL Developer for VS Code, you can generate an ASH report for a predefined period, such as the last 5, 10, 30, or 60 minutes, or specify a custom time range. You can also apply filters to narrow the report to specific database activity. The generated HTML report helps you review what active sessions were doing during the selected period, including session activity, wait information, sample time, and related performance details.
- Automatic Workload Repository (AWR) Report: It provides a summary of database workload and performance information between two AWR snapshots. In SQL Developer for VS Code, you can select a starting snapshot and an ending snapshot, generate an HTML report for that interval, review the report output in the viewer, and save it locally. The report helps you analyze database workload trends and performance characteristics captured by the database during the selected snapshot range.
3.3.4.1 Active Session History (ASH) Report
Use ASH Report to analyze active session activity for a selected time period.
Grant the following privileges to the database user that opens the report.
- grant select on DBA_HIST_DATABASE_INSTANCE to <user>;
- grant select on DBA_HIST_ACTIVE_SESS_HISTORY to <user>;
- grant execute on DBMS_WORKLOAD_REPOSITORY to <user>;
Perform the following steps to view an ASH report:
3.3.4.2 Automatic Workload Repository (AWR) Report
Use AWR Report to review database workload information between two Automatic Workload Repository snapshots.
Grant the following privileges to the database user that opens the
report.
- grant select on
DBA_HIST_SNAPSHOTto <user>; - grant execute on
DBMS_WORKLOAD_REPOSITORYto <user>;
Perform the following steps to view an AWR report:

