Recompilation occurs automatically when the invalid dependent object is referenced.

在阅读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.

”的介绍和理解

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

请使用浏览器的分享功能分享到微信等