Filas Por Bloque

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

1 SELECT

2 count(*) as "Rows per Block"


3 FROM tabla
4 WHERE
5 dbms_rowid.rowid_block_number(rowid) =
6 (
7 SELECT
8 min(dbms_rowid.rowid_block_number(rowid))
9 FROM tabla
10 );
11 select avg( "Rows_per_Block")
12 from (SELECT dbms_rowid.rowid_block_number(rowid) bloque,
13 count(*) as "Rows_per_Block"
14 FROM tabla
15 --WHERE
16 -- dbms_rowid.rowid_block_number(rowid) =
17 -- (
18 -- SELECT
19 -- min(dbms_rowid.rowid_block_number(rowid))
20 -- FROM tabla
21 -- )
22 group by dbms_rowid.rowid_block_number(rowid))
23 --group by bloque
24 ;
25
26
27
28 Select * from dba_tables where table_name like 'TABLA%';
29 select * from dba_segments where segment_name in (select table_name from dba_tables
where table_name like 'TABLA%') ;
30

You might also like