Home » RDBMS Server » Server Administration » Default temporary tablespace
Default temporary tablespace [message #59642] Thu, 11 December 2003 04:24 Go to next message
Joan
Messages: 36
Registered: February 2002
Member
We are running oracle9i and we are in the process of recreating the temporary tablespace which was a permanent type to temporary type and make it a default temporary tablespace.
Question
1- Doest the default temporary tablespace need to be created using tempfile or datafile should be ok
2- Since I will be dropping the original temporary tablespace . Will all the existing users assigned the new default temporary tablespace or I will need to do that manually.. Thanks
Re: Default temporary tablespace [message #59645 is a reply to message #59642] Thu, 11 December 2003 05:17 Go to previous messageGo to next message
Thiru
Messages: 1089
Registered: May 2002
Senior Member
1. tempfile
2. they should be switched to the new DEFAULT temporary tablespace automatically when their assigned tablespace goes out of the picture,but make sure (ie followup).

-Thiru
Re: Default temporary tablespace [message #59648 is a reply to message #59642] Thu, 11 December 2003 05:23 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
-- 1. sample syntax
create temporary tablespace temp2  tempfile  '/dev/vx/rdsk/dev/temp2'
        size 2048 M reuse
        extent management local
        uniform size 1m ;
-- 2.
-- first create the temp tablespace
-- make it defualt.. all databaase users are automatically assigned with new temp tablespace
ALTER DATABASE DEFAULT TEMPORARY TABLESPACE TEMP2;
-- drop the old one
drop tablespace temp including contents;

Re: Default temporary tablespace [message #59662 is a reply to message #59642] Sun, 14 December 2003 08:35 Go to previous message
Prasad
Messages: 104
Registered: October 2000
Senior Member
Hi Joan

follow the procedures told by mahe and Thhiru, then finally verify the default temporary tablespace in database_properties

SQL> select * from DATABASE_PROPERTIES where PROPERTY_NAME ='DEFAULT_TEMP_TABLESPACE'

PROPERTY_NAME PROPERTY_V DESCRIPTION

------------------------------ ---------- ------------
DEFAULT_TEMP_TABLESPACE TEMP Name of default temporary tablespace

It sould above result.

Regards
Prasad
Previous Topic: checkpoints
Next Topic: 'clean' temporary tablespace in 9i
Goto Forum:
  


Current Time: Mon Jan 20 04:38:18 CST 2025