1、sqlplus /nolog
2、conn /as sysdba;
3、startup;
4、conn user1/user;
5、create table t5 (id int,name char(10)) tablespace app1;
6、insert into t5 values(0,'zxd0');
7、commit;
8、shutdown immediate;
9、copy * 'c:\coldbackup\' ;
10、startup;
11、conn user1/user;
12、insert into t5 values(1,'zxd1');
13、commit;
14、select * from user1.t5;
15、select group#,status from v$log;
16、strings redo02.log |grep zxd1;
17、select sysdate from dual;
18、select to_char(sysdate,'DD-MON-YYYY HH24:MI:SS') from dual;
19、drop table t5;(ddl语句是自包函的,无需commit提交的)
20、shutdown abort;
21、rm -f *.dbf;
22、 copy 'c:\coldbackup\' 'F:\oracle\product\10.1.0\oradata\orcl4';
23、startup mount;
24、select file#,checkpoint_change# from v$datafile;
25、select file#,checkpoint_change# from v$datafile_header;(对比控制文件和数据文件中的scn号)
26、recover database until time '2014-03-11:20:12:40'; (按时间恢复)
27、alter database open resetlogs;
28、select * from user1.t5;
29、ok!!!!!
30、resetlogs操作之后 ,最好再次全备一次
阅读(869) | 评论(0) | 转发(0) |