Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SAP
Mohammed
Jashim
Important Terms
System Global Area (SGA)
When oracle instance started a shared
memory region is getting allocated called
SGA.
SGA allocated by Oracle instance can only be
accessed by Oracle process.
Each instance having its own SGA.
SGA contains copies of data and control
information of corresponding Oracle instance.
When instance is stopped, SGA is deallocated.
Important Terms
Oracle Process
When instance started Oracle
background process is started.
DBW0, DBW1 - Database Writer
LGWT Log Writer
ARC0 - Arc-hiver
CKPT Check Point
PMON Process Monitor
SMON System Monitor
Important Terms
System Identifier
Every database in the network can be identified by using
the system identifier.
In-order to distinguish between SAP system identifier and
Database system identifier, we have below.
DBSID Database System Identifier
SAPSID SAP System Identifier
SID naming convention :First letter is Uppercase letter, and the remaining two is
Upper case letters or digits.
Database architecture
Oracle Instance and Database: Architecture
Overview
Important Terms
Oracle Listener
After Oracle instance is started, a
special process called LISTENER,
(Networking work process that
work with Oracle) that allows the
database clients and the instance
to communicate with each other.
When a work process makes a
request to connect to Database,
Listener creates a dedicated Server
process and makes an appropriate
connection between SAP and
Oracle.
Shadow Process
The separate server process
created on behalf of each work
process in database is called
Shadow Process.
Work Process in SAP.
Server Process in Database.
1:1 ratio for SAP WP : Shadow WP
Important Terms
Row Cache
Row cache caches the Oracle data dictionary
information.
Cont.,
Logging of Modifications
Cont.,
To achieve data consistency and read consistency, Oracle maintains redo
entries for roll forward or redo recovery for example after a crash, and
undo entries to roll back uncommitted transactions.
Redo entries contain the information necessary to reconstruct, redo, or roll
forward changes made to the database by SQL statements within a
committed
transaction. Redo entries contain the new values of the modified data, also
called after images.
Parallel to changes made in data blocks, Oracle shadow processes write
redo
entries into the redo log buffer.
This is a circular buffer in the system global area that temporarily records all
changes (both uncommitted and committed) made to the database .
The Oracle background process LGWR, writes contiguous portions of the
redo log buffer sequentially to an online redo log file (or group of files)
on disk.
Cont.,
Log Writer writes the entries from Redo Log Buffer to Online Redo Log
Buffer in below conditions.
When any transaction is committed.
Every three seconds.
Redo Log Buffer is 1/3 full.
When Database writer writes the data from data blocks to data files, that
time Log Writer also writes the log details from Redo Log Buffer to Online
Redo Log Buffer.
This algorithm ensures that space is always available in the redo log buffer
for new redo records.
When a User (work process) commits a transaction, then for the
corresponding transaction a System Change Number (SCN) is
assigned by the Database. Oracle records the SCN along with the
transaction in the Redo Log Buffer.
Undo Entries, which roll back the data modified in the data blocks by the
SQL statement which have not been committed.
Redo Entries Before Images
Undo Entries - After Images
Cont.,
Oracle stores undo information (old values of modified data),
called before images in a special undo segment, separate from
the redo log.
The Oracle undo space consists either of an undo tablespace (this
solution
is called automatic undo management . only the undo
Tablespaces must be
created) or of rollback segments (manual undo management .
rollback
segments must be allocated in a tablespace and managed).
The undo information of a transaction is retained in the undo
space at least
until the end of the transaction. It may be overwritten only after
the transaction
has been committed.