728x90
exec dbms_stats.gather_table_stats(ownname => '', tabname=>'', estimate_percent=>100, block_sample=>true, method_opt=>'FOR ALL COLUMNS size 254');
declare
l_used_bytes number;
l_alloc_bytes number;
begin
dbms_space.create_index_cost (
ddl => '',
used_bytes => l_used_bytes,
alloc_bytes => l_alloc_bytes
);
dbms_output.put_line ('Used Bytes =' || l_used_bytes);
dbms_output.put_line ('Allocated Bytes =' || l_used_bytes);
end;
/
728x90
반응형
'Oracle > Admin' 카테고리의 다른 글
[Oracle]Index fragmentation (0) | 2024.02.20 |
---|---|
[Oracle] Bitmap Index (0) | 2024.02.20 |
[Oracle] SQL PLAN 고정 방법 2가지 (0) | 2024.02.07 |
[Oracle] Dynamic Statistics (0) | 2023.12.07 |
[Oracle] 패치 (2) | 2023.11.09 |