6.3 Using the Automatic Workload Repository for True Cache
You can use the Automatic Workload Repository (AWR) to gather performance statistics for True Cache.
AWR snapshots for True Cache are enabled by default. Snapshots are automatically captured hourly.
You can also manually create a snapshot. For example:
// Create snapshots (snap_id 0 means failure)
SELECT DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT FROM dual;
To generate an AWR snapshot report, complete the following steps on either the primary database or the True Cache:
-
Go to the
$ORACLE_HOMEdirectory and run the following script:-
On True Cache:
@?/rdbms/admin/awrrpt.sql -
On the primary database:
@?/rdbms/admin/awrrpti.sql
-
-
Specify whether you want an HTML or a text report. For example:
Enter value for report_type: textThe output displays a list of available database identifiers and instance numbers.
-
If you're generating the report on the primary database, enter the database identifier (
dbid)and instance number (inst_num)for True Cache. For example:Enter value for dbid: 3309173529 Using 3309173529 for database Id Enter value for inst_num: 1To get the
dbidfor True Cache, run the following query on the True Cache:SELECT DBMS_WORKLOAD_REPOSITORY.GET_AWR_ID() FROM dual;This step is not required if you're generating the report on True Cache because the
awrrpt.sqlscript automatically derives thedbidof the local node. -
Specify the number of days for which you want to list snapshot IDs. For example:
Enter value for num_days: 2The output displays a list of existing snapshots for the specified time range.
-
Specify beginning and ending snapshot IDs for the workload repository report. For example:
Enter value for begin_snap: 150 Enter value for end_snap: 160 -
Enter a report name or accept the default report name. For example:
Enter value for report_name: Using the report name awrrpt_1_150_160