An Example of How Oracle Works
The following example describes the most basic level of operations that Oracle
performs. This illustrates an Oracle configuration where the user and associated
server process are on separate machines (connected through a network).
1. An instance has started on the computer running Oracle (often called the host
or database server).
2. A computer running an application (a local machine or client workstation)
runs the application in a user process. The client application attempts to
establish a connection to the server using the proper Oracle Net Services driver.
3. The server is running the proper Oracle Net Services driver. The server detects
the connection request from the application and creates a dedicated server
process on behalf of the user process.
4. The user runs a SQL statement and commits the transaction. For example, the
user changes a name in a row of a table.
5. The server process receives the statement and checks the shared pool for any
shared SQL area that contains a similar SQL statement. If a shared SQL area is
found, then the server process checks the user’s access privileges to the
requested data, and the previously existing shared SQL area is used to process
the statement. If not, then a new shared SQL area is allocated for the statement,
so it can be parsed and processed.
6. The server process retrieves any necessary data values from the actual datafile
(table) or those stored in the SGA.
7. The server process modifies data in the system global area. The DBWn process
writes modified blocks permanently to disk when doing so is efficient. Because
the transaction is committed, the LGWR process immediately records the
transaction in the online redo log file.
8. If the transaction is successful, then the server process sends a message across
the network to the application. If it is not successful, then an error message is
transmitted.
9. Throughout this entire procedure, the other background processes run,
watching for conditions that require intervention. In addition, the database
server manages other users’ transactions and prevents contention between
transactions that request the same data.
performs. This illustrates an Oracle configuration where the user and associated
server process are on separate machines (connected through a network).
1. An instance has started on the computer running Oracle (often called the host
or database server).
2. A computer running an application (a local machine or client workstation)
runs the application in a user process. The client application attempts to
establish a connection to the server using the proper Oracle Net Services driver.
3. The server is running the proper Oracle Net Services driver. The server detects
the connection request from the application and creates a dedicated server
process on behalf of the user process.
4. The user runs a SQL statement and commits the transaction. For example, the
user changes a name in a row of a table.
5. The server process receives the statement and checks the shared pool for any
shared SQL area that contains a similar SQL statement. If a shared SQL area is
found, then the server process checks the user’s access privileges to the
requested data, and the previously existing shared SQL area is used to process
the statement. If not, then a new shared SQL area is allocated for the statement,
so it can be parsed and processed.
6. The server process retrieves any necessary data values from the actual datafile
(table) or those stored in the SGA.
7. The server process modifies data in the system global area. The DBWn process
writes modified blocks permanently to disk when doing so is efficient. Because
the transaction is committed, the LGWR process immediately records the
transaction in the online redo log file.
8. If the transaction is successful, then the server process sends a message across
the network to the application. If it is not successful, then an error message is
transmitted.
9. Throughout this entire procedure, the other background processes run,
watching for conditions that require intervention. In addition, the database
server manages other users’ transactions and prevents contention between
transactions that request the same data.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-159260/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How Oracle Works!Oracle
- How Oracle Locking WorksOracle
- How Oracle Net Services Works (281)Oracle
- How the web worksWeb
- How Google WorksGo
- {C#} How task works?C#
- How React Works (一)首次渲染React
- how webpack Hot Module Replacement worksWeb
- 2.3.3.3.1 How an Application Upgrade WorksAPP
- Example: How to Packetize a TCP Stream (轉)TCP
- JavaScript’s “this”: how it works, where it can trip you upJavaScript
- oracle exampleOracle
- Ten Principles of Economics__How The Economy as a Whole Works
- An example of polybase for OracleOracle
- Oracle By Example (OBE)Oracle
- ASM 11g New Features - How ASM Disk Resync WorksASM
- How does Web Analytics works under sharePoint 2010Web
- How to Study OracleOracle
- 深入理解 Tomcat(一)原始碼環境搭建和 How Tomcat works 原始碼Tomcat原始碼
- How to enable trace in OracleOracle
- In Oracle,How to use dumpOracle
- Oracle HowTo:How to get Oracle SCN?Oracle
- How to rename an Oracle stored procedureOracle
- Spark exampleSpark
- Ice works操作教程
- [How HTTPS works Part 1 — Building Blocks] HTTPS 的工作方式第 1 部分-基本構造塊HTTPUIBloC
- How Oracle Store Number internal(zt)Oracle
- How to Relink Oracle Database SoftwareOracleDatabase
- How to Shrink Undo Segment In Oracle DatabaseOracleDatabase
- How To Delete An Oracle Applications UserdeleteOracleAPP
- How to gather statistics on Oracle eBS.Oracle
- How to find Current open Cursors in OracleOracle
- how to kill the runing job in ORACLEOracle
- How to drop Oracle RAC database manually?OracleDatabase
- How to purge the Oracle Database Recycle BinOracleDatabase
- How to use hints in Oracle sql for performanceOracleSQLORM
- angular 2 by exampleAngular
- How to Change hostname in Oracle Linux 7OracleLinux