oracle分割槽partition及分割槽索引partition index(一)
SQL> create table t_partition(partion_id int,a int)
2 partition by range(partition_id)
3 (
4 partition p1 values less than (10) tablespace users
5 partition p2 values less than (20) tablespace users
6 partition p3 values less than (maxvalue) tablespace users
7 )
8 /
partition p2 values less than (20) tablespace users
*
第 5 行出現錯誤:
ORA-14020: 不能指定表分割槽的此物理屬性
SQL> c/partition_id/partion_id/
2* partition by range(partion_id)
SQL> r
1 create table t_partition(partion_id int,a int)
2 partition by range(partion_id)
3 (
4 partition p1 values less than (10) tablespace users,
5 partition p2 values less than (20) tablespace users,
6 partition p3 values less than (maxvalue) tablespace users
7* )
2* partition by range(partion_id)
SQL> r
1 create table t_partition(partion_id int,a int)
2 partition by range(partion_id)
3 (
4 partition p1 values less than (10) tablespace users,
5 partition p2 values less than (20) tablespace users,
6 partition p3 values less than (maxvalue) tablespace users
7* )
表已建立。
SQL>
SQL> r
1 create index idx_t_partition on t_partition(partion_id)
2 local
3 (partition p1_idx1 tablespace users,
4 partition p1_idx2 tablespace user2
5* )
create index idx_t_partition on t_partition(partion_id)
*
第 1 行出現錯誤:
ORA-14024: LOCAL 索引的分割槽數必須等於基礎表的分割槽數
1 create index idx_t_partition on t_partition(partion_id)
2 local
3 (partition p1_idx1 tablespace users,
4 partition p1_idx2 tablespace user2
5* )
create index idx_t_partition on t_partition(partion_id)
*
第 1 行出現錯誤:
ORA-14024: LOCAL 索引的分割槽數必須等於基礎表的分割槽數
SQL> create index idx_t_partition on t_partition(partion_id)
2 local
3 (partition p1_idx1 tablespace users,
4 partition p1_idx2 tablespace users,
5 partition p1_idx3 tablespace users
6 )
7 /
索引已建立。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-751528/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle分割槽及分割槽索引partition_partition index_維護(一)Oracle索引Index
- oracle分割槽及分割槽索引partition_partition index_維護(二)Oracle索引Index
- oracle分割槽及分割槽索引partition_partition index_維護(三)Oracle索引Index
- oracle分割槽及分割槽索引partition_partition index_維護(四)Oracle索引Index
- oracle分割槽及分割槽索引partition_partition index_維護(五)_快捷方法Oracle索引Index
- 分割槽Partition
- ORACLE 範圍分割槽 partition-range分割槽Oracle
- oracle reference partition引用分割槽(一)Oracle
- oracle list partition列表分割槽(一)Oracle
- oracle partition分割槽_分割槽列為空測試(一)Oracle
- 非分割槽錶轉換為分割槽表和partition indexIndex
- Oracle 分割槽(partition)技術Oracle
- Oracle分割槽表(Partition Table)Oracle
- oracle hash partition雜湊分割槽(一)Oracle
- 分割槽索引維護(add partition)索引
- 分割槽索引(Partition Index)與SQL執行計劃(中)索引IndexSQL
- 分割槽索引(Partition Index)與SQL執行計劃(下)索引IndexSQL
- 分割槽索引(Partition Index)與SQL執行計劃(上)索引IndexSQL
- 【實驗】【PARTITION】RANGE分割槽表截斷表分割槽(Truncate Partition)
- 【實驗】【PARTITION】RANGE分割槽表移動表分割槽(Move Partition)
- 分割槽表PARTITION table
- 【實驗】【PARTITION】RANGE分割槽表重新命名錶分割槽(Rename Partition)
- Oracle分割槽表及分割槽索引Oracle索引
- MySQL 分割槽表 partition線上修改分割槽欄位MySql
- 【實驗】【PARTITION】RANGE分割槽表合併分割槽
- 【實驗】【PARTITION】RANGE分割槽表增加分割槽
- 【實驗】【PARTITION】RANGE分割槽表刪除分割槽
- Oracle Partition 分割槽詳細總結Oracle
- 分割槽partition知識點
- MySQL分割槽(Partition)詳解MySql
- 分割槽剪除 (partition pruning)
- 分割槽表PARTITION table(轉)
- 融合(merge partition)分割槽
- 合併分割槽(coalesce partition)
- oracle composite partition組合分割槽_composite partition rangeOracle
- Spark學習——分割槽Partition數Spark
- 深入解析partition-range分割槽
- 深入解析partition-hash分割槽