Documente Academic
Documente Profesional
Documente Cultură
SQL> show parameters area_size NAME TYPE VALUE ------------------------------------ ----------- --------bitmap_merge_area_size integer 1048576 create_bitmap_area_size integer 8388608 hash_area_size integer 1048576 sort_area_size integer 524288 workarea_size_policy string MANUAL
set pages 999; column pga_size format 999,999,999 select 1048576+a.value+b.value pga_size from v$parameter a, v$parameter b where a.name = 'sort_area_size' and b.name = 'hash_area_size' ;
Now, if we were to multiply the number of connected users by the total PGA demands for each connected user, we will know exactly how much RAM memory in order to reserve for connected sessions.
let's assume that we have a high-water mark of 100 connects sessions to our Oracle database server. We multiply 100 by the total area for each PGA memory region, and we can now determine the maximum size of our SGA: Total RAM on Windows Server 1250 MB Less: Total PGA regions for 10 users: 362 MB RAM reserved for Windows (20 percent) 500 MB ---------862 MB Hence, we would want to adjust the RAM to the data buffers in order to make the SGA size less than 388 MB. Any SGA size greater than 388 MB, and the server will start RAM paging, adversely affecting the performance of the entire server. The final task is to size the Oracle SGA such that the total memory involved does not exceed 388 MB As a review, the size of an Oracle SGA is based upon the following parameter settings:
shared_pool_size This sizes the administrative RAM for Oracle and the library cache. db_cache_size This parameter determines the size of the RAM for the data buffers large_pool_size The size of the Java pool log_buffer The size of the RAM buffer for redo logs
In general, the most variable of these parameters is db_cache_size. Because Oracle has an almost insatiable appetite for RAM data buffers, most DBAs add additional RAM to the db_cache_size.
Let's take a closer look at the MS-Windows performance monitor. figure 2 is a time-based snapshot of an Oracle databases resource consumption at startup time. These lines form signatures (known usage patterns) that reveals some interesting patterns inside Oracle:
RAM Usage The yellow line is RAM usage, and we see the first spike in the RAM when the SGA is allocated and a short spike in RAM as the database is mounted. DISK Usage The blue line is the disk I/O, and we see the disk I/O activity peg at the point where we mount the database. This is because Oracle must touch every data file header to read the system change number (SCN). CPU Usage The green line is CPU and it is interesting to note that the CPU never goes above 50 percent during Oracle database startup.