Posts Tagged ‘Tkprof’

Oracle工具篇之Tkprof

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

    搜索本站

    站点日历

    2月 2012
    « 4    
     12345
    6789101112
    13141516171819
    20212223242526
    272829  

    订阅本站

    文章分类

    最新日志

    热点文章

    日志存档

    常用标签