Recreate Temp File Automatically

>>Script Language and Platform: Oracle 9i
This script is designed with an intention of recreating the
temp files automatically. This script will first create a temp
file of its own, then it will drop the existing overloaded
tempfile. After that it will recreate a new fresh tempfile in the
same location with the same name of the datafile and even with same name of
temp tablespace. It doesn’t matter if there is more than one tempfile;
in that case it will consider only the tempfile with max size.
Now a condition is given in the code that it will recreate the
tempfile only if it has already grown up to or more than three
GB. If You wish to recreate a temp file with any size, then use a
different version of the code.

Author: Anirban Dey

Download Script:
auto_temp.sql



Disclaimer:
We hope that the information on these script pages is
valuable to you. Your use of the information contained in these pages,
however, is at your sole risk. All information on these pages is provided
“as -is”, without any warranty, whether express or implied, of its accuracy,
completeness, or fitness for a particular purpose…

Disclaimer Continued

Back to Database Journal Home

Latest Articles