()

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 equipoise benefits 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.

Protein: Know the best sources, benefits, and how much is too much steroid sales To Macro Or Not: Should You Track Your Macronutrient Intake?
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.


Loading

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

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?

Sruti Banerjee

Hello and welcome to DBsGuru, I am Sruti Banerjee, having experience of 3 years as an Oracle DBA, I have good interpersonal skills that can help in attaining the desired level of team coordination, self-starter & quick learner. I am having rich experience in Oracle database management, Backup and Recovery, Security, Installation, Up-gradation, Patching, Migration, Cloning of databases, Dataguard (Physical), and a wide range of other database administration activities.Thanks for the visits!Share Learn Grow!

4 thoughts on “How to check size of a schema in Oracle

  1. Hello experts,

    I need to understand the concepts standby redo logs and standby controlfile in Oracle Data Guard. I sincerely request you all, please help me in this. I am also studying from my side.

    Awaiting for your kind response.

    1. Thanks Krishna, We have ready article on same topics, Request to you please review it under below category, feel free to reach us on our support number, surely our expert team will help you in understanding if any concerns on same.

      https://dbsguru.com/dataguard/

      Thanks,
      Team DBsGuru.

Comments are closed.