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.
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.
Very nice article to check Oracle schema size. Publish for PostgreSQL as well.
Thanks Santosh for review! We will publish soon.
Thanks.
Team DBsGuru.
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.
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.