ORA-02303: cannot drop or replace a type with type or table dependents

文档解释

ORA-02303: cannot drop or replace a type with type or table dependents

Cause: An attempt was made to drop or replace a type that has type or table dependents.

Action: For DROP TYPE, drop all type(s) and table(s) depending on the type and then retry the operation, or use the FORCE option. For CREATE TYPE, drop all type(s) and table(s) depending on the type and then retry the operation, or drop all table(s) depending on the type and retry with the FORCE option.

ORA-02303是Oracle 11GR2中的一条错误消息,它表示不能删除或替换已有类型或表依赖的类型。

官方解释

常见案例

正常处理方法及步骤

(1)查看哪些对象正在依赖当前类型:可以使用以下SQL查询查看哪些对象依赖了当前要删除或替换的类型:

SELECT * FROM dba_dependencies WHERE REFERENCED_TYPE=’TYPE’ AND REFERENCED_NAME=”;

(2)更新或删除依赖于当前类型的对象:在替换或删除类型之前,必须更新或删除依赖于当前类型的对象,以便不受到任何影响。

(3)删除或替换类型:如果一切正常,则可以使用DROP或REPLACE TYPE指令删除或替换类型。

你可能感兴趣的