Home » RDBMS Server » Server Administration » USERS tablespace reached 96% after manual db creation w/ 1 new schema only (Oracle 10g/R2, Solaris 10)
USERS tablespace reached 96% after manual db creation w/ 1 new schema only [message #499202] Mon, 14 March 2011 01:41 Go to next message
reym21
Messages: 241
Registered: February 2010
Location: Philippines
Senior Member

Sirs,

Please help me solved this problem.

I created manually a database in 10g, after succesfully creating the dB, I created a single user re: LAMS. Now, I noticed that my USERS tablespace is currently at a 99.96% usage:

SQL> @check_space_used.sql
Monday, March 14, 2011 2:46:22 PM SGT

TABLESPACE_NAME TOTALSPACE TOTALBYTES PERCENTUSED
------------------------------ -------------------- -------------------- --------------------
SYSTEM 1073741824 239599616 23
UNDO 268435456 16449536 7
USERS 2546991104 2546008064 100
SYSAUX 1073741824 84803584 8

check_space_used.sql
---------------------
!date
set numwidth 20
set linesize 120
select a.tablespace_name,a.dbytes "TOTALSPACE", b.sbytes "TOTALBYTES",
ceil((b.sbytes / a.dbytes) * 100) "PERCENTUSED"
from (select tablespace_name,sum(bytes) as dbytes from dba_data_files group by
tablespace_name) a,
(select tablespace_name,sum(bytes) as sbytes from dba_segments group by tablespace_name) b
where a.tablespace_name=b.tablespace_name;
spool off

Below is the syntax I used when I created it:
---------------------------------------------
CREATE TABLESPACE users
DATAFILE '/VOL03/oradata/elams/data/users01.dbf' SIZE 100M
AUTOEXTEND ON NEXT 512K
MINIMUM EXTENT 64K
DEFAULT STORAGE(INITIAL 256K NEXT 128K MINEXTENTS 2 MAXEXTENTS 2048);

The schema in the current dB:
-----------------------------
SQL> select username from dba_users;

USERNAME
------------------------------
OUTLN
SYS
SYSTEM
LAMS
DBSNMP
TSMSYS
DIP
ORACLE_OCM

8 rows selected.

Re: USERS tablespace reached 96% after manual db creation w/ 1 new schema only [message #499208 is a reply to message #499202] Mon, 14 March 2011 02:30 Go to previous messageGo to next message
Michel Cadot
Messages: 68648
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
And what is the problem?

Please read OraFAQ Forum Guide, especially "How to format your post?" section.
Make sure that lines of code do not exceed 80 characters when you format.
Indent the code, use code tags and align the columns in result.
Use the "Preview Message" button to verify.
Also always post your Oracle version, with 4 decimals.

Regards
Michel

[Updated on: Mon, 14 March 2011 02:31]

Report message to a moderator

Re: USERS tablespace reached 96% after manual db creation w/ 1 new schema only [message #499214 is a reply to message #499208] Mon, 14 March 2011 02:53 Go to previous messageGo to next message
reym21
Messages: 241
Registered: February 2010
Location: Philippines
Senior Member

The problem is I just created a lone user but my tablespace is now reaching 100%... and by next week it will add another 90+ end users. Do a single schema could occupy the whole 512MB size of a tablespace?


Re: USERS tablespace reached 96% after manual db creation w/ 1 new schema only [message #499217 is a reply to message #499214] Mon, 14 March 2011 03:02 Go to previous messageGo to next message
Michel Cadot
Messages: 68648
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Yes, it can.
If you query DBA_SEGMENTS then you will see how much space each object takes.

Regards
Michel
Re: USERS tablespace reached 96% after manual db creation w/ 1 new schema only [message #499222 is a reply to message #499217] Mon, 14 March 2011 03:20 Go to previous messageGo to next message
John Watson
Messages: 8931
Registered: January 2010
Location: Global Village
Senior Member
You say here
Quote:
Do a single schema could occupy the whole 512MB size of a tablespace?

but your tablespace is not that big:
Quote:
CREATE TABLESPACE users
DATAFILE '/VOL03/oradata/elams/data/users01.dbf' SIZE 100M

Is that the cause of any confusion?
Re: USERS tablespace reached 96% after manual db creation w/ 1 new schema only [message #499224 is a reply to message #499217] Mon, 14 March 2011 03:23 Go to previous message
reym21
Messages: 241
Registered: February 2010
Location: Philippines
Senior Member

OK. Thank you very much for this.

Regards...
Previous Topic: Database file system architecture for DataWarehouseing application
Next Topic: How to get ASM disk list on any DB instance that uses an ASM instance
Goto Forum:
  


Current Time: Thu May 09 03:05:13 CDT 2024