The 3s of Oracle...ARCHITECTURE. Flashcards

1
Q

The 3’s of Oracle Architecture.

A

Oracle is divided into 3 main components.

  1. Memory
  2. Processes
  3. Physical Files.

Memory + Processes = Oracle Instance.

Memory + Processes + Physical files = ORACLE DB.

Physical File or Disk = [ Data_files + Control_files + Redo log files]

Processes = [ Background processes + Server Processes + User Processes]

Memory( sga ) = [ Shared Pool + Buffer cache + Redo log buffer ]

INSTANCE =[ SGA + Background Processes ]

User Process [ types sqlplus i.e starting a user process for a Database.

User then connects to server

Server then to Database listener….

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

ROW CHAINING

A

Row too big for one block and so divided into MULTIPLE blocks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ROW MIGRATION

A

When UPDATE is bigger than FREE SPACE and Oracle moves the ENTIRE ROW to a different BLOCK.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

DATA BUFFER CACHE

A
  1. Used to hold Data Blocks read from Data_Files by SERVER.
  2. Contains DIRTY or MODIFIED Blocks and CLEAN or UNUSED or UNCHANGED Blocks.

DIRTY and CLEAN Blocks are managed in lists called DIRTY LIST and the LRU.

LRU - Least Recently Used.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

FREE SPACE

A

Is created by DBWr writing out DIRTY Blocks from LRU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

REDO LOG BUFFER CACHE

A

A CIRCULAR BUFFER that contains redo entries(changes)

Runs every 3 SECONDS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

SHARED POOL

A

Consists multiple smaller areas:

  1. LIBRARY CACHE
    a. Shared SQL area - contains parsed SQL and execution plans for statements against the Database.
    b. Procedure and Package Storage.
  2. DICTIONARY CACHE aka ROW CACHE
    a. Contains NAMES of all TABLES, VIEWS and Data_Types in the Database.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

PGA (Program or Process Global Area)

A
  1. Used for a SINGLE process.
  2. NOT SHAREABLE with other processes. One per process.
  3. WRITABLE ONLY by the SERVER process.
  4. Allocated when a process is CREATED and De- allocated when process is TERMINATED.
  5. Maps USER process to SGA.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly