ITPub博客

首页 > 应用开发 > IT综合 > Recompilation occurs automatically when the invalid dependent object is referenced.

Recompilation occurs automatically when the invalid dependent object is referenced.

原创 IT综合 作者:myxylovedba 时间:2013-05-13 23:16:22 0 删除 编辑

在阅读oracle administartor 的时候,在读到依赖对象的时候,发现一段话比较绕口,

“Recompilation occurs automatically when the invalid dependent object is referenced.”

[@more@]

我是这样理解的:

当无效的依赖对象是被引用的时候,重编译将自动发生。

过程如下:

A对象依赖于B对象,A对象成为依赖对象;B对象成为引用对象。

当B对象发生改变的时候,A对象失效(比方说,修改字段,将数据类型从number修改为varchar2类型等),但是A对象被C对象引用的时候,A对象将自动变成有效,因为数据库内部跟踪对象的依赖关系的进程自动对A对象进行了编译,使其变成有效对象------“Recompilation occurs automatically when the invalid dependent object is referenced.

”的介绍和理解

我已经做个试验,应该是这样的。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28227905/viewspace-1060503/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    65
  • 访问量
    344015