Slide 77
Slide 77 text
拡張されたパーティション化のメタデータ
利用イメージ(リスト・パーティション)
77 Copyright © 2023, Oracle and/or its affiliates
CREATE TABLE q1_sales_by_region (deptno number, ... state varchar2(2))
PARTITION BY LIST (state)
( PARTITION q1_northwest VALUES ('OR', 'WA'),
PARTITION q1_southwest VALUES ('AZ', 'UT', 'NM'),
PARTITION q1_northeast VALUES ('NY', 'VM', 'NJ'),
PARTITION q1_southeast VALUES ('FL', 'GA'),
PARTITION q1_northcentral VALUES ('SD', 'WI'),
PARTITION q1_southcentral VALUES ('OK', 'TX'));
SQL> set linesize 140 long 100 longchunksize 100
SQL> select TABLE_NAME,PARTITION_NAME,HIGH_VALUE_CLOB from USER_TAB_PARTITIONS where TABLE_NAME='Q1_SALES_BY_REGION';
TABLE_NAME PARTITION_NAME HIGH_VALUE_CLOB
-------------------- --------------- ------------------------------------------------------------------------------------
Q1_SALES_BY_REGION Q1_NORTHWEST 'OR', 'WA'
Q1_SALES_BY_REGION Q1_SOUTHWEST 'AZ', 'UT', 'NM'
Q1_SALES_BY_REGION Q1_NORTHEAST 'NY', 'VM', 'NJ'
Q1_SALES_BY_REGION Q1_SOUTHEAST 'FL', 'GA'
Q1_SALES_BY_REGION Q1_NORTHCENTRAL 'SD', 'WI'
Q1_SALES_BY_REGION Q1_SOUTHCENTRAL 'OK', 'TX'
SQL> select TABLE_NAME,PARTITION_NAME,HIGH_VALUE_JSON from USER_TAB_PARTITIONS where TABLE_NAME='Q1_SALES_BY_REGION';
TABLE_NAME PARTITION_NAME HIGH_VALUE_JSON
-------------------- --------------- ------------------------------------------------------------------------------------
Q1_SALES_BY_REGION Q1_NORTHCENTRAL {"high_value":["SD","WI"]}
Q1_SALES_BY_REGION Q1_NORTHEAST {"high_value":["NY","VM","NJ"]}
Q1_SALES_BY_REGION Q1_NORTHWEST {"high_value":["OR","WA"]}
Q1_SALES_BY_REGION Q1_SOUTHCENTRAL {"high_value":["OK","TX"]}
Q1_SALES_BY_REGION Q1_SOUTHEAST {"high_value":["FL","GA"]}
Q1_SALES_BY_REGION Q1_SOUTHWEST {"high_value":["AZ","UT","NM"]}