Oracle删除唯一索引失败提示ORA-01418:指定的索引不存在 ORACLE

前言

oracle数据库执行drop index index_name 时报指定的索引不存在。

select * from user_ind_columns where index_name='unq_fileKey';
能查到唯一索引
执行 drop index unq_fileKey;却提示如题错误

原因分析

是因为oracle数据库中索引名称是区分大小写的,最好用双引号把索引名称括起来,如下:drop index “index_name”;如果不清楚你的索引名称的大小写,可以到select * from user_indexes;表中查看。

解决

drop index "unq_fileKey";
即在索引名上加双引号

 



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章