SERVER/USER PROCESS! Flashcards

1
Q

USER PROCESS

A

Is used when a USER runs an application(SQLPLUS) program.

Runs the tool/application considered the CLIENT

Passes SQL to the SERVER PROCESS and receives results.

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

SERVER PROCESS

A
  1. Converts SQL statement into BINARY format ( machine Language)./Parse.
  2. It is either DEDICATED or SHARED by USER PROCESS.
  3. Places and must place Data in the Database BUFFER cache.
  4. Parses and Executes SQL statements.
  5. Reads Data Blocks from Disk into the SHARED Database BUFFERS of the SGA.
  6. Returns results to USER PROCESS.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

RULE of THUMB #1

A

Enable SHARED SERVERS when CONCURRENT USER connections would be greater than 50.

NB:

No PGA with shared SERVERS.

PGA is only with DEDICATED servers.

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

RULE of THUMB #2

A

When creating a Database, set the SGA to not more than 40% of the SERVER’S MEMORY so as to have room for growth/ future growth of the SGA, PGA, O/S and other processes.

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

BACKGROUND PROCESSES (DBWr)

A
  1. Writes CONTENTS (dirty buffers) to Data_Files.
  2. Primary Job is to keep the Oracle Database buffer CLEAN.
  3. Writes Least Recently Used (LRU) DIRTY buffers to DISK first.
  4. Writes to Data_Files in optimal batch.
  5. Only process that writes directly to Data_Files.
  6. Mandatory Process.

NB:

***DBWn (n=0-9) Writes to Data_Files when:

a. A Server Process CANNOT find a CLEAN reusable buffer. i.e There are NO FREE buffers/FREE buffers NOT available.

A USER’S SERVER process has searched too long for a FREE buffer when reading a buffer cache.

b. At same Checkpoint.
c. When dirty buffers reach a certain THRESHOLD.

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

CTr (Change Track Writer)

A

Records info about blocks that have CHANGED since RMAN backup.

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

RvWr (Recovery Writer)

A

Writes MODIFIED blocks to FLASHBACK logs.

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

LGWr (Log Writer Process)

A

Writes Redo log buffer to the Redo log file on Disk.

Writes when:

a. A User COMMITS a transaction.
b. Redo log buffer is ONE THIRD full.

COMMIT command - Allows USERS to save transactions that have been made against a Database.

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

SMON

A
  1. Performs Automatic Instance Recovery.
  2. Reclaims Space used by temporary Segments no longer in use i.e De-allocated.
  3. COALESCES - i.e Put together free spaces for use.
  4. Resolves Segment Fragmentation.
  5. Primarily CLEANS UP SERVE side.
  6. Mandatory Process.[ps -ef | grep smon]

If you don see smon after grep, then it means NO Data on the machine.

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

PMON

A
  1. Performs automatic process recovery.

Cleans up abnormally terminated connections.

Rolls back non committed transactions.

Releases resources held by abnormally terminated transactions.

  1. RESTARTS failed Shared Server and Dispatcher Process.
  2. Wakes up regularly to check whether it is needed or it may be called directly.
  3. Primarily cleans up CLIENT-side failures(USERS).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly