1、sqlplus /nolog
2、conn /as sysdba;
3、startup;
4、conn user1/user1;
5、select * from t1;
6、insert into t1 values(22,'zxd22');
7、alter system switch logfile;
8、rman target sys/sys@oracle9ivm nocatalog;
9、list backupset;
10、backup database format 'c:\hotbackup\ic_%U';
11、quit
12、conn user1/user1;
13、select to_char(sysdate,'YYYY-MM-DD:HH24:MI:SS') from dual;
14、drop table t1;
15、select * from t1;
16、shutdown immediate;
17、startup mount;
18、rman target sys/sys@oracle9ivm nocatalog;
19、run{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
set until time "to_date('2014-03-02:16:06:42','YYYY-MM-DD:HH24:MI:SS')";
restore database;
recover database;
alter database open resetlogs;
}
20、conn /as sysdba;
21、select * from t1;
22、ok!!!!;
阅读(859) | 评论(0) | 转发(0) |