question

OracleApprender avatar image
OracleApprender asked

Can one rename a tablespace?

Can anyone explain to me how to rename a tablespace ? Thank you in advance.

oracletablespace
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

OraLearner avatar image
OraLearner answered

No, this is listed as Enhancement Request 148742.

Workaround: Export all of the objects from the tablespace Drop the tablespace including contents Recreate the tablespace Import the objects

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dwayne King avatar image
Dwayne King answered

You didn't mention in your original posting which version of Oracle you are using.

In Oracle 9i, unfortunately you do indeed need to create a tablespace with the correct name and then move the existing object to it.

Starting in 10g, the following syntax is supported:

    ALTER TABLESPACE tbs01 RENAME TO tbs02;

Hope this helps.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.