Why is the value set to 4194304 and not to 2516582?

You have executed this command to change the size of the database buffer cache:
SQL> ALTER SYSTEM SET DB_CACHE_SIZE=2516582;
System altered. To verify the change in size, you executed this command:
SQL> SHOW PARAMETER DB_CACHE_SIZE
NAME TYPE VALUE
——————- ———– ——————
db_cache_size big integer 4194304
Why is the value set to 4194304 and not to 2516582?

You have executed this command to change the size of the database buffer cache:
SQL> ALTER SYSTEM SET DB_CACHE_SIZE=2516582;
System altered. To verify the change in size, you executed this command:
SQL> SHOW PARAMETER DB_CACHE_SIZE
NAME TYPE VALUE
——————- ———– ——————
db_cache_size big integer 4194304
Why is the value set to 4194304 and not to 2516582?

A.
Because 4194304 is the granule size

B.
Because 4194304 is the standard block size

C.
Because 4194304 is the largest nonstandard block size defined in the database

D.
Because 4194304 is the total size of data already available in the database buffer cache



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Piyali

Piyali

Can anyone explain this?

Eamon

Eamon

I think the answer is D simply because the other answers are non nonsensical. Lets see if it appears in 1Z0-052 (v.3), until then …..

jean

jean

sys@TEST0924> select 2516582/1024/1024 from dual;
2516582/1024/1024
—————–
2.39999962
sys@TEST0924> select 4194304/1024/1024 from dual;
4194304/1024/1024
—————–
4
All SGA components allocate and deallocate space in units of granules. Oracle Database tracks SGA memory use in internal numbers of granules for each SGA component.
The memory for dynamic components in the SGA is allocated in the unit of granules. The granule size is determined by the amount of SGA memory requested when the instance starts. Specifically, the granule size is based on the value of the SGA_MAX_SIZE initialization parameter. Table 6-1shows the granule size for different amounts of SGA memory.
Table 6-1 Granule Size
SGA Memory Amount Granule Size
Less than or equal to 1 GB
4 MB
Greater than 1 GB and less than or equal to 8 GB
16 MB
Greater than 8 GB and less than or equal to 16 GB
32 MB
Greater than 16 GB and less than or equal to 32 GB
64 MB
Greater than 32 GB and less than or equal to 64 GB
128 MB
Greater than 64 GB and less than or equal to 128 GB
256 MB
Greater than 128 GB
512 MB
You can query the V$SGAINFO view to see the granule size that is being used by an instance. The same granule size is used for all components in the SGA.
If you specify a size for a component that is not a multiple of granule size, Oracle Database rounds the specified size up to the nearest multiple. For example, if the granule size is 4 MB and you specify DB_CACHE_SIZE as 10 MB, the database actually allocates 12 MB.

rosh

rosh

All SGA components allocate and deallocate space in units of granules.