DATABASE WORK PROCESS

R3 Locks :
  • R3locks are monitored in SM12
  • R3locks are in the main Memory of the Instance
  • R3locks locks the entire transaction
  • R3locks are hold during the entire transaction
DB Locks:
  • DB Locks are monitored in DB01
  • DB Locks lock the Physical Tables/rows in DB
  • DB Locks locks the LUW only
  • DB Locks are hold for few milliseconds and Could not be displayed in DB01
R3 Buffers:
  • R3 buffers are monitored in St02
  • R3 buffers are based on parameter settings in Rz10 and table technical settings in SE13
  • R3 buffer resides in Memory and swapped out by the updated content when the content is modified
  • R3buffers are lost when the application server is shutdown/restarted
 DB Buffers:
  • DB buffer are monitored in ST04
  • DB buffers are determined by a parameter DB_CACHE_SIZE
  • DB buffer buffers the entire content and response comes from DB buffer only
  • DB Buffers are lost when the database server is shutdown/restarted
SYSTEM GLOBAL AREA:
  • It is built when the Oracle database is started.
  • It is used to store the Data Dictionary Cache, shared SQL Area, Library Cache, DB Cache and Log Buffer.
    It is built on Memory and Lost when the database is shutdown/terminated/aborted.
  • It is defined by parameter SGA_MAX_SIZE and DB Cache is defined by DB_CACHE_SIZE, shared SQL area is defined by parameter SHARED_POOL_SIZE and log buffer is defined by parameter log_buffer.
sqlplus>show sga;
Processes Area:
  1. The Oracle background Processes are built when the Oracle Database is started.Some of the Processes are LGWR,DBWR,ARCH,CKPT,SMON,PMON etc.
Log Writer:
It is used to write the committed data from log buffer to the disk. it is the first place where the committed records are written for replaying the updates if required.It is triggered in the following circumstances.
  • For every 3 seconds
  • 1/3 of Log buffer size
  • 1 MB of committed changes
  • Before DBWR writes to database.
  • Checkpoint for every 60 seconds.
System Change Number:
When a user commits a transaction, the transaction is assigned a system change number (SCN), which Oracle records along with the transaction’s redo entries in the redo log. SCNs are recorded in the redo log so that recovery can be performed until the last SCN.
SCN is also recorded in alert<SID>.log

Log Sequence Number:
When origlogA is Full it is closed for writing and origlogB will be opened for writing.The Switch between redo logs is called as Log switch.Each log size is 50 MB
origlogA, origlogB ,MirrorlogA MirrorlogB switch 11 to 12 to 13 to 14 11
LSN will be created(incremented)during the log switch.

Database Writer (DBWR):
The Content that is Updated in Log buffer is updated into DB Buffer as Dirty Buffer Content and marks the content unavailable to Users.Dirty Buffer Content means the content that is updated in database buffer but not updated in Physical data files.DBWR is triggered in the following circumstances.
  • Check point interval 60 sec
  • For every 3 seconds
  • User requests for the Dirty buffer content(it will write to DB and respond back to the User)
  • When ever the DB Cache Space is not sufficient in DB Buffer to hold the content then Dirty buffer will be written to Disk
Checkpoint Process (CKPT):
When a checkpoint occurs, Oracle must update the headers of all datafiles to record the details of the checkpoint. This is done by the CKPT process.it does not write any files to disk.(except ckpt logs).

Arch Archival Process:
ARCH process is triggered by the Log switch.
when origlogA, origlogB ,MirrorlogA MirrorlogB
switch 11 to 12 to 13 to 14 11 the switch occurs by the time 14 is filled 11 has to be emptied else the redo logs are overwritten.it is enabled by using the parameter log_archive_start=true(1). This Parameter is set to 1 on Production Systems so that archive process is active to write to oraarch directory.if this parameter is set to ‘0’ or false then online redo log files are recycled without writing to oraarch.

Arch:
Process writes from online redo log files to oraarch directory upon Log Switch.For Every Log switch the Log Sequence Number is incremented by 1.
System Monitor(SMON):
It is used to start the system consistently when the system is terminated abnormally.it Checks the redo log files to Roll Forward/Redo the system and also reads from PSAPUNDO to roll back/UNDO the uncommitted transactions
Process Monitor(PMON):
It is used to monitor the processes starts the hanging processes
releases the locks .

Comments

Popular posts from this blog

SPOOL WORK PROCESS

ENQUEUE WORK PROCESS

DIALOG PROCESS