0

I'm having trouble making a query with the following output, Schema Name, Size and Creation Date. I'm new to Oracle and after more than 4 hours of searching I decided to create a question here.

I found the following query that returns name and size.

select owner, sum(bytes)/1024/1024 Size_MB from dba_segments
group by owner;
asked Mar 12, 2020 at 17:50

1 Answer 1

2
select u.username, 
 u.created, 
 round(nvl(sum(s.bytes)/1024/1024,0),2) size_mb
 from dba_users u
 left outer join dba_segments s on (s.owner = u.username)
 group by u.username, u.created
 order by u.username;
answered Mar 13, 2020 at 3:30
1
  • Thank you very much you saved my day Commented Mar 13, 2020 at 20:12

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.