Even though we keep telling ourselves that iron these days is cheap, I was having difficulties with my laptop’s hard disk. It was almost full – to the brim. I discovered a while back that my Oracle database files took up an alarming amount of diskspace, especially given the pathetically small volume of data I work with – only demo applications. The Temporary Tablespace’s datafile had grown to close to 8 Gb. That’s what autoextend can do for you….

 I am not much of a DBA, and to be frank I had no clue as to how to get rid of most of that 8 Gb. Google came to the rescue, and more specifically this article: Resizing Temporary Tablespace by Jeff Hunter. With his very clear explanation and straightforward instructions, I had fixed this problem that had been staring me in the face for quite some time now in no time at all:

....

SELECT tablespace_name, file_name, bytes<br />FROM dba_temp_files WHERE tablespace_name = 'TEMP'<br />/<br /> <br />TABLESPACE_NAME<br />------------------------------<br />FILE_NAME<br />------------------------------------<br />     BYTES<br />----------<br />TEMP<br />C:\ORACLE\ORADATA\ORCL\TEMP01.DBF<br />8148484096<br /><br />ALTER DATABASE TEMPFILE 'C:\ORACLE\ORADATA\ORCL\TEMP01.DBF' DROP INCLUDING DATAFILES;<br /><br />ALTER TABLESPACE temp ADD TEMPFILE 'C:\ORACLE\ORADATA\ORCL\TEMP01.DBF' <br />SIZE 512m AUTOEXTEND ON NEXT 250m MAXSIZE UNLIMITED;<br />

Thanks Jeff!