本文共 633 字,大约阅读时间需要 2 分钟。
有个DBA朋友遇到需要分析性能问题,发现DB没有AWR快照???
观察MMON进程正常,手工创建SNAP 报错
参考
https://community.oracle.com/tech/apps-infra/discussion/342662/manual-snapshot-failure
You cannot run a Manual Snapshot if the System Snapshot Interval is set to 0Ensure you are loggoed in to the Database with user with SYSDBA privilege. Edit the Snapshot settings, view and correct the entry for System Snapshot Interval SQL>select * from dba_hist_wr_control;
确认是由于间隔时间0导致的问题,修改AWR间隔时间就可以了。
exec dbms_workload_repository.modify_snapshot_settings(interval=>60, retention=>30*24*30);
为什么间隔时间0,这套库之前的12C 升级至19C环境(可能内部自动调整后,升级后AWR快照并未自动调整回正常间隔)。 只能是猜测,MOS并未检索到信息。
转载地址:http://calyz.baihongyu.com/