How to find the size of schema in the 23AI ORACLE Database.
SQL> select sum(bytes)/1024/1024 "SIZE_IN_MB" from dba_segments;
SUM(BYTES)/1024/1024
--------------------
1986.286
SQL> select sum(bytes)/1024/1024/1024 "SIZE_IN_GB" from dba_segments;
SQL> select owner,sum(bytes) from dba_segments group by owner;
SQL> select OWNER,sum(bytes)/1024/1024 "SIZE_IN_MB" from dba_segments group by owner order by owner;
SQL > select owner, sum(bytes)/1024/1024/1024 "SIZE_IN_GB" from dba_segments group by owner;
SQL > SELECT sum(bytes)/1024/1024/1024 "SIZE_IN_GB" FROM dba_segments WHERE owner = 'SYSTEM';
#How to find the size of the table within schema#
SLQ > select segment_name,segment_type, sum(bytes/1024/1024/1024) GB from dba_segments
where owner='apps' and segment_type='TABLE' group by segment_name,segment_type;
No comments:
Post a Comment