文档解释 ORA-04009: MAXVALUE cannot be made to be less than the current value Cause: the current value exceeds the given MAX
ORA-04009: MAXVALUE cannot be made to be less than the current value
Cause: the current value exceeds the given MAXVALUE
Action: make sure that the new MAXVALUE is larger than the current value
ORA-04009错误的官方解释是:当尝试更改序列的最大值时,该最大值不能比当前已经使用的值小。
1.首先查询该sequence已经使用的值:SELECT MAX(xxx)FROM xxx;
2.如果需要修改sequence的最大值,则需要修改后的值大于当前已经使用的值;
3.使用alter sequence语句修改最大值的范围,即alter sequence sequence_name maxvalue num; 其中num需要大于当前已经使用的值。
4.最后记得commit,使修改生效。
--结束END--
本文标题: ORA-04009: MAXVALUE cannot be made to be less than the current value ORACLE 报错 故障修复 远程处理
本文链接: https://www.lsjlt.com/news/526393.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0