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/