Resolution of Schema Object Dependencies (241)
When a schema object is referenced directly in a SQL statement or indirectly through a
reference to a dependent object, Oracle checks the status of the object explicitly
specified in the SQL statement and any referenced objects, as necessary. Oracle’s action
depends on the status of the objects that are directly and indirectly referenced in a SQL
statement:
■ If every referenced object is valid, then Oracle runs the SQL statement
immediately without any additional work.
■ If any referenced view or PL/SQL program unit (procedure, function, or package)
is invalid, then Oracle automatically attempts to compile the object.
■ If all invalid referenced objects can be compiled successfully, then they are
compiled and Oracle runs the SQL statement.
■ If an invalid object cannot be compiled successfully, then it remains invalid.
Oracle returns an error and rolls back the failing SQL statement. The rest of the
transaction is unaltered and can be committed or rolled back by the user.
Note: Oracle attempts to recompile an invalid object dynamically
only if it has not been replaced since it was detected as invalid. This
optimization eliminates unnecessary recompilations.
解析方案物件的依賴性
1. 如果所有的引用物件均處於有效狀態,則 Oracle直接執行 SQL 語句
2. 如果 SQL 語句中存在無效的引用檢視或 PL/SQL 程式結構,Oracle 將自動地嘗試編譯這些物件
如果編譯成功 , 執行SQL 語句
如果有任何一個引用物件編譯不成功,則繼續保持無效狀態 ,Oracle 回滾執行失敗的 SQL 語句並返回一個錯誤資訊
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10599713/viewspace-983757/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- CF241E Flights
- 讀懂 gradle dependenciesGradle
- [virtualbox] temporary failure in name resolutionAI
- 2021 New Year‘s Resolution
- dependencies 和 devDependencies 的異同dev
- Dependencies for Graphs 閱讀筆記筆記
- PostgreSQL 原始碼解讀(241)- plpgsql(CreateFunction)SQL原始碼Function
- Json Schema簡介和Json Schema的.net實現庫 LateApexEarlySpeed.Json.SchemaJSON
- 如何靈活使用 Hyperf dependencies 配置
- MySQL Performance SchemaMySqlORM
- API Schema in kubernetesAPI
- Understanding JSON SchemaJSON
- PostgreSQL:Schema 管理SQL
- maven </dependencies>和</dependencyManagement> 有什麼區別Maven
- XML Schema定義XML
- rust-quiz:005-trait-resolution-hrtb.rsRustUIAI
- TypeScript 裡的 module 解析過程 - Module ResolutionTypeScript
- ES7 Object.keys,Object.values,Object.entriesObject
- ObjectObject
- 牛客網刷題(純java題型 241~270題)Java
- 淺析package.json中的devdependencies 和 dependenciesPackageJSONdev
- 介面返回[object,Object]解決方法Object
- 表的schema 檔案
- MySQL Performance Schema詳解MySqlORM
- 如何用double hashing解決collision resolution問題
- MXRuntimeUtils,替代 [NSObject performSelector object object ]的工具ObjectperformSelector
- Gradle 使用技巧(三) - dependencies 的型別與區別Gradle型別
- Maven - Maven-dependency-plugin (goals "copy-dependencies","unpack") is not supportedMavenPluginGo
- Maven專案無法引入 Maven Dependencies Libraries 問題Maven
- Object流Object
- object類Object
- Object.seal()與Object.freeze()區別Object
- information_schema的結構ORM
- 深入淺出 FlatBuffers 之 Schema
- information_schema.innodb_metrics表ORM
- Apache Avro & Avro Schema簡介ApacheVR
- oracle中schema指的是什麼?Oracle
- Solr schema編寫指導Solr
- performance_schema詳解一ORM