ORA-27479: Cannot string “string.string” because other objects depend on it

文档解释

ORA-27479: Cannot string “string.string” because other objects depend on it

Cause: An attempt was made to drop or disable a scheduler object that has jobs associated with it without specifying the force option.

Action: Alter the associated jobs so they do not point to the scheduler object being dropped or disabled and then reissue the command. Alternatively reissue the command specifying the force option. If the force option is specified and a scheduler object is being dropped, all associated jobs will be disabled.

ORA-27479:这是一个 Oracle数据库错误,指示当尝试从字符串创建或重组对象时发生的错误。

官方解释

ORA-27479的消息总是与标题一起显示,并由Oracle数据库服务器显示,表明它未能以字符串形式创建或重组某个对象。原因是该对象被其他对象所依赖,并且此字符串无法使其重建。

常见案例

在进行某种数据库操作时,可能会发生ORA-27479错误,该错误最常见于删除对象,特别是多个对象在非正确的顺序中删除时。

一般处理方法及步骤

1.查找相关对象,使用无法删除的对象的名称,使用下面的SQL查询可以查找被依赖的对象,其中USING_OBJ为要删除的对象:

“`

SELECT REFERENCED_NAME FROM DBA_DEPENDENCIES

WHERE REFERENCED_TYPE=’OBJECT’

AND NAME =’USING_OBJ’;

“`

2.使用上面的查询结果删除被依赖对象:

“`

DROP ;

“`

3.重新尝试删除要删除的对象:

“`

DROP USING_OBJ;

“`

你可能感兴趣的