Oracle 冷备份
作冷备份一般步骤是:
1.正常关闭要备份的实例(instance);
2.备份整个数据库到一个目录;
3.启动数据库;
操作示例:
--connect database
connect sys/oracle as sysdba;
--shutdown database
shutdown immediate;
--Copy Data file
!xcopy d:/Oracle/oradata/test/*.dbf d:/database/H/R;
--Copy Control file
!xcopy d:/Oracle/oradata/test/*.ctl d:/database/H/R;
--Copy Log file
!xcopy d:/Oracle/oradata/test/*.log d:/database/H/R;
--startup database
startup;