USERDB> ALTER TABLE mw_thirdparty_service DROP CONSTRAINT mt_service_external_unq
[2021-07-05 11:34:33] completed in 112 ms
USERDB> INSERT INTO mw_thirdparty_service(
mw_thirdparty_service_id,
external_id,
gos_no,
service_name,
supplier_id,
mt_ch_limit,
accuracy_class,
wo_category_id)
VALUES(
mw_thirdparty_service_seq.nextval,
'44008042008733',
null,
'44008042008733',
669,
null,
null,
2)
[2021-07-05 11:34:42] [23000][1] ORA-00001: unique constraint (USERDB.MT_SERVICE_EXTERNAL_UNQ) violated
[2021-07-05 11:34:42] Position: 0
USERDB> select * from ALL_CONSTRAINTS where CONSTRAINT_NAME = 'MT_SERVICE_EXTERNAL_UNQ'
[2021-07-05 11:34:48] 0 rows retrieved in 202 ms (execution: 168 ms, fetching: 34 ms)
尝试在指定表时显式指定用户/模式,尝试禁用约束,禁用和删除,但它仍然有效。
在此表中搜索限制通过 -all_constraints where table_name
给出除您需要的限制之外的所有限制。
重新加载数据库也没有帮助。