Oracle TIMED_STATISTICS 参数 说明

news/2025/4/22 2:28:14

 

MOS上有关TIMED_STATISTICS参数说明:

Init.ora Parameter "TIMED_STATISTICS" Reference Note [ID 30824.1]

Health CheckAlert: Consider setting TIMED_STATISTICS and STATISTICS_LEVEL to recommendedlevels [ID 957433.1]

 

 

Version

Parameter

 

Type

Modifiable

11.1.0.7

timed_statistics

BOOLEAN

ALTER SESSION
ALTER SYSTEM (IMMEDIATE)

11.1.0.6

timed_statistics

BOOLEAN

ALTER SESSION
ALTER SYSTEM (IMMEDIATE)

10.2.0.4

timed_statistics

BOOLEAN

ALTER SESSION
ALTER SYSTEM (IMMEDIATE)

10.2.0.3

timed_statistics

BOOLEAN

ALTER SESSION
ALTER SYSTEM (IMMEDIATE)

10.1.0.5

timed_statistics

BOOLEAN

ALTER SESSION
ALTER SYSTEM (IMMEDIATE)

10.1.0.4

timed_statistics

BOOLEAN

ALTER SESSION
ALTER SYSTEM (IMMEDIATE)

9.2.0.8

timed_statistics

BOOLEAN

ALTER SESSION
ALTER SYSTEM (IMMEDIATE)

9.0.1.4

timed_statistics

BOOLEAN

ALTER SESSION
ALTER SYSTEM (IMMEDIATE)

8.1.7.4

timed_statistics

BOOLEAN

ALTER SESSION
ALTER SYSTEM (IMMEDIATE)

 

TIMED_STATISTICSspecifies whether or not statistics related to time are collected. It isimportant to set TIMED_STATISTICS=TRUE for obtaining timing information whichwill help in tuning the database.

--TIMED_STATISTICS 指定是否收集于时间相关的统计信息,当设置为TURE时会获取有关时间的更多信息,从而帮助我们来优化DB.

 

有如下三种方法来设置该参数:

(1)初始化参数

The parameter can be set in theinitialisation file e.g.

timed_statistics= TRUE

 

(2)system 级别:

This parameter can be set at system levele.g.

ALTER SYSTEM SETtimed_statistics = TRUE

 

(3)session 级别:

This parameter can be set at session levele.g.

   ALTER SESSION SET timed_statistics = TRUE

 

 

When TIMED_STATISTICS is enabled statistics are generated for the following:

(1)PARSE, EXEC and FETCH CPU costs intrace files

(2)V$WAITSTAT

(3)V$FILESTAT and V$TEMPSTAT

(4)V$SYSSTAT and V$SESSTAT timedstatistics

 

Statistics affected by enabling TIMED_STATISTICS include

CPU used when call started

CPU used by this session

parse time cpu

parse time elapsed

redo write time

session connect time

 

Wait times arerecorded in V$SESSION_EVENT, V$SYSTEM_EVENT and V$SESSION_WAIT irrespective ofthe setting of TIMED_STATISTICS (9.2.0)

 

关于该参数的默认值,在官网上有关TIMED_STATISTICS 参数的说明:

http://docs.oracle.com/cd/E11882_01/server.112/e25513/initparams255.htm#REFRN10218

 

If STATISTICS_LEVEL is set to TYPICAL or ALL,then true

If STATISTICS_LEVEL is set to BASIC,then false

 

如果STATISTICS_LEVEL 设置为TYPICAL或者ALL,那么TIMED_STATISTICS 则默认为true。 如果STATISTICS_LEVEL设置为BASIC,则TIMED_STATISTICS 默认为false。

 

MOS上对STATISTICS_LEVEL的说明:

STATISTICS_LEVELspecifies the level of collection for the database and operating systemstatistics. The Oracle Database collects these statistics for a variety ofreasons, including making self-management decisions. Setting theSTATISTICS_LEVEL parameter to BASIC disables the collection of many importantstatistics required by Oracle Database features and functionality.STATISTICS_LEVEL=ALL should only be set for diagnostic purposes as required.

 

有关该参数在之前整理的Blog里有说明:

Oracle Statistic 统计信息 小结

