12C New Feature : Move a Datafile Online (Doc ID 1566797.1)

在12c以前的版本中,想要移动数据文件的位置,只有在数据库mount阶段或者表空间数据文件offline的情况下才可以移动,这就意味着想要移动数据文件只能在停机窗口下进行,在12c以及之后的版本中可以在线进行数据文件的move动作,减少停机窗口时间。具体可参考如下文档.

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.
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.

SOLUTION

With Oracle 12C, you can now do the following operations while the datafile is online and being accessed:

  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

The following is an example of how each operation is done:

Renaming an Online Data File:

SQL> CREATE TABLESPACE test DATAFILE ‘ //test.dbf’ SIZE 50M
EXTENT MANAGEMENT LOCAL
SEGMENT SPACE MANAGEMENT AUTO; 2 3

Tablespace created.

SQL> select file_name, status, online_status from dba_data_files;

FILE_NAME

STATUS ONLINE_<

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值