12C New Feature : Move a Datafile Online (Doc ID 1566797.1)
APPLIES TO:
Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
GOAL
In this release, a data file can now be moved online while it is open and being accessed, even for data files in system tablespace. 在此版本中,数据文件可以在线(online)联机移动,即使对于系统表空间中的数据文件也是如此。
Being able to move a data file online means that many maintenance operations, such as moving data to another storage device or moving databases into Oracle Automatic Storage Management (Oracle ASM), can be performed while users are accessing the system. This ensures that continuity of service and service-level agreements (SLA) on uptime can be met. 能够在线移动数据文件意味着可以在用户访问系统时执行许多维护操作,例如将数据移动到另一个存储设备或将数据库移动到Oracle自动存储管理(Oracle ASM)。这确保了服务时间和服务水平协议(SLA)在正常运行时间方面的连续性。
SOLUTION
With Oracle 12C, you can now do the following operations while the datafile is online and being accessed: 使用Oracle 12C,您现在可以在数据文件处于联机状态且正在访问时执行以下操作:
1. Renaming an Online Data File 重命名在线数据文件
2. Relocating an Online Data File 更改在线数据文件的位置
3. Copying an Online Data File 复制在线数据文件
4. Relocating an Online Data File and Overwriting an Existing File 更改在线数据文件的位置并覆盖现有文件
5. Relocating an Online Data File to Oracle ASM 更改在线数据文件的位置到Oracle ASM
The following is an example of how each operation is done: 下面是每个操作如何完成的示例
Renaming an Online Data File: 重命名在线数据文件
===============================
2. Relocating an Online Data File: 更改在线数据文件的位置
===================================
3. Copying an Online Data File: 复制在线数据文件
=================================
4. Example of relocating an Online Data File and Overwriting an Existing File: 更改在线数据文件的位置并覆盖现有文件
=====================================================================
5. Relocate an Online Data File to Oracle ASM: 更改在线数据文件的位置到Oracle ASM
================================================
This example moves the data file user1.dbf from the /u01/oracle/rbdb1/ directory to an Oracle ASM location. ALTER DATABASE MOVE DATAFILE ‘/u01/oracle/rbdb1/user1.dbf‘ TO ‘+dgroup_01/data/orcl/datafile/user1.dbf‘; This example moves the data file from one Oracle ASM location to another Oracle ASM location. ALTER DATABASE MOVE DATAFILE ‘+dgroup_01/data/orcl/datafile/user1.dbf‘ TO ‘+dgroup_02/data/orcl/datafile/user1.dbf‘;