- 论坛徽章:
- 0
|
1、搭测试环境
2、首先恢复控制文件
3、数据库启动到mount状态
4、将表空间offline掉
5、恢复所需表空间
大体脚本如下,自己修改一下:
Shutdown abort;
Startup nomount;
run {
Allocate channel d1 type disk;
Restore controlfile from ‘d:\backup\CTL_TEST_0_1_6555’;
Release channel d1 ;
Alter database open; //要为打开状态
set until time "TO_DATE(’08/08/2007 10:50:00’,’MM/DD/YYYY HH24:MI:SS’)";
sql ’alter tablespace TEST, USERS offline immediate’;
allocate channel d1 type disk;
restore tablespace TEST, USERS;
recover tablespace TEST, USERS;
release channel d1;
sql ’alter tablespace TEST, USERS online’;
} |
|