Search
 
SCRIPT & CODE EXAMPLE
 

SQL

size of all tables in a schema oracle

SELECT sum(BYTES) / 1e6 AS SIZE_MB FROM DBA_SEGMENTS WHERE OWNER = 'schema_name';
-- By type
SELECT SEGMENT_TYPE, sum(BYTES) / 1e6 AS SIZE_MB FROM DBA_SEGMENTS
    WHERE OWNER = 'schema_name' GROUP BY SEGMENT_TYPE;
-- By schema
SELECT OWNER, sum(BYTES) / 1e6 AS SIZE_MB FROM DBA_SEGMENTS GROUP BY OWNER
    ORDER BY SIZE_MB DESC;
Comment

PREVIOUS NEXT
Code Example
Sql :: phpmyadmin delete user 
Sql :: create table like sql 
Sql :: mysql check db size 
Sql :: sql rename column 
Sql :: sql select all from table 
Sql :: XOR in SQL Server 
Sql :: not operator in oracle 
Sql :: ora-02391 
Sql :: psql show columns of table 
Sql :: oracle alter table delete column 
Sql :: where not in array sql 
Sql :: sql syntax create timestamp column 
Sql :: buscar nombre de columna en todas las tablas sql server 
Sql :: postgres list all stored procedures query 
Sql :: grant read only privileges postgres user 
Sql :: postgresql update between 2 tables 
Sql :: mysql concatenate select results 
Sql :: pl sql ptint 
Sql :: ORA-00942 
Sql :: begin transaction in sql 
Sql :: sqlalchemy left join 
Sql :: tsql insert 
Sql :: sql show all users 
Sql :: how to get nearest location in mysql with latitude and longitude 
Sql :: Alter table add column in SQL Server- NAYCode.com 
Sql :: mysql set password for user 
Sql :: sql trim whitespace 
Sql :: select count 
Sql :: mysql case when or 
Sql :: mysql update add to existing value 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =