在建表时将频繁使用并且需要大量i/o操作的表,建议放入buffer_pool keep 池当中,可以最小化检索表中数据块所需要的i/o。
建表是添加
SQL> create table s1 (name varchar2(10)) storage (BUFFER_POOL KEEP);
Table created.
修改缓存池
SQL> alter table s1 storage (buffer_pool recycle);
Table altered.
取消表缓存
SQL> alter table s1 nocache;
Table altered.
设置默认缓存区缓存
SQL> alter table s1 cache; = alter table s1 storage (buffer_pool default);
Table altered.
查看keep池大小
SQL> show parameter keep
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
buffer_pool_keep string
control_file_record_keep_time integer 7
db_keep_cache_size big integer 20M
修改keep池大小
SQL> alter system set db_keep_cache_size=20m;
System altered.