[oracle@xb admin]$ sqlplus sys/oracle@pdb12c as sysdba
sys@PDB12C> @?/rdbms/admin/awrsqrpt.sql
Specify the Report Type ~~~~~~~~~~~~~~~~~~~~~~~ Would you like an HTML report, or a plain text report? Enter 'html' for an HTML report, or 'text' for plain text Defaults to 'html' Enter value for report_type:
Type Specified: html
Specify the location of AWR Data ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ AWR_ROOT - Use AWR data from root (default) AWR_PDB - Use AWR data from PDB Enter value for awr_location: AWR_PDB
Location of AWR Data Specified: AWR_PDB >>>>====这里选择的AWR_PDB
declare * ERROR at line 1: ORA-20200: Database/Instance 3393322654/1 does not exist in AWR_PDB_DATABASE_INSTANCE ORA-06512: at line 27
DB Id DB Name Inst Num Instance ----------- ------------ -------- ------------ 380590835 ORA12C 1 ora12c
...
Instances in this Workload Repository schema ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DB Id Inst Num DB Name Instance Host ------------ ---------- --------- ---------- ------ * 380590835 1 ORA12C ora12c xb.oracle.co
Using 380590835 for database Id Using 1 for instance number
Specify the Report Type ~~~~~~~~~~~~~~~~~~~~~~~ AWR reports can be generated in the following formats. Please enter the name of the format at the prompt. Default value is 'html'.
'html' HTML format (default) 'text' Text format 'active-html' Includes Performance Hub active report
Enter value for report_type:
Type Specified: html
Specify the location of AWR Data ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ AWR_ROOT - Use AWR data from root (default) AWR_PDB - Use AWR data from PDB Enter value for awr_location: AWR_PDB
Location of AWR Data Specified: AWR_PDB >>>>====选择AWR_PDB并未报错
...
Specify the number of days of snapshots to choose from ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Entering the number of days (n) will result in the most recent (n) days of snapshots being listed. Pressing >return> without specifying a number lists all completed snapshots.