Partition管理問題集錦
ORA-14086: a partitioned index may not be rebuilt as a whole(rebuild index)
ORA-14074: partition bound must collate higher than that of the last partition(add partition)
ORA-14086: a partitioned index may not be rebuilt as a whole(rebuild index)
SQL> alter index DOUDOU_GL_IDX rebuild;
alter index DOUDOU_GL_IDX rebuild
*
ERROR at line 1:
ORA-14086: a partitioned index may not be rebuilt as a whole
SQL> select index_name, partition_name, status from user_ind_partitions where
2 index_name like 'DOUDOU_GL_IDX';
INDEX_NAME PARTITION_NAME STATUS
------------------------------ ------------------------------ --------
DOUDOU_GL_IDX DOUDOU_13 UNUSABLE
DOUDOU_GL_IDX DOUDOU_14 UNUSABLE
DOUDOU_GL_IDX DOUDOU_FE UNUSABLE
SQL> alter index DOUDOU_GL_IDX rebuild partition DOUDOU_13;
Index altered.
SQL> alter index DOUDOU_GL_IDX rebuild partition DOUDOU_14;
Index altered.
SQL> alter index DOUDOU_GL_IDX rebuild partition DOUDOU_FE;
Index altered.
SQL> select index_name, partition_name, status from user_ind_partitions where index_name like 'DOUDOU_GL_IDX';
INDEX_NAME PARTITION_NAME STATUS
------------------------------ ------------------------------ --------
DOUDOU_GL_IDX DOUDOU_13 USABLE
DOUDOU_GL_IDX DOUDOU_14 USABLE
DOUDOU_GL_IDX DOUDOU_FE USABLE
ORA-14074: partition bound must collate higher than that of the last partition(add partition)
SQL> create table t01(id number,name varchar2(100))
2 partition by range(id)
3 (
4 partition p1 values less than(100),
5 partition p2 values less than(200),
6 partition p3 values less than(300),
7 partition p4 values less than(maxvalue)
8 );
Table created.
SQL> alter table t01 add partition p5 values less than(500);
alter table t01 add partition p5 values less than(500)
*
ERROR at line 1:
ORA-14074: partition bound must collate higher than that of the last partition
SQL> alter table t01 split partition p4 at (500)
2 into ( partition p5, partition p4) update indexes;
Table altered.
SQL> select TABLE_NAME,PARTITION_NAME from user_tab_partitions where table_name='T01';
TABLE_NAME PARTITION_NAME
------------------------------ ------------------------------
T01 P1
T01 P2
T01 P3
T01 P5
T01 P4
未完待續…
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26442936/viewspace-774571/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ArchLinux 問題集錦Linux
- 小問題集錦
- kafka問題集錦Kafka
- flutter問題集錦Flutter
- 線上問題集錦(1)
- 線上問題集錦(2)
- Linux 問題處理集錦Linux
- java 入門篇 問題集錦Java
- 面試必備問題集錦面試
- 管理故事集錦
- 3-Partition 問題
- AndroidStudio之app/build.gradle問題集錦AndroidAPPUIGradle
- PHP開發工程師面試問題集錦PHP工程師面試
- Vue.JS 開發常見問題集錦Vue.js
- C++和MATLAB混編的問題集錦C++Matlab
- 構建Potatso問題集錦及解決方案
- 新手必看!使用New File Menu常見問題集錦
- 面試題集錦-SpringBoot面試題Spring Boot
- pip安裝時遇到的問題集錦,持續更新!
- AI運動小程式開發常見問題集錦二AI
- CAD控制元件CAD .NET問題解答集錦(連載一)控制元件
- pycharm安裝第三方庫常見問題集錦PyCharm
- 2019年阿里必問面試題集錦(收藏不看系列),你懂得!阿里面試題
- java程式設計師進階:Redis分散式技術問題集錦Java程式設計師Redis分散式
- 技術問答集錦(13)Java Instrument原理Java
- “蟒蛇書”讀者群專屬——問題集錦,新入群讀者必看~
- Cold_Chair OI 時期出題集錦AI
- GO面試題集錦快答[持續更新]Go面試題
- Android大廠面試題錦集(BATTMDJD小米)Android面試題BAT
- 技術問答集錦(16)避免活躍性
- 技術問答集錦(11)JVM類載入JVM
- 知識集錦
- 經典的Java面試題及回答集錦Java面試題
- Java面試題集錦(1):volatile關鍵字Java面試題
- 技術問答集錦(15)JVM記憶體模型JVM記憶體模型
- Spark 問題集Spark
- iOS面試問答集錦,從容應對各種面試技術難題!iOS面試
- docker 踩坑集錦Docker
- Python例項集錦Python