Home > DBA's day, oracle > Create new default temporary tablespace

Create new default temporary tablespace


To create new temporary tablespace and set it as default, follow these steps:

1. Check the path of the current tempfiles to reuse the path:
SELECT NAME FROM V$TEMPFILE;

2. Create the new temporary tablespace:
CREATE TEMPORARY TABLESPACE TEMP_MARIO
TEMPFILE ‘/your_path/tempfile_name’;

or if you have OMF just:

CREATE TEMPORARY TABLESPACE TEMP_MARIO;

3. Establish this temporary tablespace as default:

ALTER DATABASE DEFAULT TEMPORARY TABLESPACE TEMP_MARIO;

4. Check that the change has been made:
SELECT *
FROM database_properties
WHERE property_name like ‘%TEMP%TABLESPACE’;

Advertisements
Categories: DBA's day, oracle
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: