Zusammenfassung der Ressource
Self Tuning of Oracle Database Using
SQL Scripts
- The Oracle professionals or DBA’s
Anmerkungen:
- The Oracle professionals or DBA’s
- must know accurately predict the 'high-water'
mark of RAM demands
- They must reserve enough memory to accommodate the user connections
- the goal is to keep as memory RAM Connections demanded database
- that can precisely control the amount of RAM which it is used by the database instance System
Global Area (SGA).
- the Oracle database administrator can issue alter system command to change the RAM memory
areas, and can grow and shrink the RAM memory areas on as needed basis.
- ORACLE
- is a
combination
- Oracle Instance
- Datafiles Again Oracle Instance
- TYPES OF
MEMORY
- SGA (System
Global Area)
- fixed
- is a component of the SGA that varies in size
from platform to platform
- variable
- main components
- Database Buffer Cache
- This is used to hold the data into the memory
- Redo Log
Buffer
- This memory block hold the data which is going to be written
to redo log file.
- Shared Pool
- This contains 2 memory section, 1) Library Cache 2)
Dictionary Cache
- Large Pool
- used for heavy operations such as bulk copy
during backup or during restore operation.
- They can alter the size of each of the components manually using ALTER
SYSTEM
- the size is determined by INIT.ORA parameters.++
- data structure
- Database buffer cache
- Redo log buffer
- Shared pool
- Java pool
- Large pool (optional)
- Data dictionary cache
- Other miscellaneous information
- PGA (Program Global Area)
- contains information about bind variables, sort
areas, and other aspect of cursor handling
- each user has its own PGA.
- the value upon which the user
want to execute the select or
update statement cannot be
shared
- cache
- Default Cache
- Keep Cache
- Recycle Cache
- If we define the cache size using DB_CACHE_SIZE (or DB_BLOCK_BUFFER and
specify the block size) then this will be default cache
- has a limited
size
- Shared Pool Reserved Size
- contains the parsed SQL statements and execution
plans.
- New parsed SQL and execution
plans comes and old one gets aged
out and hence overwritten.
- SHARED_POOL_RESERVED_SIZE. This will reserve
some additional space other then
- Process Architecture
- categories
- Server Process
- Background Process
- Database writer (DBWn)
- writes the contents of buffers to
datafiles.
- Log Writer (LGWR) – The log writer process
- writes all redo entries that have been copied into the
buffer since the last time it wrote
- Checkpoint (CKPT)
- When a checkpoint occurs, Oracle must update the headers of all datafiles to record the details of
the checkpoint
- System Monitor (SMON)
- performs crash recovery, if
necessary
- responsible for cleaning up temporary segments that are no longer
in use