Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle schema size

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 :: shell mysql connect 
Sql :: can you use a where clause for a child query 
Sql :: how to get mysql db size 
Sql :: SQl Server Versionen Releases und Build-Nummern 
Sql :: An error occurred while installing mysql2 (0.5.3) 
Sql :: real world example of nosql 
Sql :: mysql select column where has non int values 
Sql :: oracle sessions_per_user 
Sql :: Incorrect format parameter 
Sql :: date less than current date sql 
Sql :: SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint 
Sql :: t-sql get duplicate rows 
Sql :: create database collation 
Sql :: scaffold mysql database 
Sql :: SQL Modify Column in a Table 
Sql :: oracle add auto_increment column to existing table 
Sql :: mysql list users 
Sql :: ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails 
Sql :: table or view does not exist 
Sql :: SQL rounding numbers 
Sql :: mysql version query 
Sql :: drop index oracle 
Sql :: sql trim all spaces 
Sql :: CX_Oracle - import data from Oracle to Pandas dataframe 
Sql :: get primary key of table 
Sql :: oracle sql merge 
Sql :: replace string value in sql 
Sql :: login to mysql database 
Sql :: add current timestamp in mysql 
Sql :: create stored procedure 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =