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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Object Name Resolution (248)Object
- Dependencies Among Other Remote Schema Objects (255)REMObject
- 同義詞The schema object cannot be contained in a package.ObjectAIPackage
- ORA-20000: Insufficient privileges to analyze an object in SchemaObject
- CF241E Flights
- Injection of autowired dependencies failed;AI
- Fine Grained DependenciesAI
- dba_dependencies scripts
- Management of Remote Dependencies (252)REM
- Dependencies of Applications (256)APP
- Dependencies and Views (180)View
- PostgreSQL 原始碼解讀(241)- plpgsql(CreateFunction)SQL原始碼Function
- Solution for Deepin DNS resolution errorDNSError
- 讀懂 gradle dependenciesGradle
- [virtualbox] temporary failure in name resolutionAI
- dependencies 和 devDependencies 的異同dev
- Dependencies for Graphs 閱讀筆記筆記
- 2021 New Year‘s Resolution
- Dependencies Among Local and Remote Database Procedures (252)REMDatabase
- Oracle 11G OCP 1Z0-053 241Oracle
- High-Resolution Mandelbrot in Obfuscated PythonPython
- PostgreSQL:Schema 管理SQL
- MySQL Performance SchemaMySqlORM
- oracle schema物件Oracle物件
- Duplicate files copied in APK META-INF/DEPENDENCIESAPK
- Eclipse : Web Deployment Assembly & Maven dependencies issueEclipseWebMaven
- Dependencies of Function-Based Indexes (202)FunctionIndex
- 牛客網刷題(純java題型 241~270題)Java
- TypeScript 裡的 module 解析過程 - Module ResolutionTypeScript
- Merge two videos into a large resolution videoIDE
- Waiting for clusterware split-brain resolutionAI
- Json Schema簡介和Json Schema的.net實現庫 LateApexEarlySpeed.Json.SchemaJSON
- UOJ 241. 【UR #16】破壞發射臺 [矩陣乘法]矩陣
- Eclipse中的maven工程缺少maven dependenciesEclipseMaven
- Dependencies for Variables of Type Customer Exit [SAP Help]
- Resolve Dependencies of Function-Based Indexes (205)FunctionIndex
- maven </dependencies>和</dependencyManagement> 有什麼區別Maven
- MySQL 5.7 SYS SCHEMAMySql