Archive for 1月 11th, 2006
Tkprof工具可用来格式化sql trace产生的文件,让你更容易看懂trace的内容
用法:
tkprof tracefile outputfile [explain= ] [table= ] [print= ] [insert= ] [sys= ] [sort= ]
参数说明:
tracefile:你要分析的trace文件
outputfile:格式化后的文件
explain=user/password@connectstring
table=schema.tablename
这两个参数是一起使用的,通过连接数据库对在trace文件中出现的每条sql语句查看执行计划,并将之输出到outputfile中
注意,该table必须是数据库中不存在的,如果存在会报错
Page 1 of 11