How to Rename Tablespace In Oracle10g
How to Rename Tablespace In Oracle10g
Another great new feature in tablespace management is rename tablespace.
Tablespace Rename Overview
In Oracle 10g, you can simply rename a tablespace TBS01 to TBS02 by issuing the following command:
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:
You must set compatibility level to at least 10.0.1.
You cannot rename the SYSTEM or SYSAUX tablespaces.
You cannot rename an offline tablespace.
You cannot rename a tablespace that contains offline datafiles.
Renaming a tablespace does not changes its tablespace identifier.
Renaming a tablespace does not change the name of its datafiles.
You cannot rename the SYSTEM or SYSAUX tablespaces.
You cannot rename an offline tablespace.
You cannot rename a tablespace that contains offline datafiles.
Renaming a tablespace does not changes its tablespace identifier.
Renaming a tablespace does not change the name of its datafiles.
Tablespace Rename Benefits
Tablespace rename provides the following benefits:
It simplifies the process of tablespace migration within a database.
It simplifies the process of transporting a tablespace between two databases.
Examples
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:
It simplifies the process of transporting a tablespace between two databases.
Examples
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:
Create a new tablespace NEW_TBS.
Copy all objects from OLD_TBS to NEW_TBS.
Drop tablespace OLD_TBS.
In Oracle 10g, you can accomplish the same thing in one step and rename tablespace OLD_TBS to NEW_TBS.
Copy all objects from OLD_TBS to NEW_TBS.
Drop tablespace OLD_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.
參考文獻:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9252210/viewspace-678526/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How to rename an Oracle stored procedureOracle
- How does one rename a database?Database
- Rename Tablespace in Oracle database 10gOracleDatabase
- How to Rename a Server That Is Not a Data Store ServerServer
- VMS: ALTER TABLESPACE/DATABASE TO RENAME FILES on VMS [ID 9560.1]Database
- 【Oracle】How to Rename or Move Datafiles and Logfiles 之二Oracle
- 【Oracle】How to Rename or Move Datafiles and Logfiles 之一Oracle
- How To Move The DB Audit Trails To A New TablespaceAI
- How to Move or Copy a Tablespace to Another Database (61)Database
- 【TABLESPACE】使用“ALTER TABLESPACE”命令的“RENAME”功能實現表空間快速重新命名
- oracle10g ASM transport_tablespaceOracleASM
- 【TABLESPACE】“ALTER TABLESPACE”命令的“RENAME”功能在重新命名錶空間能力上的測試
- How to maintain Oracle10g RecyclebinAIOracle
- oracle10g中的bigfile tablespaceOracle
- How to move Oracle Spatial objects from SYSAUX tablespace to a user defined tablespace [ID 1119758.1OracleObjectUX
- oracle10g undo tablespace相關知識Oracle
- How To Recreate A Database Using TTS (Transportable TableSpace) [ID 733824.1]DatabaseTTS
- Oracle10g New Feature -- 8. Tablespace ManagementOracle
- Oracle10g New Feature -- 5.Temporary Tablespace GroupOracle
- Oracle10g新增的檢視dba_tablespace_usage_metricsOracle
- How to Rename Database/Change DB_NAME or ORACLE_SID/Instance Name-15390.1DatabaseOracle
- Oracle10g新特性:臨時表空間組(temporary tablespace group)Oracle
- How to create user for oracle10g/11g asm instanceOracleASM
- Oracle OCP 1Z0-053 Q513(how to perform tablespace point-in-time recovery)OracleORM
- rename函式功能函式
- shell script to rename directory
- tablespace 大檔案,undo,temp tablespace
- Move_or_Rename_the_Tempfile_in_OracleOracle
- php-rename()函式PHP函式
- Rename db_name for OracleOracle
- db2 sms tablespace 不支援large tablespaceDB2
- MySQL rename table方法大全MySql
- MySQL 的Rename Table語句MySql
- MSSQL Server Rename Server_nameSQLServer
- Can one rename a database user (schema)?Database
- Tablespace Space Script
- remap_tablespaceREM
- The SYSAUX Tablespace (40)UX