Oracle等待事件Data file init write

Data file init write等待事件是10gR2后引入的,一般发生在创建或增加表空间的数据文件时,此时Oracle需要对新的系统块做格式化来提供给Oracle使用。

 

The "Data file init write" happens when you have "autoextend" set. What happens when "data file init write" takes place is that the job must wait while Oracle formats the new data blocks as the tablespace extends.

 

前几天同事在对应用表空间增加数据文件时,频繁看到该等待事件"Data file init write",且当时据现场的监控人员反映,应用系统性能也受到影响。所以在系统IO压力比较大的情况下,还是不建议进行大的数据库维护操作,即使我知道在99%的情况下,这个操作不会带来风险。

 

以下是trace信息:

 

WAIT #2: nam='Data file init write' ela= 115 count=1 intr=256 timeout=4294967295 obj#=-1 tim=20406554669936

WAIT #2: nam='Data file init write' ela= 9 count=1 intr=256 timeout=4294967295 obj#=-1 tim=20406554670047

WAIT #2: nam='Data file init write' ela= 17 count=1 intr=256 timeout=4294967295 obj#=-1 tim=20406554670188

WAIT #2: nam='Data file init write' ela= 9 count=1 intr=256 timeout=4294967295 obj#=-1 tim=20406554670303

WAIT #2: nam='Data file init write' ela= 1 count=0 intr=32 timeout=2147483647 obj#=-1 tim=20406554670320

WAIT #2: nam='Data file init write' ela= 97983 count=1 intr=32 timeout=2147483647 obj#=-1 tim=20406554768319

WAIT #2: nam='Data file init write' ela= 12 count=1 intr=256 timeout=4294967295 obj#=-1 tim=20406554768445

WAIT #2: nam='Data file init write' ela= 17 count=1 intr=256 timeout=4294967295 obj#=-1 tim=20406554768577

 

而在创建或增加临时表空间的临时文件时,则看不到此类等待。Oracle不必对系统块做格式化,这也是为什么即使在创建很大的tempfile,速度仍然很快的原因。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20750200/viewspace-708204/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/20750200/viewspace-708204/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值