{"id":456,"date":"2014-01-27T13:37:21","date_gmt":"2014-01-27T22:37:21","guid":{"rendered":"\/blog\/?p=456"},"modified":"2023-09-21T09:38:46","modified_gmt":"2023-09-21T00:38:46","slug":"oracle-partition-table-%ec%84%a4%eb%aa%85","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=456","title":{"rendered":"Oracle Partition Table \uc124\uba85"},"content":{"rendered":"\n<p><b><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">\u25a0 \ud30c\ud2f0\uc158 \ud14c\uc774\ube14\uc774\ub780...<\/span><\/b><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">\ud14c\uc774\ube14\uc744 \uceec\ub7fc\ubcc4\ub85c \ucabc\uac1c\uc5b4 \uac01\uac01\uc758 \ubb3c\ub9ac\uc801 \ud14c\uc774\ube14\uc2a4\ud398\uc774\uc2a4\ub85c \ubd84\uc0b0<\/span><br \/><br \/><br \/><br \/><b><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">\u25a0 \ud30c\ud2f0\uc158 \ud14c\uc774\ube14 \uc7a5\uc810<\/span><\/b><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">- \ub370\uc774\ud130 \uc561\uc138\uc2a4\uc2dc \ubc94\uc704\ub97c \uc904\uc5ec Performance \ud5a5\uc0c1\uc744 \uac00\uc838\uc62c \uc218 \uc788\uc74c.<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">- \uc5ec\ub7ec \ubd84\ud560 \uc601\uc5ed\uc73c\ub85c \uad00\ub9ac\ub418\uc5b4 \ub370\uc774\ud130 \ud6fc\uc190 \uac00\ub2a5\uc131\uc774 \uac10\uc18c \ub418\uace0, I\/O \uc131\ub2a5 \ud5a5\uc0c1\uc744 \uac00\uc838 \uc62c \uc218 \uc788\uc74c.<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">- \uac01 \ubd84\ud560 \uc601\uc5ed\uc744 \ub3c5\ub9bd\uc801\uc73c\ub85c \ubc31\uc5c5\ud558\uace0 \ubcf5\uad6c \ud560 \uc218 \uc788\uc74c.<\/span><br \/><br \/><br \/><br \/><b><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">\u25a0 \ud30c\ud2f0\uc158 \ud14c\uc774\ube14 \uc0dd\uc131 \uc608 (<span style=\"color: rgb(255, 0, 0);\">Range Partition<\/span>)<\/span><\/b><br \/><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">CREATE TABLE TBL_PARTITION_TEST1<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">(<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;COLUMN_1 NUMBER NOT NULL,<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;COLUMN_2 VARCHAR(30),<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;COLUMN_3 INTEGER, <span style=\"color: rgb(140, 140, 140);\">-- PARTITION_01<\/span><\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;COLUMN_4 INTEGER, <span style=\"color: rgb(140, 140, 140);\">-- PARTITION_02<\/span><\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;COLUMN_5 INTEGER, <span style=\"color: rgb(140, 140, 140);\">-- PARTITION_03<\/span><\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;COLUMN_6 VARCHAR(50)<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">)<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\"><b>PARTITION BY RANGE<\/b> (COLUMN_3, COLUMN_4, COLUMN_5)<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">(<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;<span style=\"color: rgb(140, 140, 140);\">-- (COLUMN_3 &lt; 2010) and (COLUMN_4 &lt; 05) and (COLUMN_5 &lt; 30) \uc774\uba74 TS_PARTITION_TEST2\uc5d0 \uae30\ub85d<\/span><\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;PARTITION PARTITION_01 VALUES LESS THAN (2010, 05, 30) TABLESPACE TS_PARTITION_TEST2,<\/span><br \/><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;<span style=\"color: rgb(140, 140, 140);\">-- (COLUMN_3 &lt; 2011) and (COLUMN_4 &lt; 05) and (COLUMN_5 &lt; 30) \uc774\uba74 TS_PARTITION_TEST2\uc5d0 \uae30\ub85d<\/span><\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;PARTITION PARTITION_02 VALUES LESS THAN (2011, 05, 30) TABLESPACE TS_PARTITION_TEST2,<\/span><br \/><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;<span style=\"color: rgb(140, 140, 140);\">-- (COLUMN_3 &lt; 2012) and (COLUMN_4 &lt; 05) and (COLUMN_5 &lt; 30) \uc774\uba74 TS_PARTITION_TEST3\uc5d0 \uae30\ub85d<\/span><\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;PARTITION PARTITION_03 VALUES LESS THAN (2012, 05, 30) TABLESPACE TS_PARTITION_TEST3<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">) TABLESPACE TS_PARTITION_TEST1;<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">\u261e \uc124\uba85 :<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">- COLUNM_3, COLUNM_4, COLUNM_5\uc758 \uac12\uc5d0 \ub530\ub77c \ud30c\ud2f0\uc154\ub2dd\uc744 \ud558\ub294 \uad6c\uc870.<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">- MAXVALUE \uac12\uc774 \ub0ae\uc740 \uc21c\uc11c\ubd80\ud130 \ud30c\ud2f0\uc158\uc744 \uae30\uc220\ud574\uc57c \ud55c\ub2e4.<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">- \uae30\ubcf8 \ud14c\uc774\ube14\uc2a4\ud398\uc774\uc2a4\ub294 TS_PARTITION_TEST1<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">- INSERT\ub418\ub294 \uac12\uc5d0 \ub530\ub77c \uc800\uc7a5\ub420 \ud14c\uc774\ube14\uc2a4\ud398\uc774\uc2a4\uac00 \uc815\ud574\uc9c4\ub2e4.<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">- \ub2e4\uc74c\uacfc \uac19\uc774 \ud558\uc5ec \ud30c\ud2f0\uc158\uc744 \ucd94\uac00\ud560 \uc218 \uc788\ub2e4.<\/span><br \/><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">ALTER TABLE TBL_PARTITION_TEST1 ADD PARTITION PARTITION_04 VALUES LESS THAN (2013, 05, 30) TABLESPACE TS_PARTITION_TEST2;<\/span><br \/><br \/><br \/><br \/><b><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">\u25a0 \ud30c\ud2f0\uc158 \ud14c\uc774\ube14 \uc0dd\uc131 \uc608 (<span style=\"color: rgb(9, 0, 255);\">Hash Partition<\/span>)<\/span><\/b><br \/><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">CREATE TABLE TBL_PARTITION_TEST1<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">(<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;COLUMN_1 NUMBER NOT NULL,<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;COLUMN_2 VARCHAR(30),<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;COLUMN_3 INTEGER, <span style=\"color: rgb(140, 140, 140);\">-- PARTITION_01<\/span><\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;COLUMN_4 INTEGER, <span style=\"color: rgb(140, 140, 140);\">-- PARTITION_02<\/span><\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;COLUMN_5 INTEGER, <span style=\"color: rgb(140, 140, 140);\">-- PARTITION_03<\/span><\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;COLUMN_6 VARCHAR(50)<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">)<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\"><b>PARTITION BY HASH<\/b> (COLUMN_3, COLUMN_4, COLUMN_5)<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">(<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt; color: rgb(140, 140, 140);\">&nbsp;-- TS_PARTITION_TEST2\uc5d0 \uae30\ub85d<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;PARTITION PARTITION_01 TABLESPACE TS_PARTITION_TEST2,<\/span><br \/><br \/><span style=\"font-family: Courier New; font-size: 10pt; color: rgb(140, 140, 140);\">&nbsp;-- TS_PARTITION_TEST2\uc5d0 \uae30\ub85d<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;PARTITION PARTITION_02 TABLESPACE TS_PARTITION_TEST2,<\/span><br \/><br \/><span style=\"font-family: Courier New; font-size: 10pt; color: rgb(140, 140, 140);\">&nbsp;-- TS_PARTITION_TEST3\uc5d0 \uae30\ub85d<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">&nbsp;PARTITION PARTITION_03 TABLESPACE TS_PARTITION_TEST3<\/span><br \/><span style=\"font-family: Courier New; font-size: 10pt;\">) TABLESPACE TS_PARTITION_TEST1;<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">\u261e \uc124\uba85 :<\/span><br \/><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">- COLUNM_3, COLUNM_4, COLUNM_5\uc744 \ud0a4\uc758 \ud574\uc26c\uac12\uc5d0 \ub530\ub77c \ud30c\ud2f0\uc154\ub2dd\uc744 \ud558\ub294 \uad6c\uc870.<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">- \uac01 \ud30c\ud2f0\uc158\ub9c8\ub2e4 \uace0\uc720\uc758 \ud574\uc26c\uac12\uc774 \ud560\ub2f9 \ub41c\ub2e4.<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">- \uc131\ub2a5\uc774 \ud5a5\uc0c1\ub41c\ub2e4.<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">- \uae30\ubcf8 \ud14c\uc774\ube14\uc2a4\ud398\uc774\uc2a4\ub294 TS_PARTITION_TEST1<\/span><br \/><span style=\"font-family: Gulim,\uad74\ub9bc,AppleGothic,sans-serif; font-size: 10pt;\">- \ud574\uc26c \uac12\uc5d0 \ub530\ub77c \uc800\uc7a5\ub420 \ud14c\uc774\ube14\uc2a4\ud398\uc774\uc2a4\uac00 \uc815\ud574\uc9c4\ub2e4.<\/span><br \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0 \ud30c\ud2f0\uc158 \ud14c\uc774\ube14\uc774\ub780&#8230; \ud14c\uc774\ube14\uc744 \uceec\ub7fc\ubcc4\ub85c \ucabc\uac1c\uc5b4 \uac01\uac01\uc758 \ubb3c\ub9ac\uc801 \ud14c\uc774\ube14\uc2a4\ud398\uc774\uc2a4\ub85c \ubd84\uc0b0 \u25a0 \ud30c\ud2f0\uc158 \ud14c\uc774\ube14 \uc7a5\uc810 &#8211; \ub370\uc774\ud130 \uc561\uc138\uc2a4\uc2dc \ubc94\uc704\ub97c \uc904\uc5ec Performance \ud5a5\uc0c1\uc744 \uac00\uc838\uc62c \uc218 \uc788\uc74c.- \uc5ec\ub7ec \ubd84\ud560 \uc601\uc5ed\uc73c\ub85c \uad00\ub9ac\ub418\uc5b4 \ub370\uc774\ud130 \ud6fc\uc190 \uac00\ub2a5\uc131\uc774 \uac10\uc18c \ub418\uace0, I\/O \uc131\ub2a5 \ud5a5\uc0c1\uc744 \uac00\uc838 \uc62c \uc218 \uc788\uc74c.- \uac01 \ubd84\ud560 \uc601\uc5ed\uc744 \ub3c5\ub9bd\uc801\uc73c\ub85c \ubc31\uc5c5\ud558\uace0 \ubcf5\uad6c \ud560 \uc218 \uc788\uc74c. \u25a0 \ud30c\ud2f0\uc158 \ud14c\uc774\ube14 \uc0dd\uc131 \uc608 (Range [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[10],"tags":[],"class_list":["post-456","post","type-post","status-publish","format-standard","hentry","category-computing_database"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=456"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/456\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}