Computer_IT/DBMS

KEEP 버퍼풀 지침

고급코드 2007. 10. 10. 16:27
반응형


SQL> conn hr/hr
연결되었습니다.
SQL> select segment_name, blocks from user_segments
  2  where segment_name = 'K_EMP';

SEGMENT_NAME
-------------------------------------------------------------
    BLOCKS
----------
K_EMP
         8


SQL> select table_name, blocks, empty_blocks from user_tables
  2  where table_name='K_EMP';

TABLE_NAME                         BLOCKS EMPTY_BLOCKS
------------------------------ ---------- ------------
K_EMP

SQL> analyze table k_emp compute statistics;

테이블이 분석되었습니다.

SQL> select table_name, blocks, empty_blocks from user_tables
  2  where table_name = 'K_EMP';

TABLE_NAME                         BLOCKS EMPTY_BLOCKS
------------------------------ ---------- ------------
K_EMP                                   5            3

SQL> rem KEEP 되는 BLOCK의 갯수 5개....
SQL>

반응형