select a.owner, a.object_name, a.object_type, a.created,b.insert, b.update, b.delete
From dba_objects a, dba_tab_modifications b
Where a.object_type = 'TABLE'
And a.owner = b.table_owner(+) and a.object_name = b.table_name(+);
여기에 위 결과값 맨 오른쪽에 테이블별 사이즈를 붙이고 싶은데 방법이 잇을까요?
테이블별 크기는 아래 문장으로 되는데 이 결과를
위 결과와 같이 봐야하는데 방법을 모르겟네요.
select segment_name,sum(bytes)
From dba_extents
group by segment_name
SELECT a.owner
, a.object_name
, a.object_type
, a.created
, b.inserts
, b.updates
, b.deletes
, c.bytes
FROM dba_objects a
, dba_tab_modifications b
, (SELECT a.segment_objd
, SUM(b.bytes) bytes
FROM sys_dba_segs a
, dba_extents b
WHERE a.owner = b.owner
AND a.segment_name = b.segment_name
AND b.segment_type LIKE 'TABLE'
GROUP BY a.segment_objd
) c
WHERE a.object_type = 'TABLE'
AND a.owner = b.table_owner (+)
AND a.object_name = b.table_name (+)
AND a.object_id = c.segment_objd(+)
;