awr报告命令

抓取awr报告命令
@?/rdbms/admin/awrrpt
生成快照
exec dbms_workload_repository.create_snapshot;
有时候生成失败原因为sid 找不到,先执行一下,指定sid
export ORACLE_SID=sid