Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> About TEMPFILE creation
System: AIX 5L
RDBMS: Oracle 9i
Is there any difference (advantage or disadvantage) to how you set up a temporary tablespace? In Oracle 8i, we always used datafiles for our temp tablespaces, such as the following:
##### OLD VERSION #######
CREATE DATABASE databasename
...;
CREATE TABLESPACE temptbspacename
DATAFILE '/data/file/name'
SIZE 300M
AUTOEXTEND OFF
ONLINE TEMPORARY;
Starting with Oracle 9i, we started to create new databases with the
temptbspace listed as part of the CREATE DATABASE statement.
##### NEW VERSION ######
CREATE DATABASE databasename
DATAFILE '/data/file/name' SIZE 512M DEFAULT TEMPORARY TABLESPACE temtbdspacename
TEMPFILE '/temp/file/name'
SIZE 300M
AUTOEXTEND ON
MAXSIZE 1000M.....;
The only difference we have seen is that the temp tablespace is now
listed in V$TEMPFILE instead of being in V$DATAFILE along with the
other data files.
So we have three questions:
Thanks in advance,
SteveN Received on Fri Mar 09 2007 - 10:12:15 CST
![]() |
![]() |