Q & A

다음 쿼리가 orange 내부 쿼리 인지 알고 싶습니다.

Date2009.11.19 / Hit : 7166

안녕하십니까.

ORACLE 10g(10.2.0.4) 에서 Orange for ORACLE Standard 를 사용중인데
ORACLE Log 확인중 오렌지 툴에서의 특정 쿼리에 대하여 관련 Error 가 발생합니다.

쿼리 내용을 보면 bind 변수가 포함되어 있는데
SQL*PLUS 에 직접 접근하여 실행하면 당연히 해당 bind 변수가 지정되어 있지 않다는 구문과함께 실행되지 않습니다.

혹시나 해서 오렌지에서 실행을 해보니 상태창에는 Running 이라고 나오면서
잠시 후 "ORA-03113: 통신 채널에 EOF 가 있습니다" 라는 메시지와 함께 DB 와의 접속이 종료됩니다.
추가적으로 ORACLE Log 에도 동일한 에러가 발생합니다.

여기서 의문점은 SQL*PLUS 에서 수행되지 않는 select 문이 오렌지에서는 Running 후 접속이 끊김과 동시에 ORCLE 에러가 떨어지기에 혹시 해당 쿼리가 오렌지에서 사용되는 쿼리인지 알고싶습니다.

쿼리 내용은 아래와 같습니다.
=============================================================================

select a.index_name,
  ' ' partition_name,
  ' ' subpartition_name,
  to_number('0') partition_position,
  to_number('0') subpartition_position,
  partitioning_type,
  subpartitioning_type,
  c.high_value,
  a.def_tablespace_name tablespace_name,
  a.def_pct_free pct_free,
  a.def_ini_trans ini_trans,
  a.def_max_trans max_trans,
  decode(a.def_initial_extent, 'DEFAULT', to_number(null), to_number(a.def_initial_extent)) initial_extent,
  decode(a.def_next_extent, 'DEFAULT', to_number(null), to_number(a.def_next_extent)) next_extent,
  decode(a.def_min_extents, 'DEFAULT', to_number(null), to_number(a.def_min_extents)) min_extents,
  decode(a.def_max_extents, 'DEFAULT', to_number(null), to_number(a.def_max_extents)) max_extents,
  decode(a.def_pct_increase, 'DEFAULT', to_number(null), to_number(a.def_pct_increase)) pct_increase,
  a.def_freelists freelists,
  a.def_freelist_groups freelist_groups,
  a.def_logging logging,
  ' ' compression,
  a.def_buffer_pool buffer_pool,
  ' ' tablespace_name,
  to_number(null) pct_free,
  to_number(null) ini_trans,
  to_number(null) max_trans,
  to_number(null) initial_extent,
  to_number(null) next_extent,
  to_number(null) min_extents,
  to_number(null) max_extents,
  to_number(null) pct_increase,
  to_number(null) freelists,
  to_number(null) freelist_groups,
  ' ' logging,
  ' ' buffer_pool,
  a.locality,
  b.generated,
  ' ' generated
from ALL_PART_INDEXES A,
  ALL_INDEXES B,
  (
    select high_value
    from ALL_IND_PARTITIONS
    where index_owner = :owner
      and index_name = :idx
      and partition_position = 1) c
where a.owner = b.owner
  and a.index_name = b.index_name
  and b.owner = :owner
  and b.index_type != 'LOB'
  and b.partitioned = 'YES'
  and a.index_name = :idx
union all
select a.index_name,
  a.partition_name,
  s.subpartition_name,
  a.partition_position,
  s.subpartition_position,
  ' ' partition_type,
  ' ' subpartition_type,
  a.high_value,
  a.tablespace_name,
  a.pct_free,
  a.ini_trans,
  a.max_trans,
  a.initial_extent,
  a.next_extent,
  a.min_extent,
  a.max_extent,
  a.pct_increase,
  a.freelists,
  a.freelist_groups,
  a.logging,
  a.compression,
  a.buffer_pool,
  s.tablespace_name,
  s.pct_free,
  s.ini_trans,
  s.max_trans,
  s.initial_extent,
  s.next_extent,
  s.min_extent,
  s.max_extent,
  s.pct_increase,
  s.freelists,
  s.freelist_groups,
  s.logg

  • 대표전화
    1660-1675

  • 기술 문의
    02-6931-1734

  • 오렌지 문의
    070-8666-8175

  • 라이선스 문의
    02-6931-1728