How can I clean my temporary tablespace?
Thanks
CE
Clear Temporary Tablespace
-
- Rank: Programador Júnior
- Posts: 18
- Joined: Fri, 05 May 2006 8:48 am
- Location: Lisboa
-
- Rank: DBA Sênior
- Posts: 372
- Joined: Tue, 24 Jan 2006 3:33 pm
- Location: Palmas - TO
- Contact:
I have read in some discussions that we have two ways to do it: one is doing a normal shutdown and the other is to delete and re-create temporary tablespace.Carlaestevao80 wrote: How can I clean my temporary tablespace?
But rather do some tests:
1) Check the size:
SELECT * FROM DBA_DATA_FILES WHERE TABLESPACE_NAME = 'TEMP';
or
SELECT * FROM DBA_TEMP_FILES
SELECT * FROM DBA_TABLESPACES WHERE TABLESPACE_NAME = 'TEMP';
SELECT * FROM DBA_FREE_SPACE WHERE TABLESPACE_NAME = 'TEMP';
ALTER TABLESPACE TEMP COALESCE;
-
- Rank: Programador Júnior
- Posts: 18
- Joined: Fri, 05 May 2006 8:48 am
- Location: Lisboa
The Tablespace Temp is 100% free, however it is with too much space assigned and I can not do Resize 
ORA-03297: The file contains data used beyond the value of Resize required

ORA-03297: The file contains data used beyond the value of Resize required
-
- Rank: DBA Sênior
- Posts: 372
- Joined: Tue, 24 Jan 2006 3:33 pm
- Location: Palmas - TO
- Contact:
Maybe have something in the lycheira (recyclebin). Try to clean it:
Gilberto
purge recyclebin;
Gilberto
-
- Rank: Programador Júnior
- Posts: 18
- Joined: Fri, 05 May 2006 8:48 am
- Location: Lisboa
Hello,
I have already cleaned the Recycle Bin and the problem remains ...
CE
I have already cleaned the Recycle Bin and the problem remains ...
CE
-
- Rank: DBA Sênior
- Posts: 372
- Joined: Tue, 24 Jan 2006 3:33 pm
- Location: Palmas - TO
- Contact:
See if you can perform this command:
otherwise you will have to recreate it: http://www.idevelopment.info/data/Oracl ... BS_3.shtml
Gilberto
alter database database_name
tempfile 'directory/of/tempfile' resize new_size;
Gilberto
-
- Rank: Programador Júnior
- Posts: 16
- Joined: Tue, 28 Jun 2005 11:39 am
- Location: Pindamonhangaba - SP
Temporary Tablespace will always work with 100% use, so there is no need to make a cleaning. However, it should be verified if the Datafile has a limit to grow, as if the size of the Datafile causes it to be busy 100% of the HD will generate problems for Oracle.
If this is not your case Leave it, Oracle himself is responsible for re-allocating the required space within Datafile.
If this is not your case Leave it, Oracle himself is responsible for re-allocating the required space within Datafile.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 1 guest