|
| Before a user can submit a SQL statement to an Oracle database, he must connect to an instance. The user starts a front-end tool, such as SQL*Plus, an alternative such as SQL Navigator or Toad, or runs an application developed to assist with database interaction. Typically, the user connects and logs on to the Oracle Server. When this happens, a server process is created on the server running the Oracle Server. This process is responsible for communicating with the Oracle instance on behalf of the user process running on the workstation or the client and for execution of the SQL statements on behalf of the user. ConnectionThe connection is a communication pathway between the user process and the Oracle Server. This connection can take three distinct forms:
Alternatively, users can connect in a shared server configuration where multiple user processes connect to a single shared server process. A database server configured to allow multiple user processes to share few server processes is known as a shared server configuration. In this configuration, a user process connects to the dispatcher process (Dnnn) whose job is to direct the requests to a queue from which an idle shared server process picks its requests. The request and response queues, as well as other parts found in the PGA in a dedicated server configuration, are found in the SGA when the server is a shared server. In a shared server environment, the User Global Area (UGA) cannot be stored in the Process Global Area (PGA) because much of the processing is in a dedicated server environment; the UGA is found in the SGA. SessionA session is considered to be each specific connection of a user to an Oracle Server. It starts as soon as the user is authenticated to the instance and ends either when the user logs off or when there is an abnormal termination of the interface through which the user is connected. Depending on the configuration of the interface through which the user is connecting (for example Oracle E-Business Suite) there can be many concurrent connections possible for the same user ID. Only the database administrator to perform certain maintenance jobs and either the database administrator (the sysdba role) or the sysoper role to start and/or stop the instance can log in to the instance when it is not up and open for general use. |
|