Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Enterprise DB Architecture
Client/Server Architecture
o Client: initiates request and presents data to users
o Database server: runs Oracle software, stores data, receives and processes SQL
and PL/SQL statements that originate from clients
Multitier Architecture with Application Server(s)
o Client: initiates a request and presents data to users
o Application server(s): interfaces between clients and multiple database servers,
provide additional features on top of the database servers
o Database server(s): runs Oracle software, stores data, receives and processes SQL
and PL/SQL statements that originate from clients and application servers.
Oracle Instance:
An Oracle instance is the part of an Oracle database executing in memory when an Oracle
database is running (after start up)
An Oracle instance consists of memory structures called the System Global Area (SGA) and
the Background Processes.
The two major memory structures associated with an Oracle instance are:
System Global Area (SGA):
o Private to each Oracle instance, allocated when the Oracle instance is started, deallocated when the Oracle instance is shut down.
o Shared by multiple server and background processes of the same Oracle instance
o Contains shared program code, cached data, information about connected
sessions, database server parameters.
o Stores data in memory to minimize disk I/O.
o SGA_MAX_SIZE in the initialization parameter file determines the maximum
size of the SGA.
o SGA_TARGET: a dynamic parameter that Oracle uses to determine the total size
of the SGA components
The size of the SGA is determined by several initialization parameters. The following
parameters have the greatest effect on SGA size:
o DB_CACHE_SIZE: specifies the size of the cache of standard blocks.
o LOG_BUFFER: specifies the number of bytes allocated for the redo log buffer.
o SHARED_POOL_SIZE: specifies the size in bytes of the area devoted to shared
SQL and PL/SQL statements.
o LARGE_POOL_SIZE: specifies the size of the large pool, the default is 0.
o JAVA_POOL_SIZE: specifies the size of the Java pool.
If the value for SGA_MAX_SIZE in the initialization parameter file is less than the
sum the memory allocated for all components, the database ignores the setting for
SGA_MAX_SIZE.
User Process
starts when a database client application connects to an Oracle database
server, it runs an Oracle user process
a session is established for each client connection
each Oracle user can run multiple sessions at the same time
Server Process
o handles the request on behalf of the user process(s)
parse and run SQL statements
read data from disk into shared database buffer in SGA.
o has a process specific memory area called the Program Global Area (PGA).
Program Global Area: PGA_AGGREGATE_TARGET: specifies the total memory
size dedicated to the PGA for an Oracle instance