Oracle分割槽表增加分割槽報錯“ORA-14760:不允許對間隔分割槽物件執行 ADD PARTITION”
為分割槽表增加分割槽的時候報錯
檢視報錯程式碼
[oracle@backup-recovery misdb]$ oerr ora 14120
14120, 00000, "incompletely specified partition bound for a DATE column"
// *Cause: An attempt was made to use a date expression whose format
// does not fully (i.e. day, month, and year (including century))
// specify a date as a partition bound for a DATE column.
// The format may have been specified explicitly (using
// TO_DATE() function) or implicitly (NLS_DATE_FORMAT).
// *Action: Ensure that date format used in a partition bound for a
// DATE column supports complete specification of a date
// (i.e. day, month, and year (including century)).
// If NLS_DATE_FORMAT does not support complete
// (i.e. including the century) specification of the year,
// use TO_DATE() (e.g. TO_DATE('01-01-1999', 'MM-DD-YYYY')
// to fully express the desired date.
報錯原因:增加的分割槽時間格式和分割槽中指定的時間格式不匹配
檢視分割槽表中的各分割槽時間格式
解決方法:使用分割槽表中的分割槽時間格式
alter table ELMP_TRANS_SALEDETAIL
add partition p_20161201 values less than
(TO_DATE(' 2016-12-01 23:59:59', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'));
檢視報錯程式碼
[oracle@backup-recovery misdb]$ oerr ora 14120
14120, 00000, "incompletely specified partition bound for a DATE column"
// *Cause: An attempt was made to use a date expression whose format
// does not fully (i.e. day, month, and year (including century))
// specify a date as a partition bound for a DATE column.
// The format may have been specified explicitly (using
// TO_DATE() function) or implicitly (NLS_DATE_FORMAT).
// *Action: Ensure that date format used in a partition bound for a
// DATE column supports complete specification of a date
// (i.e. day, month, and year (including century)).
// If NLS_DATE_FORMAT does not support complete
// (i.e. including the century) specification of the year,
// use TO_DATE() (e.g. TO_DATE('01-01-1999', 'MM-DD-YYYY')
// to fully express the desired date.
報錯原因:增加的分割槽時間格式和分割槽中指定的時間格式不匹配
檢視分割槽表中的各分割槽時間格式
解決方法:使用分割槽表中的分割槽時間格式
alter table ELMP_TRANS_SALEDETAIL
add partition p_20161201 values less than
(TO_DATE(' 2016-12-01 23:59:59', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'));
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2102452/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【實驗】【PARTITION】RANGE分割槽表增加分割槽
- Oracle 間隔分割槽Oracle
- oracle分割槽partition及分割槽索引partition index(一)Oracle索引Index
- [間隔分割槽]Oracle10g、11g建立間隔分割槽表Oracle
- Oracle分割槽表(Partition Table)Oracle
- ORACLE 範圍分割槽 partition-range分割槽Oracle
- Oracle分割槽表基礎運維-07增加分割槽(2 HASH分割槽)Oracle運維
- Oracle分割槽表基礎運維-07增加分割槽(3列表分割槽)Oracle運維
- 【實驗】【PARTITION】RANGE分割槽表截斷表分割槽(Truncate Partition)
- 【實驗】【PARTITION】RANGE分割槽表移動表分割槽(Move Partition)
- 對刪除分割槽的分割槽表執行TSPITR
- 對分割槽表的部分分割槽執行TSPITR
- MySQL 分割槽表 partition線上修改分割槽欄位MySql
- 【實驗】【PARTITION】RANGE分割槽表合併分割槽
- 【實驗】【PARTITION】RANGE分割槽表刪除分割槽
- Oracle分割槽表基礎運維-07增加分割槽(1範圍分割槽)Oracle運維
- Oracle分割槽表及分割槽索引Oracle索引
- 分割槽Partition
- 分割槽表PARTITION table
- oracle分割槽表和分割槽表exchangeOracle
- 使用split對分割槽表再分割槽
- 全面學習分割槽表及分割槽索引(8)--增加和收縮表分割槽索引
- 簡單ORACLE分割槽表、分割槽索引Oracle索引
- oracle分割槽表和非分割槽表exchangeOracle
- oracle partition分割槽_分割槽列為空測試(一)Oracle
- 分割槽索引維護(add partition)索引
- 【實驗】【PARTITION】RANGE分割槽表重新命名錶分割槽(Rename Partition)
- 非分割槽錶轉換為分割槽表和partition indexIndex
- 分割槽表PARTITION table(轉)
- oracle分割槽及分割槽索引partition_partition index_維護(一)Oracle索引Index
- oracle分割槽及分割槽索引partition_partition index_維護(二)Oracle索引Index
- oracle分割槽及分割槽索引partition_partition index_維護(三)Oracle索引Index
- oracle分割槽及分割槽索引partition_partition index_維護(四)Oracle索引Index
- 全面學習分割槽表及分割槽索引(16)--增加和刪除索引分割槽索引
- 定期truncate 歷史間隔分割槽INTERVAL PARTITION
- [oracle] expdp 匯出分割槽表的分割槽Oracle
- Oracle帶區域性分割槽索引的分割槽表刪除舊分割槽新增新分割槽Oracle索引
- Oracle 分割槽(partition)技術Oracle