Chinaunix首页 | 论坛 | 博客
  • 博客访问: 398412
  • 博文数量: 119
  • 博客积分: 1470
  • 博客等级: 上尉
  • 技术积分: 1258
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-24 13:50
文章分类

全部博文(119)

文章存档

2018年(6)

2017年(11)

2016年(4)

2013年(8)

2012年(1)

2011年(2)

2010年(4)

2009年(37)

2008年(16)

2006年(30)

我的朋友

分类: Oracle

2009-06-03 15:28:21



rman 脚本:
run {
allocate channel c1 type disk;
set newname for datafile 5 to 'c:\temp\test.dbf';
restore datafile 5;
switch datafile 5;   \\update control file
recover datafile 5;
sql 'alter database datafile 5 online';
release channel c1;
}

在用 SWITCH DATAFILE 时只需要指定原文件。
阅读(1637) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~