select
sum(bytes)/1024/1024 as size_in_megabyte,
segment_type, owner
from
dba_segments
where
OWNER in ('MEISPSN','MEISPAY','HRIS', 'NDMS')
and
segment_type like 'TABLE'
group by
segment_type, owner
order by owner;
ALL DB SIze in Megabytes
set lines 200
set pages 999
col "DBSize" format a10
col "Free" format a10
col "Used" format a10
select round(sum(used.bytes) / 1024 / 1024 ) || ' MB' "DBSize"
, round(sum(used.bytes) / 1024 / 1024 ) -
round(free.p / 1024 / 1024 ) || ' MB' "Used"
, round(free.p / 1024 / 1024 ) || ' MB' "Free"
from (select bytes
from v$datafile
union all
select bytes
from v$tempfile
union all
select bytes
from v$log) used
, (select sum(bytes) as p
from dba_free_space) free
group by free.p
/
ALL DB Size in GB
set lines 200
set pages 999
col "DBSize" format a10
col "Free" format a10
col "Used" format a10
select round(sum(used.bytes) / 1024 / 1024 / 1024 ) || ' GB' "DBSize"
, round(sum(used.bytes) / 1024 / 1024 / 1024 ) -
round(free.p / 1024 / 1024 / 1024 ) || ' GB' "Used"
, round(free.p / 1024 / 1024 / 1024 ) || ' GB' "Free"
from (select bytes
from v$datafile
union all
select bytes
from v$tempfile
union all
select bytes
from v$log) used
, (select sum(bytes) as p
from dba_free_space) free
group by free.p
/
Subscribe to:
Post Comments (Atom)
ALCATEL 6900
write memory copy running certified reload from working no rollback-timeout
-
grant execute on utl_http to wc grant execute on dbms_lock to wc; BEGIN DBMS_NETWORK_ACL_ADMIN.create_acl ( acl => &...
-
:system view system-view or sys :show all config dis current-configuration :create vlan vlan vlan_number :show ip interface ...
-
``` sda: add missing path sda: failed to get udev uid: Invalid argument sda: failed to get sysfs uid: Invalid argument sda: failed to ge...
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.