添加唯一性約束失敗

xuyongjun5124020 2012-04-09 11:42:06
為一個新表的一個字段(ID)添加一個唯一性約束,但不能添加,插入語句如下:
alter table student add constraint only_one unique (id);
所報錯如下:
第1行出現錯誤:
ORA-55610:針對歷史記錄跟蹤表的DDL語句無效
...全文
169 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ssqtjffcu 2012-04-09
  • 打赏
  • 举报
回复
启动Flashback Data Archive的表上的一些DDL 操作可能触发ORA-55610的错误,这些DDL 如下:
(1)ALTER TABLE statement that includes an UPGRADE TABLE clause, with or without an INCLUDING DATA clause
(3)ALTER TABLE statement that moves or exchanges a partition or subpartition operation
(3)DROP TABLE statement
没_没_没超疯 2012-04-09
  • 打赏
  • 举报
回复
你的表启用了闪回功能了吧

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