Home » SQL & PL/SQL » SQL & PL/SQL » How to find db size, blah blah...
How to find db size, blah blah... [message #7721] Thu, 03 July 2003 00:08 Go to next message
sachin kumar gupta
Messages: 157
Registered: March 2003
Senior Member
Hi,
I m very new dba, let me know how to find the size of the current database, daily growth of db, unused space in db, used space in db.

TIA,
Sachin
Re: How to find db size, blah blah... [message #7723 is a reply to message #7721] Thu, 03 July 2003 01:49 Go to previous messageGo to next message
Deepa
Messages: 269
Registered: November 2000
Senior Member
one way to find ur dbsize is

export the whole db.
check out the size of the dmp file u get the db size :)

Overall size.. then
calculate the size of the datafiles,redologfiles etc...
regards,
Deepa
Re: How to find db size, blah blah... [message #7724 is a reply to message #7723] Thu, 03 July 2003 02:40 Go to previous messageGo to next message
sachin kumar gupta
Messages: 157
Registered: March 2003
Senior Member
Thanx Deepa!! Is there any way by which I can find the unused space also.

TIA,
Sachin
Re: How to find db size, blah blah... [message #7734 is a reply to message #7724] Thu, 03 July 2003 06:27 Go to previous messageGo to next message
Deepa
Messages: 269
Registered: November 2000
Senior Member
U can always search the net for these things.u will get a plenty of info

U have the data dictionary tables which will hold the usedblocks in tablespaces.

From that, u can calculate allocated - used

regards,
Deepa
Re: How to find db size, blah blah... [message #7735 is a reply to message #7721] Thu, 03 July 2003 07:48 Go to previous message
ctg
Messages: 146
Registered: July 2002
Senior Member
1) tells you total space allocated in each tablespace
SELECT tablespace_name, sum(bytes)
FROM dba_segments
GROUP BY tablespace_name;

2) tells you total freed space (unallocated) in each tablespace
SELECT tablespace_name, sum(bytes)
FROM dba_free_space
GROUP BY tablespace_name;
Previous Topic: Lexical Ref in Oracle SQL
Next Topic: Insert into Type
Goto Forum:
  


Current Time: Thu Apr 18 19:35:00 CDT 2024