當(dāng)前位置:
首頁(yè) >
ORA-14400: inserted partition key does not map to any partition
發(fā)布時(shí)間:2025/5/22
35
豆豆
生活随笔
收集整理的這篇文章主要介紹了
ORA-14400: inserted partition key does not map to any partition
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
ORA-14400: inserted partition key does not map to any partition 數(shù)據(jù)庫(kù)表已經(jīng)分區(qū),如果插入數(shù)據(jù)時(shí)出現(xiàn)錯(cuò)誤提示:
ORA-14400: 插入的分區(qū)關(guān)鍵字超出最高合法分區(qū)關(guān)鍵字。
原因是因?yàn)榉謪^(qū)已經(jīng)過(guò)期 解決方法:
手工添加了一個(gè)分區(qū),終止日期大于當(dāng)前日期即可。 建表的SQL:
create table DATE
(
? ID??????????? VARCHAR2(20) not null,
? NEWYEAR?? VARCHAR2(20) not null,
? NEWMONTH? VARCHAR2(20) not null,
)
partition by range (NEWYEAR, NEWMONTH)
(
? partition PT_2004_03 values less than ('2004', '04')
??? tablespace TS_LIU
??? pctfree 10
??? pctused 40
??? initrans 1
??? maxtrans 255
??? storage
??? (
????? initial 64K
????? minextents 1
????? maxextents unlimited
??? ),
? partition PT_2004_04 values less than ('2004', '05')
??? tablespace TS_LIU
??? pctfree 10
??? pctused 40
??? initrans 1
??? maxtrans 255
??? storage
??? (
????? initial 64K
????? minextents 1
????? maxextents unlimited
??? )
)
;
增加分區(qū):
ALTER TABLE "DATE"
???? ADD PARTITION "PT_2007_12"?
???? VALUES LESS THAN? ('2007', '12')
???? TABLESPACE "TS_LIU"
???? pctfree 10
???? pctused 40
???? initrans 1
???? maxtrans 255
???? storage
??? (
????? initial 64K
????? minextents 1
????? maxextents unlimited
??? )
???
另:在建立分區(qū)表的時(shí)候應(yīng)該有一個(gè)pmin區(qū)接受小于最小分區(qū)的數(shù)據(jù)
以及一個(gè)pmax區(qū)接受大于最大分區(qū)的數(shù)據(jù),否則下次忘記加分區(qū),又會(huì)報(bào)同樣的錯(cuò)誤
ORA-14400: 插入的分區(qū)關(guān)鍵字超出最高合法分區(qū)關(guān)鍵字。
原因是因?yàn)榉謪^(qū)已經(jīng)過(guò)期 解決方法:
手工添加了一個(gè)分區(qū),終止日期大于當(dāng)前日期即可。 建表的SQL:
create table DATE
(
? ID??????????? VARCHAR2(20) not null,
? NEWYEAR?? VARCHAR2(20) not null,
? NEWMONTH? VARCHAR2(20) not null,
)
partition by range (NEWYEAR, NEWMONTH)
(
? partition PT_2004_03 values less than ('2004', '04')
??? tablespace TS_LIU
??? pctfree 10
??? pctused 40
??? initrans 1
??? maxtrans 255
??? storage
??? (
????? initial 64K
????? minextents 1
????? maxextents unlimited
??? ),
? partition PT_2004_04 values less than ('2004', '05')
??? tablespace TS_LIU
??? pctfree 10
??? pctused 40
??? initrans 1
??? maxtrans 255
??? storage
??? (
????? initial 64K
????? minextents 1
????? maxextents unlimited
??? )
)
;
增加分區(qū):
ALTER TABLE "DATE"
???? ADD PARTITION "PT_2007_12"?
???? VALUES LESS THAN? ('2007', '12')
???? TABLESPACE "TS_LIU"
???? pctfree 10
???? pctused 40
???? initrans 1
???? maxtrans 255
???? storage
??? (
????? initial 64K
????? minextents 1
????? maxextents unlimited
??? )
???
另:在建立分區(qū)表的時(shí)候應(yīng)該有一個(gè)pmin區(qū)接受小于最小分區(qū)的數(shù)據(jù)
以及一個(gè)pmax區(qū)接受大于最大分區(qū)的數(shù)據(jù),否則下次忘記加分區(qū),又會(huì)報(bào)同樣的錯(cuò)誤
總結(jié)
以上是生活随笔為你收集整理的ORA-14400: inserted partition key does not map to any partition的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: css学习入门篇(1)
- 下一篇: MaterialEditText 控件学