Smart Info About How To Clean Temp Tablespace
Poorly tuned queries can also use sort space when a better plan would not need the sort space.
How to clean temp tablespace. Select tablespace_name,sum(bytes)/1024/1024 temp_mb from dba_temp_files group by tablespace_name; Do a select tablespace_name,file_name from dba_temp_files to find out if its actually a temporary tablespace. Select file_name from dba_data_files where tablespace_name = '' / select file_name from dba_temp_files where tablespace_name = '' / then use.</p>
Create temporary tablespace temp2 tempfile '/path/filename' size 500m; Alter database default temporary tablespace temp1; Alter database default temporary tablespace temp2;
You can use v$sort_usage to find out the current users who are using temporary tablespace by using following query but it is only for the current connected session. Move default database temp tablespace. But step one is following nbellan's advice and making sure the temp tablespace.
Sql> alter table wrh$_sqltext move lob (sql_text) store as tablespace sysaux; Do all objects created as global temporary objects delete data on commit > and clear the tablespace(extents)? And put a limit on the.
Or select b.name, sum(a.bytes)/1024/1024 from v$tempfile a,. See above, here i just created a temporary. Shrink temp tablespace using alter tablespace command sql> alter tablespace temp shrink space.
If any sessions are using temp space, then kill them. From a sql*plus session connected as sysdba perform the move operation as follows: