(I've added continuation dashes to make the select more readable)
select -
(sum(bk.bfsize )/1048576) as front_end_size_mega_byte, -
count(bk.bfsize ) as number_of_objects -
from -
backups b, backup_objects bk -
where -
b.state='ACTIVE_VERSION' -
and -
b.object_id=bk.objid -
and -
b.filespace_id in -
( select f.filespace_id -
from filespaces f -
where -
b.node_name=f.node_name -
and -
f.filespace_id=b.filespace_id -
and -
f.filespace_type not like 'API:%' -
and -
f.filespace_type not like 'TDP%' -
) -
and -
b.node_name in -
( select node_name -
from nodes -
where repl_mode not in('RECEIVE','SYNCRECEIVE') -
)
NOTE: This command can take a somewhat considerable amount of time to run. I have seen it take upwards of 10+ minutes to complete when run during our non-backup window times. Be patient!
No comments:
Post a Comment