How to check size of a schema in Oracle

Check Schema size in Oracle

A schema in an Oracle database is defined as a collection of database objects and is owned by a database user. The schema name shares the same name as the user due to which both the terms are sometimes used interchangeably though they are not the same. 


The below query will be useful while performing activities like export-import, request from the application team, pre-checks before performing any schema level activities.


Below is SQL query to find schema size in MB or GB. 
Click here for sample output.

col OWNER for a30
col SCHEMA_SIZE_MB for 999999
select owner,sum(bytes)/1024/1024 schema_size_MB from dba_segments where owner='TESTUSER4' group by owner;
prompt $$$$$$$**Welcome to DBsGuru!**Share Learn Grow**$$$$$$$

OR 

col OWNER for a30
select owner,sum(bytes)/1024/1024/1024 schema_size_GB from dba_segments where owner='TESTUSER4' group by owner;
prompt $$$$$$$**Welcome to DBsGuru!**Share Learn Grow**$$$$$$$


We always encourage the technical person to visit section SCRIPTS to get more daily usage SQL commands.

Hope so you like this script!
Please share your valuable feedback/comments/subscribe and follow us below and don’t forget to click on the bell icon to get the most recent update. Click here to know more about our pursuit.

 453 total views,  1 views today

How useful was this post?

Click on a star to rate it!

Average rating 3 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Spread the love

2 thoughts on “<a href="https://dbsguru.com/schema-size-in-oracle/">How to check size of a schema in Oracle<a>”

Leave a Reply

Your email address will not be published. Required fields are marked *

eleven − 2 =

Follow us on Social Media
Open chat
1
Contact Us:
Hi,

Greetings of the day! How can we help you?

Thanks.
Team DBsGuru