Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1294993
  • 博文数量: 416
  • 博客积分: 10495
  • 博客等级: 上将
  • 技术积分: 4258
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-23 22:13
文章分类

全部博文(416)

文章存档

2015年(7)

2014年(42)

2013年(35)

2012年(14)

2011年(17)

2010年(10)

2009年(18)

2008年(127)

2007年(72)

2006年(23)

2005年(51)

分类:

2012-11-17 11:40:51

原文地址:ORA-00604 & ORA-02429 作者:lukeunique

December 28

ORA-00604 & ORA-02429

problem:

1)

SQL> drop tablespace legend including contents;
drop tablespace legend including contents
*
ERROR 位于第 1 行:
ORA-00604: 递归 SQL 层 1 出现错误
ORA-02429: 无法删除用于强制唯一/主键的索引

2)

SQL> drop index UUID_PK; 
drop index UUID_PK
*
ERROR at line 1:


ORA-02429: cannot drop index used for enforcement of unique/primary key

solution:

1)删除用户,再删除表空间

drop user #user_name casacade;

drop tablespace #talbespace_name including contents;

 

2)在user_constraints中找到对应的constrait_name,然后再将该contraint drop或disable掉

select * from user_constraints  c where table_name =UPPER('g302t') and c.constraint_name='G302T_IDX1'

alter table #talbe_name drop constraint #constraint_name;

alter table #talbe_name modify #constraint_type  disable;

阅读(1331) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~