database size [message #379598] |
Wed, 07 January 2009 04:52 |
rsreddy28
Messages: 295 Registered: May 2007
|
Senior Member |
|
|
hello,
How can we determin the database size . I queried
SELECT SUM(bytes)/1024/1024,tablespace_name,file_name FROM DBA_DATA_FILES
WHERE tablespace_name <> 'UNDOTBS1'
GROUP BY tablespace_name,file_name .
This showed me the output . But i'm looking for the database size in the last month . I'm trying to go for sysdate-30 , but not knowing where to fix it .
Can somebody help me on this.
Regards,
Raj
|
|
|
Re: database size [message #379604 is a reply to message #379598] |
Wed, 07 January 2009 05:28 |
|
Mahesh Rajendran
Messages: 10708 Registered: March 2002 Location: oracleDocoVille
|
Senior Member Account Moderator |
|
|
>>I'm trying to go for sysdate-30 , but not knowing where to fix it
I believe we already tried to explain this to you.
Unless you save the information in a custom table, it is not saved anywhere.
v$datafile has a creation_time.
Join it with dba_data_file.
All you can do is, list and sum the size of datfiles that has
a create_time sysdate-30
Edit:
Or just use v$datafile
[Updated on: Wed, 07 January 2009 05:33] Report message to a moderator
|
|
|
|
|
|
|