Interval Partition table 11G
Interval Partitioning
Interval partitioning is an extension of range partitioning which instructs the database to automatically create partitions of a specified interval when data inserted into the table exceeds all of the existing range partitions. You must specify at least one range partition. The range partitioning key value determines the high value of the range partitions, which is called the transition point, and the database creates interval partitions for data beyond that transition point. The lower boundary of every interval partition is the non-inclusive upper boundary of the previous range or interval partition.
CREATE TABLE salestable
(s_productid NUMBER,
s_saledate DATE,
s_custid NUMBER,
s_totalprice NUMBER)
PARTITION BY RANGE(s_saledate)
INTERVAL(NUMTOYMINTERVAL(1,'MONTH')) STORE IN (tbs1,tbs2,tbs3,tbs4)
(PARTITION sal05q1 VALUES LESS THAN (TO_DATE('01-APR-2005', 'DD-MON-YYYY'))
TABLESPACE tbs1,
PARTITION sal05q2 VALUES LESS THAN (TO_DATE('01-JUL-2005', 'DD-MON-YYYY'))
TABLESPACE tbs2);
The following example shows how to change the sales table in the sample sh schema from range partitioning to start using monthly interval partitioning.
ALTER TABLE sales SET INTERVAL (NUMTOYMINTERVAL(1,'MONTH'));
將已有範圍分割槽表變為interval partition table,注意不能有MAXVALUE值
ALTER TABLE GC.CCS_T_EQ_EVENT_LOG
SET INTERVAL (NUMTODSINTERVAL(7,'DAY'));
ALTER TABLE SFISM4.R_WIP_TRACKING_T
SET INTERVAL (NUMTOYMINTERVAL(1,'YEAR'));
指定新interval partition的表空間和storage
ALTER TABLE GC.CCS_T_EQ_EVENT_LOG
MODIFY DEFAULT ATTRIBUTES
TABLESPACE CSS_ASSMINDEX
STORAGE (INITIAL 50M
NEXT 50M);
You cannot use interval partitioning with reference partitioned tables.
Serializable transactions do not work with interval partitioning. Inserting data into a partition of an interval partitioned table that does not have a segment yet causes an error.
參考:http://space.itpub.net/17203031/viewspace-706173
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25583515/viewspace-2146423/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 11g分割槽新特性之interval partition
- partition table and partition indexIndex
- 拆分Table 為Partition Table
- partition table test
- partition table(1)
- partition table(2)
- When to Partition a Table
- [Oracle] Partition table exchange Heap tableOracle
- Oracle 普通table 轉換為partition tableOracle
- create a partition table using a exsit table
- Convert Range-Partitioned Table To Interval-Range-Partitioned Table
- 分割槽表PARTITION table
- 定期truncate 歷史間隔分割槽INTERVAL PARTITION
- Oracle Interval Partition 自動分割槽表-實驗Oracle
- partition table update partition-key result in changing tablespace
- Oracle查詢Interval partition分割槽表內資料Oracle
- db2 partition table testDB2
- Oracle分割槽表(Partition Table)Oracle
- How to partition a non-partitioned table
- 分割槽表PARTITION table(轉)
- partition table中truncate應用
- Oracle Interval Partition 預設分割槽重新命名-指令碼Oracle指令碼
- Oracle OCP 1Z0 053 Q224(Interval Partition)Oracle
- mysql partition table use to_days bugMySql
- 關於partition table import的問題Import
- doesn't contain a valid partition tableAI
- add hash partition , default tablespace for patitioned table
- [20130513]Interval Partition的一些問題.txt
- 使用Oracle Database 11g建立Interval分割槽表OracleDatabase
- interval partition自動新增分割槽引起的shared pool 4031錯誤
- 【DB】Direct Path EXP Corrupts The Dump If An Empty Table Partition Exists
- Applying “Incremental Statistic” for Oracle Big Partition TableAPPREMOracle
- 11g分佈表新特性——Interval分割槽(上)
- 11g分佈表新特性——Interval分割槽(下)
- Data Warehouse Guide閱讀筆記(七):partition tableGUIIDE筆記
- 聊聊Oracle 11g中的Reference Partition(上)Oracle
- 聊聊Oracle 11g中的Reference Partition(下)Oracle
- ext4 lvreduce報錯superblock or the partition table is likely to be corruptVRBloC