首页 > 应用开发 > IT综合 > Rename Tablespace
Another great new feature in tablespace management is rename tablespace.
In Oracle 10g, you can simply rename a tablespace TBS01 to TBS02 by issuing the following command:
ALTER TABLESPACE tbs01 RENAME TO tbs02;
However, you must follow the rules when renaming a tablespace:
Tablespace rename provides the following benefits:
Example 1: Rename a tablespace within a database. In Oracle9i or earlier releases, you must take the following steps to rename a tablespace from OLD_TBS to NEW_TBS:
In Oracle 10g, you can accomplish the same thing in one step and rename tablespace OLD_TBS to NEW_TBS.
ALTER TABLESPACE old_tbs RENAME TO new_tbs;
Example 2: Transport a tablespace between two databases. In the
following example (see
figure 3.2), you cannot transport a tablespace TBS01 from
database A to database B in the previous release of Oracle server
because database B also has a tablespace called TBS01. In Oracle
10g, you can simply rename TBS01 to TBS02 in database B before
transporting tablespace TBS01.
Oracle Tips by Burleson
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/14377/viewspace-1047642/ ,如需转载,请注明出处,否则将追究法律责任。