statistics参数单位oracle,Oracle TIMED_STATISTICS 参数 说明

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]

VersionParameterTypeModifiable

11.1.0.7timed_statisticsBOOLEANALTER SESSION

ALTER SYSTEM (IMMEDIATE)

11.1.0.6timed_statisticsBOOLEANALTER SESSION

ALTER SYSTEM (IMMEDIATE)

10.2.0.4timed_statisticsBOOLEANALTER SESSION

ALTER SYSTEM (IMMEDIATE)

10.2.0.3timed_statisticsBOOLEANALTER SESSION

ALTER SYSTEM (IMMEDIATE)

10.1.0.5timed_statisticsBOOLEANALTER SESSION

ALTER SYSTEM (IMMEDIATE)

10.1.0.4timed_statisticsBOOLEANALTER SESSION

ALTER SYSTEM (IMMEDIATE)

9.2.0.8timed_statisticsBOOLEANALTER SESSION

ALTER SYSTEM (IMMEDIATE)

9.0.1.4timed_statisticsBOOLEANALTER SESSION

ALTER SYSTEM (IMMEDIATE)

8.1.7.4timed_statisticsBOOLEANALTER 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 includeCPU 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 参数的说明:

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里有说明:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值