干净关闭数据库

拷贝所有datafile,controlfile,redo

当数据库出问题时,恢复需要把所有的备份拷贝到指定位置

文件名字不能带一串数字,可以是.dbf  .ctl .log

startup nomount

alter system set control_files=     scope=spfile;

shutdown immediate

startup mount

alter database rename file '' to '';

recover database using backup controlfile until cancel;

alter database open resetlogs;

 

--------------------------------------------------------------------------

                t1               t2

 

t1时刻冷备,t2时刻出问题,冷备只能恢复到t1时刻,t1到t2之间所做的操作全部丢失

相关文章:

  • 2021-12-09
  • 2021-09-30
  • 2021-11-01
  • 2021-12-23
  • 2021-08-17
  • 2021-11-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2022-01-29
  • 2022-01-22
相关资源
相似解决方案