728x90
Test scenario:
CREATE TABLE aaa.test( x integer not null, y integer not null, z integer not null )
DB20000I The SQL command completed successfully.
alter table aaa.test pctfree 10 (테이블은 alter 작업필요)
DB20000I The SQL command completed successfully.
create index aaa.ind on aaa.test(x,z) pctfree 40 (인덱스는 생성시 지정가능함)
DB20000I The SQL command completed successfully.
select pctfree from syscat.indexes where indschema='AAA' and indname='IND'
PCTFREE
------- <<<<<<<<<<
40
1 record(s) selected.
insert into aaa.test with tmp(x,y,z) as ( values (1,1,1) union all select x+1, y+1, z+1 from tmp where x < 100 ) select * from tmp
DB20000I The SQL command completed successfully.
runstats on table aaa.test with distribution and detailed indexes all
DB20000I The RUNSTATS command completed successfully.
select pctfree from syscat.tables where tabschema='aaa' and tabname='TEST'
PCTFREE
-------
10 <<<<<<<<<<<<<
1 record(s) selected.
728x90
'Db2 > Db2 reference' 카테고리의 다른 글
How to calculate the DB2 transaction used log size without locking issue (0) | 2013.11.12 |
---|---|
Recommended AIX Virtual Memory Manager settings for DB2 database product (0) | 2013.06.19 |
Moving data using the CURSOR file type (0) | 2013.05.20 |
9.7부터 변경된 CHAR 스칼라 함수 동작 (dec_to_char_fmt) (0) | 2013.02.18 |
아카이브 로그 관리 (0) | 2012.08.24 |