OCP 1Z0 053 71
来源:互联网 发布:手机写网页软件 编辑:程序博客网 时间:2024/06/15 02:05
database. Your database is facing a series of interrelated problems over a period of two hours. You need
to ensure that the ADDM analysis is run over a time span of two hours in future. What would you do?
A. Create two custom ADDM tasks.
B. Modify the AWR snapshot time interval to two hours.
C. Create a new scheduler window for a time period of two hours.
D. Modify the Automatic Workload Repository (AWR) snapshot retention period to two hours.
Answer: B
默认分析一个小时的信息,如果想分析两个时的,改下间隔时间。
SQL> SELECT * FROM DBA_HIST_WR_CONTROL; DBID SNAP_INTERVAL RETENTION TOPNSQL---------- --------------------------------------- --------------------------------------- ----------1377411632 +00000 01:00:00.0 +00008 00:00:00.0 DEFAULT1 row selected
http://docs.oracle.com/cd/E11882_01/server.112/e41573/autostat.htm#PFGRF94187
5.3.1.3 Modifying Snapshot Settings
You can adjust the interval, retention, and captured Top SQL of snapshot generation for a specified database ID, but note that this can affect the precision of the Oracle Database diagnostic tools.
The INTERVAL
setting affects how often the database automatically generates snapshots. The RETENTION
setting affects how long the database stores snapshots in the workload repository. The TOPNSQL
setting affects the number of Top SQL to flush for each SQL criteria (Elapsed Time, CPU Time, Parse Calls, sharable Memory, and Version Count). The value for this setting is not affected by the statistics/flush level and will override the system default behavior for the AWR SQL collection. It is possible to set the value for this setting to MAXIMUM
to capture the complete set of SQL in the shared SQL area, though by doing so (or by setting the value to a very high number) may lead to possible space and performance issues because there will more data to collect and store. To adjust the settings, use the MODIFY_SNAPSHOT_SETTINGS
procedure. For example:
BEGIN DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS( retention => 43200, interval => 30, topnsql => 100, dbid => 3310949047);END;/
In this example, the retention period is specified as 43200 minutes (30 days), the interval between each snapshot is specified as 30 minutes, and the number of Top SQL to flush for each SQL criteria as 100. If NULL is specified, the existing value is preserved. The optional database identifier is 3310949047
. If you do not specify a value for dbid
, the local database identifier is used as the default value. You can check the current settings for your database instance with theDBA_HIST_WR_CONTROL
view.
- OCP 1Z0 053 71
- OCP 1Z0 051 71
- OCP 1Z0 052 71
- OCP 1Z0 053 1
- OCP 1Z0 053 2
- OCP 1Z0 053 3
- OCP 1Z0 053 4
- OCP 1Z0 053 5
- OCP 1Z0 053 6
- OCP 1Z0 053 7
- OCP 1Z0 053 8
- OCP 1Z0 053 9
- OCP 1Z0 053 10
- OCP 1Z0 053 11
- OCP 1Z0 053 12
- OCP 1Z0 053 13
- OCP 1Z0 053 14
- OCP 1Z0 053 15
- 编写一个程序,将文件打包,在需要解包。可以得到你想要的打包中的文件。
- iOS 删除文件夹下所有文件的方式
- pig 入门教程(1)
- 【Unity Shaders】Transparency —— 透明的cutoff shader
- C++ typedef用法小结
- OCP 1Z0 053 71
- Chromium源代码工程目录分析
- Linux -- 中删除指定日期之前的文件
- 《剑指offer》学习心得第二日
- pig入门教程(2)
- “惊群”,看看nginx是怎么解决它的
- 创建日志文件
- MySQL安装与主从复制配置
- sql文优化