生成awr报告手动生成时间节点
在测试前,先生成一个时间节点,然后跑脚本,脚本结束后,再次运行生成时间节点;然后生成的报告,取得时间就是这2个时间段起始。
su - oracle
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Fri Sep 11 10:21:14 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> begin
2 dbms_workload_repository.create_snapshot();
3 end;
4 /
PL/SQL procedure successfully completed.
SQL> @?/rdbms/admin/awrrpt.sql (查看是否生成时间节点,如果生成 就可以正常去测试了)
==================
请使用下面的语句生产 数据库aw报告的时间节点
begin
dbms_workload_repository.create_snapshot();
end;
/


浙公网安备 33010602011771号