我有一个没有表的 Oracle 模式(我删除了它们)。然而,当我看user_constraints
表时
SELECT * FROM user_constraints;
我看到很多行。怎么可能删除这些约束?
DELETE FROM user_constraints WHERE owner='owner';
没有用,它给了我一个“权限不足”的错误。
SELECT owner, constraint_name, constraint_type, table_name, r_owner, r_constraint_name FROM user_constraints;
OWNER CONSTRAINT_NAME CONSTRAINT_TYPE TABLE_NAME R_OWNER R_CONSTRAINT_NAME
ORA_AI_1_9 BIN$z2XwnFUHEHrgQ4sGOR4Qeg==$0 P BIN$z2XwnFUJEHrgQ4sGOR4Qeg==$0
ORA_AI_1_9 BIN$z1NhC6g4oErgQ4sGOR6gSg==$0 P BIN$z1NhC6g6oErgQ4sGOR6gSg==$0
ORA_AI_1_9 BIN$z1anK5OEEHrgQ4sGOR4Qeg==$0 P BIN$z1anK5OGEHrgQ4sGOR4Qeg==$0
ORA_AI_1_9 BIN$z1NhC6hhoErgQ4sGOR6gSg==$0 P BIN$z1NhC6hjoErgQ4sGOR6gSg==$0