Oracle

게시글 보기
작성자 유건데이타 등록일 2015-05-18
제목 PARTITIONED TABLE, INDEX 의 PHYSICAL ATTRIBUTE 결정
SCOPE
-----
8~10g Standard Edition 에서는 Partitioning Option 은 지원하지 않는다.


PARTITIONED TABLE, INDEX 의 PHYSICAL ATTRIBUTE 결정
===================================================

Oracle8에서 처음 소개된 partitioned table, partitioned index에서,
각 table, index는 logical attribute들만을 정의하고 실제 physical
attribute들은 각 partition 별로 정의된다.
여기서는 이들 table partition, index partition (local or global)의
physical attribute가 어떻게 결정되는지를 살펴보도록 한다.

partitioned table에 대한 기본 개념은 다음의 자료를 참고한다.
bulletin:11269 'PARTITION TABLE 이란?'
partitioned table, partitioned index의 생성, 관리에 대한 syntax는
'Oracle8 Server SQL Reference' 를 참고한다.


Table Partitions
================

<생성 시>

* Tablespace *
각 partition 별 명시할 경우 : 각각 명시된 TS에 생성
Partition별 명시 않고 default를 지정할 경우 : Default TS에 모두 생성
전혀 지정하지 않을 경우 : User의 Default TS에 모두 생성

* 기타 Physical Attr. *
각 partition별 명시할 경우 : 각각 명시된 설정에 따름
Partition별 명시않고 default를 지정할 경우 : Default 설정에 따름
전혀 지정하지 않을 경우 : 각 partition이 위치할 TS의 default를 따름



dba_part_tables, user_part_tables에서 default값을 확인할 수 있음.

* Tablespace *
Default를 지정할 경우 : 지정된 TS
지정하지 않을 경우 : User의 Default TS

* 기타 Physical Attr. *
Default를 지정할 경우 : 지정된 값
지정하지 않을 경우 : 'DEFAULT'로 설정




ALTER TABLE ADD PARTITION 시
tablespace : 명시하지 않으면 위의 default값을 이용
기타 Physical Attr. : 명시하지 않으면 위의 default값을 이용
이 때, default가 'DEFAULT'로 설정되어 있다면, 생성되는
partition이 위치할 TS의 default storage를 이용

ALTER TABLE MOVE PARTITION 시
tablespace : 이동하고자 하는 TS
기타 Physical Attr. : 명시하지 않으면 해당 partition의 기존의
설정을 이용

ALTER TABLE SPLIT PARTITION 시
tablespace : 명시하지 않으면 split되는 partition이 있던 TS
기타 Physical Attr. : 명시하지 않으면 split되는 partition의
설정을 이용



Local Index Partitions
======================

<생성시>

* Tablespace *
각 partition 별 명시할 경우 : 각각 명시된 TS에 생성
Partition 별 명시 않고 default를 지정할 경우 : Default TS에 모두 생성
전혀 지정하지 않을 경우 : base table의 각 partition이 존재하는 TS에 각각 생성

* 기타 Physical Attr. *
각 partition별 명시할 경우 : 각각 명시된 설정에 따름
Partition별 명시않고 default를 지정할 경우 : Default 설정에 따름
전혀 지정하지 않을 경우 : 각 partition이 위치할 TS의 default를 따름



dba_part_indexes, user_part_indexes에서 default 값을 확인할 수 있음.

* Tablespace *
Default를 지정할 경우 : 지정된 TS
지정하지 않을 경우 : null

* 기타 Physical Attr. *
Default를 지정할 경우 : 지정된 값
지정하지 않을 경우 : 'DEFAULT'로 설정



ALTER TABLE ADD PARTITION 시
tablespace : index의 default가 있으면 이를 이용하고, default가
null이라면 추가되는 table partition이 위치하는 TS를 이용
기타 Physical Attr. : index의 default가 있으면 이를 이용하고
default가 'DEFAULT'로 설정되어 있다면, 생성되는 partition이
위치할 TS의 default storage를 이용

ALTER TABLE SPLIT PARTITION 시
tablespace : index의 default가 있으면 이를 이용하고, default가
null이라면 split된 table partition들이 위치하는 TS
기타 Physical Attr. : split되는 index partition의 physical attr.을
이용

ALTER INDEX MODIFY PARTITION
tablespace : 해당사항 없음.
기타 Physical Attr. : 명시되지 않은 것들은 변함이 없음

ALTER INDEX REBUILD PARTITION 시
tablespace : 명시되지 않으면 기존의 TS이용
기타 Physical Attr. : 명시되지 않으면 기존의 값들을 그대로 이용




Global Index Partitions
=======================

<생성 시>

* Tablespace *
각 partition 별 명시할 경우 : 각각 명시된 TS에 생성
Partition별 명시않고 default를 지정할 경우 : Default TS에 모두 생성
전혀 지정하지 않을 경우 : User의 Default TS에 모두 생성

* 기타 Physical Attr. *
각 partition별 명시할 경우 : 각각 명시된 설정에 따름
Partition별 명시않고 default를 지정할 경우 : Default 설정에 따름
전혀 지정하지 않을 경우 : 각 partition이 위치할 TS의 default를 따름



dba_part_indexes, user_part_indexes에서 default값을 확인할 수 있음.

* Tablespace *
Default를 지정할 경우 : 지정된 TS
지정하지 않을 경우 : User의 Default TS

* 기타 Physical Attr. *
Default를 지정할 경우 : 지정된 값
지정하지 않을 경우 : 'DEFAULT'로 설정



ALTER INDEX SPLIT PARTITION 시
tablespace : 명시하지 않을 경우 split되는 partition이 존재했던 TS
기타 Physical Attr. : 명시하지 않을 경우 split되는 partition의
설정을 이용
Comment
등록된 코멘트가 없습니다.