http://www.cndba.cn/Dave/article/1595

 

 

 

 

 

 

-------------------------------------------------------------------------------------------------------

版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!

QQ:492913789

Email:ahdba@qq.com

Blog:  http://www.cndba.cn/dave

Weibo:    http://weibo.com/tianlesoftware

Twitter:  http://twitter.com/tianlesoftware

Facebook: http://www.facebook.com/tianlesoftware

Linkedin: http://cn.linkedin.com/in/tianlesoftware


 

-------加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请----

DBA1 群:62697716(满);   DBA2 群:62697977(满)  DBA3 群:62697850(满)  

DBA 超级群:63306533(满);  DBA4 群:83829929   DBA5群: 142216823

DBA6 群:158654907    DBA7 群:172855474  


https://dhexx.cn/news/show-2339555.html

相关文章

控制 html元素 显示/隐藏

1。编写js函数<script type"text/javascript">function display(y){$(y).style.display($(y).style.display"none")?"":"none";} function $(s){return document.getElementById(s);} </script> 2. 要显示/隐藏的html元素…

Oracle Resource Manager 概述

官网的链接说明 About Oracle Database Resource Manager http://docs.oracle.com/cd/E11882_01/server.112/e25494/dbrm001.htm#i1007556 一. Solutions Does the Resource ManagerProvide for Workload Management? When databaseresource allocation decisions are left…

日期类的加减及java中所以日期类的操作算法大全

1.计算某一月份的最大天数1Calendar timeCalendar.getInstance();2time.clear();3time.set(Calendar.YEAR,year); //year 为 int 4time.set(Calendar.MONTH,i-1);//注意,Calendar对象默认一月为0 5int daytime.getActualMaximum(Calendar.DAY_OF_MONTH);//本月份的天…

Linux 下Oracle 开机自启动 与 oratab, dbstart 脚本 说明

一./etc/oratab说明 直接使用cat 查看这个文件&#xff1a; gg1:/home/oracle> cat /etc/oratab ## This file is used by ORACLEutilities. It is created by root.sh # and updated by the Database ConfigurationAssistant when creating # a database.# A colon, :, i…

解析properties资源文件

[/code][code"java"]import java.io.FileInputStream;import java.io.FileOutputStream;import java.util.HashMap;import java.util.Iterator;import java.util.Properties;/** *//** * 功能&#xff1a;解析资源文件 * */public class PropertyUtil { private P…

DWR中直接获取一个JAVA类的返回值

function Test(){ var _data ""; this.getString function() { //设置成同步 DWREngine.setAsync(false); //调用Java类Test的getString方法&#xff0c;callBackFun为回调函数 JTest.getString(function(data){_data data;}); …

Oracle 11gR2 新特性 概述

官网的说明链接如下&#xff1a; http://docs.oracle.com/cd/E11882_01/server.112/e22487/toc.htm 一. 11.2.0.1新特性 This chapter containsdescriptions of all of the features that are new to Oracle 11g Database,Release 2. This chapter contains the following se…

Filebeat的工作原理—官方原版

一、概述 Filebeat是一个轻量级的转发器&#xff0c;用于转发和集中日志数据。Filebeat作为代理安装在您的服务器上&#xff0c;它监视您指定的日志文件或位置&#xff0c;收集日志事件&#xff0c;并将它们转发到Elasticsearch或Logstash进行索引。 Filebeat的工作原理如下&…

JavaScript中String去掉空格Trim方法

方法一: 个人认为最好的方法.采用的是正则表达式,这是最核心的原理. 其次.这个方法使用了JavaScript 的prototype 属性// Trim() , Ltrim() , RTrim()String.prototype.Trim function(){ return this.replace(/(^\s*)|(\s*$)/g, ""); } String.prototype.LTrim fun…

Oracle 11g中 ADD COLUMN 功能增强 说明

一. Enhanced ADD COLUMN 说明 在Oracle 11gR1中&#xff0c;Oracle 对add column 进行了增强。 官网的说明地址&#xff1a; http://docs.oracle.com/cd/B28359_01/server.111/b28279/chapter1.htm#NEWFTCH1 1.1 Enhanced ADD COLUMN Functionality Default valuesof colu…