本文主要是介绍查询AWR保存策略与创建的快照,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
--查询AWR保存策略
SYS@PROD1> select * from dba_hist_wr_control;DBID SNAP_INTERVAL RETENTION TOPNSQL
---------- -------------------- -------------------- ----------
2133791648 +00000 01:00:00.0 +00008 00:00:00.0 DEFAULT--查询快照
SYS@PROD1> select distinct snap_id from sys.wrh$_active_session_history;SNAP_ID
----------49850449451852249750050252349549649950550951052151651950750851251351450351151752050151552430 rows selected.SYS@PROD1> exec dbms_workload_repository.create_snapshot;PL/SQL procedure successfully completed.SYS@PROD1> select distinct snap_id from sys.wrh$_active_session_history;SNAP_ID
----------49850449451852249750050252349549649950550951052151651950750851251351452550351151752050151552431 rows selected.
这篇关于查询AWR保存策略与创建的快照的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!