oracle获取报告的命令
1.获取
@?/rdbms/admin/sqltrpt.sql
找到
2.获取awr报告的命令
@?/rdbms/admin/awrrpt.sql;
3.开启awr报告后,默认是要等待awr报告指定的间隔时间后系统自动创建快照,当然,也可以手动去创建快照,命令如下
exec dbms_workload_repository.create_snapshot();
4. 查看非绑定变量的sql ,限制表的大小为5000
SQL> set numwidth 20
SQL> select force_matching_signature,count(1)
from v$sql group by force_matching_signature having count(*) > 5000
order by count(1) desc;
查看具体是哪条sql
select sql_text from v$sql where force_matching_signature=11420119939742656807 and rownum<10;
5. 获取ash报告
@?/rdbms/admin/ashrpt.sql