模拟USER01.DBF文件被删除的情况进行恢复
1.先查看数据库确认为非归档模式
archive log list;
2.使用rman进行全量备份
因为是非归档模式,所以需要将数据库修改为mount模式(shutdown immediate;关闭数据库然后startup mount;)
然后使用rman进行备份
rman target /
执行以下命令创建全量备份
run{
allocate channel ch_1 type disk;
backup database
format '/backup/all_%t_%u.bak';
}
完成后可以在/backup/看到有文件
将USER01.