1、sqlplus /nolog
2、conn /as sysdba;
3、startup;
4、rman target sys/sys@oracle9ivm nocatalog
5、list backupset;
6、show all;
7、backup database format 'c:\fullbackup\fb_%U' ;
8、backup incremental level 0 database format 'c:\backup1\L0_%U';
9、list backupset;
10、conn /as sysdba;
11、alter tablespace app1 read write;
12、conn user1/user;
13、create table t5 (id int,name char(10)) tablespace app1;
14、insert into t5 values(0,'zxd0');
15、commit;
16、conn /as sysdba;
17、alter system checkpoint;
18、alter system switch logfile;
19、backup incremental level 1 database format 'c:\backup1\L0_%U';
20、list backupset;
21、quit
22、shutdown immediate;
23、rm -f app1.dbf;
24、sqlplus /nolog
25、conn /as sysdba;
26、startup mount;
27、rman target sys/sys@oracle9ivm nocatalog;
28、run{
sql ' alter database datafile 6 offline';
restore datafile 6;
recover datafile 6;
sql ' alter database datafile 6 online';
}
29、select * from user1.t5;
30、ok!!!!
阅读(1058) | 评论(0) | 转发(0) |