메뉴 건너뛰기

tnt_db

공통 oracle 8i제공 explan table 생성 script

박상현 2004.05.08 23:42 조회 수 : 2493 추천:42

rem
rem $Header: utlxplan.sql big_dev/0 11-aug-95.14:02:45 achaudhr Exp $ xplainpl.sql
rem
Rem Copyright (c) 1988, 1995, 1996, 1998 by Oracle Corporation
Rem NAME
REM    UTLXPLAN.SQL
Rem  FUNCTION
Rem  NOTES
Rem  MODIFIED
Rem     mzait      02/19/98 -  add distribution method column
Rem     ddas       05/17/96 -  change search_columns to number
Rem     achaudhr   07/23/95 -  PTI: Add columns partition_{start, stop, id}
Rem     glumpkin   08/25/94 -  new optimizer fields
Rem     jcohen     11/05/93 -  merge changes from branch 1.1.710.1 - 9/24
Rem     jcohen     09/24/93 - #163783 add optimizer column
Rem     glumpkin   10/25/92 -  Renamed from XPLAINPL.SQL
Rem     jcohen     05/22/92 - #79645 - set node width to 128 (M_XDBI in gendef)
Rem     rlim       04/29/91 -         change char to varchar2
Rem   Peeler     10/19/88 - Creation
Rem
Rem This is the format for the table that is used by the EXPLAIN PLAN
Rem statement.  The explain statement requires the presence of this
Rem table in order to store the descriptions of the row sources.

create table PLAN_TABLE (
        statement_id         varchar2(30),
        timestamp            date,
        remarks              varchar2(80),
        operation            varchar2(30),
        options               varchar2(30),
        object_node          varchar2(128),
        object_owner         varchar2(30),
        object_name          varchar2(30),
        object_instance numeric,
        object_type     varchar2(30),
        optimizer       varchar2(255),
        search_columns  number,
        id                numeric,
        parent_id        numeric,
        position        numeric,
        cost                numeric,
        cardinality        numeric,
        bytes                numeric,
        other_tag       varchar2(255),
        partition_start varchar2(255),
        partition_stop  varchar2(255),
        partition_id    numeric,
        other                long,
        distribution    varchar2(30));



select b.emp_no, b.emp_nm, a.GRP_CD from a a, b b
where a.emp_no(+) = b.emp_no
  and a.emp_no = 'a'
번호 제목 글쓴이 날짜 조회 수
106 최단거리찾기 혹은 멀리 떨어진 두지점간의 거리의 합구하기 박상현 2006.11.07 3609
105 PL/SQL에서 쿼리시 Array Processing 처리방법 박상현 2006.10.27 3469
104 시간선분(선분이력)의 합집합 구하기 박상현 2006.06.13 4932
103 최대공약수, 최소공배수 구하기 박상현 2006.06.13 3479
102 문자열에서 특정 단어 갯수 구하기 박상현 2006.06.13 3359
101 소수(prime number) 구하기 박상현 2006.06.13 3307
100 달력 생성 쿼리 박상현 2006.06.13 3126
99 다중 Row 결과를 단일행으로 컴마로 분리해 출력하는 방법 (2) 박상현 2006.06.13 3816
98 다중 Row 결과를 단일행으로 컴마로 분리해 출력하는 방법 (1) 박상현 2006.06.13 3537
97 문자열 행으로 분리하기 박상현 2006.06.13 3552
96 TABLE,COLUMN,PROCEDURE 이름을 확인할때... 원우석 2006.03.10 2865
95 NESTED TABLE과 VARRAY사용법과 다른점 박상현 2005.11.03 8642
94 데이타 모델링(이화식 강의) 부분 목차정리. 박상현 2004.06.22 3124
» oracle 8i제공 explan table 생성 script 박상현 2004.05.08 2493
92 toad에서 사용가능한 explan_table생성 script 박상현 2004.05.08 6386
91 ORACLE -> MSSQL 시 LPAD 처리 운영자 2003.10.08 4051
90 plan table(sql실행계획) 보는 select문 운영자 2003.01.28 3831
89 java에서 array처리 방법 운영자 2003.01.27 6033
88 효율적인 25가지 SQL작성법 운영자 2003.01.04 2911
87 중복 data는 처음에만 display 하게 하는 방법 운영자 2002.11.23 2852
위로