All technological notes.
Server processes
client processes connected to the instance.A client process always communicates with a database through a separate server process.
Server processes created on behalf of a database application can perform one or more of the following tasks:
PL/SQL codedata blocks from data files into the database buffer cache (the DBW background process has the task of writing modified blocks back to disk)server process.一对一专用
server process is dedicated to its client process for the duration of the session.client process communicates directly with its server process.server process stores process-specific information and the UGA in its PGA.内存位置: PGAIn shared server connections, client applications connect over a network to a dispatcher process, not a server process.
client processes can connect to a single dispatcher process.dispatcher process:
large pool.Request processing: 请求队->shared 服务器进程->回应对->传输
shared server process takes the request from the queue and processes it.Memory:
shared server process has its own PGA.UGA for a session is in the SGA so that any shared server can access session data.| Mode | Process | Process Location | Session/UGA Location |
|---|---|---|---|
| Dedicated | server process | PGA | PGA |
| Shared | shared server process | PGA | SGA |
The database creates server processes in various ways, depending on the connection methods.
Bequeath:
SQL*Plus, an OCI client, or another client application directly spawns the server process.Oracle Net listener
Dedicated broker
dedicated broker, the client connects to the listener, which then hands off the connection to the dedicated broker.When a connection does not use bequeath, the database creates the server process as follows:
client application requests a new connection from the listener or broker.operating system creates the new process or thread.Oracle Database initializes various components and notifications.