you can use this script. in an non-interactive fashion without executing the script. through awrrpt, then do something similar to the following:
define inst_num = 1;
define num_days = 3;
define inst_name = 'testdb';
define db_name = 'testdb';
define dbid = 2591037507;
define sql_id = 'abcdefabcdefa';
define begin_snap = 71;
define end_snap = 72;
define report_type = 'text';
define report_name = awr_sql_report_71_72.txt
@@?/rdbms/admin/awrrpti.sql
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26942011/viewspace-764430/
,如需转载,请注明出处,否则将追究法律责任。