Unix Technical Forum

Calculating space

This is a discussion on Calculating space within the Oracle Database forums, part of the Database Server Software category; --> Hello I am a junior dba. I was wondering if anyone could point me how to do the following?: ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-18-2008, 10:47 AM
ph3ng
 
Posts: n/a
Default Calculating space

Hello

I am a junior dba. I was wondering if anyone could point me how to do
the following?:

I am currently trying to verify/calculate the size of my current
oracle db/schema. I've been using:

select sum(bytes)/1024/1024 from dba_data_files + select sum(bytes)/
1024/1024 from v$log;

(NOTE: I ran the two select statements separately. Just thought I'd
clarify)

Now I'd like to be able to know the size of the actual storage/disk
for where that particular schema is sitting on. Is this possible? If
so how would I be doing this, what is the syntax?

Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-18-2008, 10:47 AM
Hardik
 
Posts: n/a
Default Re: Calculating space

select sum(bytes)/1024/1024 from dba_segments where owner=<SCHEMA>;

On Jul 17, 4:27*am, ph3ng <jth...@gmail.com> wrote:
> Hello
>
> I am a junior dba. I was wondering if anyone could point me how to do
> the following?:
>
> I am currently trying to verify/calculate the size of my current
> oracle db/schema. I've been using:
>
> select sum(bytes)/1024/1024 from dba_data_files + select sum(bytes)/
> 1024/1024 from v$log;
>
> (NOTE: I ran the two select statements separately. Just thought I'd
> clarify)
>
> Now I'd like to be able to know the size of the actual storage/disk
> for where that particular schema is sitting on. Is this possible? If
> so how would I be doing this, what is the syntax?
>
> Thank you


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-18-2008, 10:47 AM
Mark D Powell
 
Posts: n/a
Default Re: Calculating space

On Jul 17, 6:00*am, Hardik <hvde...@gmail.com> wrote:
> select sum(bytes)/1024/1024 from dba_segments where owner=<SCHEMA>;
>
> On Jul 17, 4:27*am, ph3ng <jth...@gmail.com> wrote:
>
>
>
> > Hello

>
> > I am a junior dba. I was wondering if anyone could point me how to do
> > the following?:

>
> > I am currently trying to verify/calculate the size of my current
> > oracle db/schema. I've been using:

>
> > select sum(bytes)/1024/1024 from dba_data_files + select sum(bytes)/
> > 1024/1024 from v$log;

>
> > (NOTE: I ran the two select statements separately. Just thought I'd
> > clarify)

>
> > Now I'd like to be able to know the size of the actual storage/disk
> > for where that particular schema is sitting on. Is this possible? If
> > so how would I be doing this, what is the syntax?

>
> > Thank you- Hide quoted text -

>
> - Show quoted text -


For your total database storage usage you may also need to include the
space used for sort which if a true temporary tablespace was defined
will not be in dba_data_files. Loot at dba_temp_files.

HTH -- Mark D Powell --
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-18-2008, 10:47 AM
joel garry
 
Posts: n/a
Default Re: Calculating space

On Jul 16, 8:27*pm, ph3ng <jth...@gmail.com> wrote:
> Hello
>
> I am a junior dba. I was wondering if anyone could point me how to do
> the following?:
>
> I am currently trying to verify/calculate the size of my current
> oracle db/schema. I've been using:
>
> select sum(bytes)/1024/1024 from dba_data_files + select sum(bytes)/
> 1024/1024 from v$log;
>
> (NOTE: I ran the two select statements separately. Just thought I'd
> clarify)
>
> Now I'd like to be able to know the size of the actual storage/disk
> for where that particular schema is sitting on. Is this possible? If
> so how would I be doing this, what is the syntax?
>
> Thank you


There are a lot of definitions of "size." I give each schema their
own explicit storage (with one pseudo-DW exception), so I can just
look at the OS files. Another way is to look at the size of the
export. I've given up on actually doing selects for this stuff, I
just use OEM or EM, know right away if I need to worry about
anything. I tend to make data files fixed 2G, except for the most
recent one, which I make autoextend max 2G. So I really just have to
watch a few autoextend files, and even that is just because I haven't
gotten around to tweaking the alerts.

Works for my particular needs. Archived logs and rman backups require
much more careful observation as far as space used goes.

jg
--
@home.com is bogus.
"The Piper Cub is the safest airplane in the world; it can just barely
kill you. " - Attributed to Max Stanley ( Northrop test pilot)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:58 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com