001 Exploring the Database Architecture Flashcards

1
Q

An oracle server consists of the following two entities

A

the instance and the database

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

The instance consists of

A

memory structures and processes

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

The database consists of

A

files on disk

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

During the creation process

A

the instance is created

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

During the startup process

A

first the instance is started and then the database is opened

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

The logical structures (e.g. tables) are … related to physical structures (datafiles)

A

not directly

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

The processes that make up the instance are known as

A

background processes

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

The memmory structures| which are implemented in shared memory segments| are known as the

A

SGA (system global area)

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

User sessions consist of

A

a user process running locally to the user machine connecting to a server process

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

User sessions are referred to as

A

foreground processes

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

Each server process is associated with

A

an area of non-shareable memory| the PGA (program global area)

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

The PGA is … to the session

A

private

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

The shared pool consists of

A

Library Cache|Data Dictionary cache|PL/SQL area|SQL query and PL/SQL function result caches

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

The size of the shared pool buffer

A

is dynamic and can be automatically managed

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

The size of the log buffer

A

is static| fixed and cannot be automatically managed

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

The library cache stores

A

recently executed code in its parsed form

17
Q

The data dictionary cache stores the following recently used object definitions

A

descriptions of tables| indexes| users| and other metadata definitions

18
Q

Are object definitions in the SGA available for all sessions?

A

yes

19
Q

Stored PL/SQL objects are

A

procedures| functions| packaged procedures and functions| object type definitions| and triggers

20
Q

Explain the disadvantages of anonymous PL/SQL

A

is issued from user processes| cannot be cached but must be compiled dynamically| worse performance

21
Q

The SQL Query and PL/SQL Function Result Cache …

A

stores the results of queries and invalidates the results on table updates

22
Q

Problems of undersized shared pools

A

parsed statements are not cached long enough and have to be parsed again| there is a minimum size

23
Q

Problems of oversized shared pools

A

It takes too long to search it

24
Q

Algorithm for allocating memory in the shared pool

A

LRU (Least recently used)

25
Q

The shared pool is allocated at

A

instance startup time

26
Q

The resizing of the shared pool can be done

A

during runtime either manual or automatic

27
Q

The large pool is

A

optional| used by shared server processes | parallel execution servers

28
Q

If the large pool doesn’t exist| the

A

processes use shared pool instead

29
Q

The size of the large pool

A

is dynamic and can be automatically managed

30
Q

The size of the Java pool

A

is dynamic and can be automatically managed

31
Q

The resizing of the large pool can be done

A

during runtime either manual or automatic

32
Q

The resizing of the Java pool can be done

A

during runtime either manual or automatic

33
Q

The size of the Streams pool

A

is dynamic and can be automatically managed

34
Q

The resizing of the Streams pool can be done

A

during runtime either manual or automatic

35
Q

Connect to the database as system

A

sqlplus / as system

36
Q

Show the current| maximum| and minimum sizes of the SGA components that can be dynamically resized

A

select COMPONENT|CURRENT_SIZE|MIN_SIZE|MAX_SIZE from v$sga_dynamic_components|

37
Q

Determine how much memory has been and is currently allocated to program global area

A

select name|value from v$pgastat where name in (‘maximum PGA allocated’|’total PGA allocated’)|