ORA-02429: cannot drop index used for enforcement of unique/primary key
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
SQL>
SQL> select owner,CONSTRAINT_NAME,TABLE_NAME,CONSTRAINT_TYPE from user_constraints where table_name='TEMP_TRIAL_3006';
OWNER CONSTRAINT_NAME TABLE_NAME C
------------------------------ ------------------------------ ------------------------------ -
YXY UUID_PK TEMP_TRIAL_3006 P
YXY SYS_C0034171 TEMP_TRIAL_3006 C
SQL> alter table TEMP_TRIAL_3006 drop constraint SYS_C0034171;
Table altered.
SQL> alter table TEMP_TRIAL_3006 drop constraint uuid_pk ;
Table altered.
SQL> select index_name,table_name from user_indexes where table_name='TEMP_TRIAL_3006';
no rows selected
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7364032/viewspace-17456/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- unique index與primary key的區別Index
- mysql中key 、primary key 、unique key 與index區別MySqlIndex
- OGG How to handle / replicate tables with no (without) primary key (PK) or unique index (UI) (UPI) [IndexUI
- ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys foundIndex
- oracle資料庫primary key和unique key的異同Oracle資料庫
- KEEP INDEX | DROP INDEXIndex
- Index Unique Scan (213)Index
- pk 、unique index 和 index 區別Index
- sql primary key procedureSQL
- What is meant by Primary Index and Secondary IndexIndex
- mysql drop keyMySql
- Sparse Indexes vs unique indexIndex
- INDEX UNIQUE SCAN,INDEX FULL SCAN和INDEX FAST FULL SCANIndexAST
- SORT (UNIQUE STOPKEY)/ SORT GROUP BY STOPKEYTopK
- LOCAL INDEX和HINT的使用【DO BE USED LOCAL INDEX IN HINT】薦Index
- Unique Index和Normal Index差異經典對比IndexORM
- 再說Unique Index和Normal Index行為差異IndexORM
- SQL Server Primary Key ConstraintsSQLServerAI
- name server cannot be used, reason: Temporary failure in name resolutionServerAI
- 【SQL】15 SQL 約束(Constraints)、NOT NULL 約束、UNIQUE 約束、PRIMARY KEY 約束、FOREIGN KEY 約束、CHECK 約束、DEFAULT約束SQLAINull
- Unique約束,Primary Key約束與索引的關係學習與測試_20091213.doc索引
- 解決 TypeError: Type aliases cannot be used with isinstance(). 辦法Error
- object dict cannot be used in await expression報錯解釋ObjectAIExpress
- Data Warehouse Guide閱讀筆記(六):unique constraint & unique indexGUIIDE筆記AIIndex
- [20171211]UNIQUE LOCAL(Partitioned)IndexIndex
- 高效的SQL(Index unique scan最優化)SQLIndex優化
- 簡單分析MySQL中的primary key功能MySql
- 查詢指定使用者的unique,primary索引名/鍵值索引
- 關於primary key和foreign key的問題處理
- 唯一性索引(Unique Index)與普通索引(Normal Index)差異(上)索引IndexORM
- 唯一性索引(Unique Index)與普通索引(Normal Index)差異(中)索引IndexORM
- 唯一性索引(Unique Index)與普通索引(Normal Index)差異(下)索引IndexORM
- 索引唯一性掃描(INDEX UNIQUE SCAN)索引Index
- 在什麼情況下用index unique scansIndex
- ALTER TABLE causes auto_increment resulting key 'PRIMARY'REM
- 關於rebuild index online 及drop index後重建問題RebuildIndex
- Material type ROH cannot be used with item category L (plant T001)Go
- insert:key too large to index…Index