Posts Tagged ‘ORA-02429’

主键约束引起ORA-02429错误

drop index时出现如下错误:
SQL> drop index oos_index;
drop index oos_index
*
ERROR at line 1:
ORA-02429: cannot drop index used for enforcement of unique/primary key
我们知道当创建Primary key和unique约束时,如果在该key上不存在索引,则 oracle 会自动创建对应的unique索引,而当你要删除该索引时,必须先Disable或Drop该约束。看下面的例子:

Page 1 of 11

    搜索本站

    站点日历

    2月 2012
    « 4    
     12345
    6789101112
    13141516171819
    20212223242526
    272829  

    订阅本站

    文章分类

    最新日志

    热点文章

    日志存档

    常用标签