Buffer Cache Advisory

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 8

Microsoft Windows XP [Version 5.1.

2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Steve>sqlplus
SQL*Plus: Release 9.2.0.1.0 - Production on Mon Jul 27 22:32:24 2009
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Enter user-name: sys as sysdba
Enter password:
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL>
SQL>
SQL>
SQL> show parameter db_chach
SQL>
SQL>
SQL>
SQL> show parameter db_cache
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_cache_advice string ON
db_cache_size big integer 25165824
SQL>
SQL>
SQL> set linesize 1000
SQL> set wrap off
SQL>
SQL>
SQL>
SQL> select * from v$db_cache_advice;
ID NAME BLOCK_SIZE ADV SIZE_FOR_ESTIMATE SIZE_FACTOR BUF
FERS_FOR_ESTIMATE ESTD_PHYSICAL_READ_FACTOR ESTD_PHYSICAL_READS
---------- -------------------- ---------- --- ----------------- ----------- ---
----------------- ------------------------- -------------------
3 DEFAULT 8192 ON 4 .1667
500 2.5128 1739
3 DEFAULT 8192 ON 8 .3333
1000 1 692
3 DEFAULT 8192 ON 12 .5
1500 1 692
3 DEFAULT 8192 ON 16 .6667
2000 1 692
3 DEFAULT 8192 ON 20 .8333
2500 1 692
3 DEFAULT 8192 ON 24 1
3000 1 692
3 DEFAULT 8192 ON 28 1.1667
3500 1 692
3 DEFAULT 8192 ON 32 1.3333
4000 1 692
3 DEFAULT 8192 ON 36 1.5
4500 1 692
3 DEFAULT 8192 ON 40 1.6667
5000 1 692
3 DEFAULT 8192 ON 44 1.8333
5500 1 692
ID NAME BLOCK_SIZE ADV SIZE_FOR_ESTIMATE SIZE_FACTOR BUF
FERS_FOR_ESTIMATE ESTD_PHYSICAL_READ_FACTOR ESTD_PHYSICAL_READS
---------- -------------------- ---------- --- ----------------- ----------- ---
----------------- ------------------------- -------------------
3 DEFAULT 8192 ON 48 2
6000 1 692
3 DEFAULT 8192 ON 52 2.1667
6500 1 692
3 DEFAULT 8192 ON 56 2.3333
7000 1 692
3 DEFAULT 8192 ON 60 2.5
7500 1 692
3 DEFAULT 8192 ON 64 2.6667
8000 1 692
3 DEFAULT 8192 ON 68 2.8333
8500 1 692
3 DEFAULT 8192 ON 72 3
9000 1 692
3 DEFAULT 8192 ON 76 3.1667
9500 1 692
3 DEFAULT 8192 ON 80 3.3333
10000 1 692
20 rows selected.
SQL>
SQL>
SQL> show parameter db
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_16k_cache_size big integer 0
db_2k_cache_size big integer 0
db_32k_cache_size big integer 0
db_4k_cache_size big integer 0
db_8k_cache_size big integer 0
db_block_buffers integer 0
db_block_checking boolean FALSE
db_block_checksum boolean TRUE
db_block_size integer 8192
db_cache_advice string ON
db_cache_size big integer 25165824
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_create_file_dest string
db_create_online_log_dest_1 string
db_create_online_log_dest_2 string
db_create_online_log_dest_3 string
db_create_online_log_dest_4 string
db_create_online_log_dest_5 string
db_domain string
db_file_multiblock_read_count integer 16
db_file_name_convert string
db_files integer 200
db_keep_cache_size big integer 0
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_name string db2
db_recycle_cache_size big integer 0
db_writer_processes integer 1
dblink_encrypt_login boolean FALSE
dbwr_io_slaves integer 0
rdbms_server_dn string
standby_archive_dest string %ORACLE_HOME%\RDBMS
standby_file_management string MANUAL
SQL> alter system set db_4k_cache_size=8M;
alter system set db_4k_cache_size=8M
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-00384: Insufficient memory to grow cache

SQL> select 25165824/1024/1024 from dual;


25165824/1024/1024
------------------
24
SQL>
SQL>
SQL> alter system set db_cache_size=16M;
System altered.
SQL>
SQL>
SQL> alter system set db_4k_cache_size=8M;
System altered.
SQL>
SQL>
SQL> select * from v$db_cache_advice;
ID NAME BLOCK_SIZE ADV SIZE_FOR_ESTIMATE SIZE_FACTOR BUF
FERS_FOR_ESTIMATE ESTD_PHYSICAL_READ_FACTOR ESTD_PHYSICAL_READS
---------- -------------------- ---------- --- ----------------- ----------- ---
----------------- ------------------------- -------------------
3 DEFAULT 8192 ON 4 .25
500 0
3 DEFAULT 8192 ON 8 .5
1000 0
3 DEFAULT 8192 ON 12 .75
1500 0
3 DEFAULT 8192 ON 16 1
2000 0
3 DEFAULT 8192 ON 20 1.25
2500 0
3 DEFAULT 8192 ON 24 1.5
3000 0
3 DEFAULT 8192 ON 28 1.75
3500 0
3 DEFAULT 8192 ON 32 2
4000 0
3 DEFAULT 8192 ON 36 2.25
4500 0
3 DEFAULT 8192 ON 40 2.5
5000 0
3 DEFAULT 8192 ON 44 2.75
5500 0
ID NAME BLOCK_SIZE ADV SIZE_FOR_ESTIMATE SIZE_FACTOR BUF
FERS_FOR_ESTIMATE ESTD_PHYSICAL_READ_FACTOR ESTD_PHYSICAL_READS
---------- -------------------- ---------- --- ----------------- ----------- ---
----------------- ------------------------- -------------------
3 DEFAULT 8192 ON 48 3
6000 0
3 DEFAULT 8192 ON 52 3.25
6500 0
3 DEFAULT 8192 ON 56 3.5
7000 0
3 DEFAULT 8192 ON 60 3.75
7500 0
3 DEFAULT 8192 ON 64 4
8000 0
3 DEFAULT 8192 ON 68 4.25
8500 0
3 DEFAULT 8192 ON 72 4.5
9000 0
3 DEFAULT 8192 ON 76 4.75
9500 0
3 DEFAULT 8192 ON 80 5
10000 0
5 DEFAULT 4096 ON 4 .5
979 0
5 DEFAULT 4096 ON 8 1
1958 0
ID NAME BLOCK_SIZE ADV SIZE_FOR_ESTIMATE SIZE_FACTOR BUF
FERS_FOR_ESTIMATE ESTD_PHYSICAL_READ_FACTOR ESTD_PHYSICAL_READS
---------- -------------------- ---------- --- ----------------- ----------- ---
----------------- ------------------------- -------------------
5 DEFAULT 4096 ON 12 1.5
2937 0
5 DEFAULT 4096 ON 16 2
3916 0
5 DEFAULT 4096 ON 20 2.5
4895 0
5 DEFAULT 4096 ON 24 3
5874 0
5 DEFAULT 4096 ON 28 3.5
6853 0
5 DEFAULT 4096 ON 32 4
7832 0
5 DEFAULT 4096 ON 36 4.5
8811 0
5 DEFAULT 4096 ON 40 5
9790 0
5 DEFAULT 4096 ON 44 5.5
10769 0
5 DEFAULT 4096 ON 48 6
11748 0
5 DEFAULT 4096 ON 52 6.5
12727 0
ID NAME BLOCK_SIZE ADV SIZE_FOR_ESTIMATE SIZE_FACTOR BUF
FERS_FOR_ESTIMATE ESTD_PHYSICAL_READ_FACTOR ESTD_PHYSICAL_READS
---------- -------------------- ---------- --- ----------------- ----------- ---
----------------- ------------------------- -------------------
5 DEFAULT 4096 ON 56 7
13706 0
5 DEFAULT 4096 ON 60 7.5
14685 0
5 DEFAULT 4096 ON 64 8
15664 0
5 DEFAULT 4096 ON 68 8.5
16643 0
5 DEFAULT 4096 ON 72 9
17622 0
5 DEFAULT 4096 ON 76 9.5
18601 0
5 DEFAULT 4096 ON 80 10
19580 0
40 rows selected.
SQL> show parameter keep
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
buffer_pool_keep string
control_file_record_keep_time integer 7
db_keep_cache_size big integer 0
SQL>
SQL>
SQL> alter system set db_4k_cache_size=4M;
System altered.
SQL> alter system set db_keep_cache_size=4m;
System altered.
SQL> select * from v$db_cache_advice;
ID NAME BLOCK_SIZE ADV SIZE_FOR_ESTIMATE SIZE_FACTOR BUF
FERS_FOR_ESTIMATE ESTD_PHYSICAL_READ_FACTOR ESTD_PHYSICAL_READS
---------- -------------------- ---------- --- ----------------- ----------- ---
----------------- ------------------------- -------------------
1 KEEP 8192 ON 4 1
500 0
1 KEEP 8192 ON 8 2
1000 0
1 KEEP 8192 ON 12 3
1500 0
1 KEEP 8192 ON 16 4
2000 0
1 KEEP 8192 ON 20 5
2500 0
1 KEEP 8192 ON 24 6
3000 0
1 KEEP 8192 ON 28 7
3500 0
1 KEEP 8192 ON 32 8
4000 0
1 KEEP 8192 ON 36 9
4500 0
1 KEEP 8192 ON 40 10
5000 0
1 KEEP 8192 ON 44 11
5500 0
ID NAME BLOCK_SIZE ADV SIZE_FOR_ESTIMATE SIZE_FACTOR BUF
FERS_FOR_ESTIMATE ESTD_PHYSICAL_READ_FACTOR ESTD_PHYSICAL_READS
---------- -------------------- ---------- --- ----------------- ----------- ---
----------------- ------------------------- -------------------
1 KEEP 8192 ON 48 12
6000 0
1 KEEP 8192 ON 52 13
6500 0
1 KEEP 8192 ON 56 14
7000 0
1 KEEP 8192 ON 60 15
7500 0
1 KEEP 8192 ON 64 16
8000 0
1 KEEP 8192 ON 68 17
8500 0
1 KEEP 8192 ON 72 18
9000 0
1 KEEP 8192 ON 76 19
9500 0
1 KEEP 8192 ON 80 20
10000 0
3 DEFAULT 8192 ON 4 .25
500 0
3 DEFAULT 8192 ON 8 .5
1000 0
ID NAME BLOCK_SIZE ADV SIZE_FOR_ESTIMATE SIZE_FACTOR BUF
FERS_FOR_ESTIMATE ESTD_PHYSICAL_READ_FACTOR ESTD_PHYSICAL_READS
---------- -------------------- ---------- --- ----------------- ----------- ---
----------------- ------------------------- -------------------
3 DEFAULT 8192 ON 12 .75
1500 0
3 DEFAULT 8192 ON 16 1
2000 0
3 DEFAULT 8192 ON 20 1.25
2500 0
3 DEFAULT 8192 ON 24 1.5
3000 0
3 DEFAULT 8192 ON 28 1.75
3500 0
3 DEFAULT 8192 ON 32 2
4000 0
3 DEFAULT 8192 ON 36 2.25
4500 0
3 DEFAULT 8192 ON 40 2.5
5000 0
3 DEFAULT 8192 ON 44 2.75
5500 0
3 DEFAULT 8192 ON 48 3
6000 0
3 DEFAULT 8192 ON 52 3.25
6500 0
ID NAME BLOCK_SIZE ADV SIZE_FOR_ESTIMATE SIZE_FACTOR BUF
FERS_FOR_ESTIMATE ESTD_PHYSICAL_READ_FACTOR ESTD_PHYSICAL_READS
---------- -------------------- ---------- --- ----------------- ----------- ---
----------------- ------------------------- -------------------
3 DEFAULT 8192 ON 56 3.5
7000 0
3 DEFAULT 8192 ON 60 3.75
7500 0
3 DEFAULT 8192 ON 64 4
8000 0
3 DEFAULT 8192 ON 68 4.25
8500 0
3 DEFAULT 8192 ON 72 4.5
9000 0
3 DEFAULT 8192 ON 76 4.75
9500 0
3 DEFAULT 8192 ON 80 5
10000 0
5 DEFAULT 4096 ON 4 1
979 0
5 DEFAULT 4096 ON 8 2
1958 0
5 DEFAULT 4096 ON 12 3
2937 0
5 DEFAULT 4096 ON 16 4
3916 0
ID NAME BLOCK_SIZE ADV SIZE_FOR_ESTIMATE SIZE_FACTOR BUF
FERS_FOR_ESTIMATE ESTD_PHYSICAL_READ_FACTOR ESTD_PHYSICAL_READS
---------- -------------------- ---------- --- ----------------- ----------- ---
----------------- ------------------------- -------------------
5 DEFAULT 4096 ON 20 5
4895 0
5 DEFAULT 4096 ON 24 6
5874 0
5 DEFAULT 4096 ON 28 7
6853 0
5 DEFAULT 4096 ON 32 8
7832 0
5 DEFAULT 4096 ON 36 9
8811 0
5 DEFAULT 4096 ON 40 10
9790 0
5 DEFAULT 4096 ON 44 11
10769 0
5 DEFAULT 4096 ON 48 12
11748 0
5 DEFAULT 4096 ON 52 13
12727 0
5 DEFAULT 4096 ON 56 14
13706 0
5 DEFAULT 4096 ON 60 15
14685 0
ID NAME BLOCK_SIZE ADV SIZE_FOR_ESTIMATE SIZE_FACTOR BUF
FERS_FOR_ESTIMATE ESTD_PHYSICAL_READ_FACTOR ESTD_PHYSICAL_READS
---------- -------------------- ---------- --- ----------------- ----------- ---
----------------- ------------------------- -------------------
5 DEFAULT 4096 ON 64 16
15664 0
5 DEFAULT 4096 ON 68 17
16643 0
5 DEFAULT 4096 ON 72 18
17622 0
5 DEFAULT 4096 ON 76 19
18601 0
5 DEFAULT 4096 ON 80 20
19580 0
60 rows selected.
SQL>

You might also like