오라클에서 실행계획을 보는 방법은 여러가지가 있습니다. 토드나 오렌지 등의 툴을 이용하면 간편하고 쉽지만 sql만을 사용해서 봐야 하는 경우가 종종 있습니다. 그럴 경우는 다음과 같이 sql을 사용하면 됩니다.
위와 같이 sql을 사용한 후 아래 sql을 실행시키면 실행계획을 볼 수 있습니다.
아래와 같은 방법도 있습니다.
explain plan for
select * from emp;
위와 같이 sql을 사용한 후 아래 sql을 실행시키면 실행계획을 볼 수 있습니다.
select * from table(dbms_xplan.display);
아래와 같은 방법도 있습니다.
explain plan
set statement_id = 'stmt1' for
select * from emp;
select * from table(dbms_xplan.display('plan_table','stmt1','all'));
select * from table(dbms_xplan.display('plan_table','stmt1','typical'));
select * from table(dbms_xplan.display('plan_table','stmt1','basic'));
Trackback URL : http://westzero.net/trackback/23
-
How long does vicodin stay in body.
Tracked from Vicodin. 2010/06/08 09:41
What is vicodin. Where to order vicodin with no prescription. Vicodin detox. Vicodin withdrawal symtoms.


당신의 의견을 작성해 주세요.