Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

schema space

Posted on 2014-04-04
4
Medium Priority
?
377 Views
Last Modified: 2014-04-06
How will find the space occupied by individual schema in a database........
0
Comment
Question by:tonydba
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 74

Expert Comment

by:sdstuber
ID: 39978314
select sum(bytes) from  dba_segments where owner = 'YOUR_SCHEMA'
0
 

Author Comment

by:tonydba
ID: 39978463
I want to list out everything in one query.........
0
 
LVL 74

Accepted Solution

by:
sdstuber earned 2000 total points
ID: 39978507
I have no idea what you mean by that, but here are some guesses.

SELECT segment_name, bytes, segment_type
  FROM dba_segments
 WHERE owner = 'YOUR_SCHEMA';

if you want multiple schemas

SELECT owner, segment_name, bytes, segment_type
  FROM dba_segments
ORDER BY owner;

you can also sum by schema

  SELECT owner,SUM(bytes)
    FROM dba_segments
GROUP BY owner;

or sum by schema and type

  SELECT owner, segment_type, SUM(bytes)
    FROM dba_segments
GROUP BY owner, segment_type
ORDER BY owner, segment_type;
0
 

Author Closing Comment

by:tonydba
ID: 39981538
Thank you for your support.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question