Time for action – using the ASH report from the standby database
From 11gR2 onwards, the Active Session History report can be created to monitor the performance of a standby database from the standby system. To use this feature, ensure that the database is up-and-running in the Read-Only
mode and the session history has retained the memory. Then, you can perform the following steps:
Generate an ASH report using the
ashrpt.sql
script. Before using this report you must know what parameters we have to pass while the report is running, for example, duration between two dates and times. Use theashrpt.sql
script as follows:SQL> @?/rdbms/admin/ashrpt.sql Current Instance ~~~~~~~~~~~~~~~~ DB Id DB Name Inst Num Instance ----------- ------------ -------- ------------ 1316772835 ORCL 1 INDIA You are running ASH report on a Standby database. To generate the report over data sampled on the Primary database, enter 'P'. Defaults to 'S' - data sampled in the Standby database...