返回顶部
首页 > 资讯 > 错误编码 >ORA-14758: Last partition in the range section cannot be dropped ORACLE 报错 故障修复 远程处理
  • 204
分享到

ORA-14758: Last partition in the range section cannot be dropped ORACLE 报错 故障修复 远程处理

报错故障partition 2023-11-04 21:11:19 204人浏览 薄情痞子
摘要

文档解释 ORA-14758: Last partition in the range section cannot be dropped Cause: An attempt was made to drop the last range

文档解释

ORA-14758: Last partition in the range section cannot be dropped

Cause: An attempt was made to drop the last range partition of an interval partitioned table.

Action: Do not attempt to drop this partition.

ORA-14758错误指当某一分区被删除,而它所在的分区区间中仅剩一个分区时,就会发生该错误。

官方解释

ORA-14758: Last partition in the range section cannot be dropped

Cause: Attempted to drop the last partition in a range section by itself.

Action: Drop the entire range section.

常见案例

例如一个表table1,有两个分区:分区 p1 和 p2,如果按照一般流程进行操作:

sql> ALTER TABLE table1 DROP PARTITION p1;

操作会报ORA-14758: Last partition in the range section cannot be dropped 错误

正常处理方法及步骤

1、改为一步删除p1和p2的区间:

SQL> ALTER TABLE table1 DROP PARTITION p1, p2;

2、两步结合操作删除p1和p2的区间:

SQL> ALTER TABLE table1 SPLIT PARTITION p2 INTO(PARTITION P2_SPLIT1, PARTITION P2_SPLIT2);

SQL> ALTER TABLE table1 DROP PARTITION P1,P2_SPLIT1;

在一步的操作中,只有P2_SPLIT2分区保留。

--结束END--

本文标题: ORA-14758: Last partition in the range section cannot be dropped ORACLE 报错 故障修复 远程处理

本文链接: https://lsjlt.com/news/525528.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作