02 - Buffer Cache Tuning
02 - Buffer Cache Tuning
02 - Buffer Cache Tuning
Main Points
event, total_waits
v$system_event
event = free buffer waits
FROM
ORDER
Table creation
CREATE TABLE phone_list
( employee_id number,
phone_number varchar2(11),
extension varchar2(4))
TABLESPACE appl_tab
STORAGE (INITIAL 50K NEXT 50K PCTINCREASE 0)
CACHE;
Alter table
ALTER TABLE employee CACHE;
Use hint (caches table only for the query time)
SELECT
/*+ CACHE */
last_name,
first_name
FROM
employee;
SELECT
FROM
WHERE
owner,
table_name
dba_tables
LTRIM(cache) = Y;
TS_NAME
FILE_NUMBER BLOCKS
------------------------------ ----------- -----UNUSED
0
7177
SYSTEM
1
3149
RBS
TOOLS
PERFSTAT
TEST_2K
2
5
8
9
707
441
333
2