ITeye博客

oracle 中sql的跟踪优化

stop_ · 2007-09-11 09:43 · Markdown

在oracle中提供了丰富的sql优化和跟踪工具:

1:auto_trace

2.sql_trace+tkprof\

3.explain plan

这里写写使用explain plan.

1.在自己的用户名下面建立表plan_table

2.分析sql语句,命令如下:

explain plan set statement_id='1111'

into plan_table

for

sql语句;

然后提交数据

3.查询分析的结果:

select * from plan_table;

plan_table中字段的含义见file://E:\Tools\oracle8.05\DOC\database.804\a58246\explan.htm

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。