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 *.dbf;
24、sqlplus /nolog
25、conn /as sysdba;
26、startup mount;
27、rman target sys/sys@oracle9ivm nocatalog;
28、restore database;
29、recover database;
30、select * from user1.t5;
31、ok!!!!
阅读(623) | 评论(0) | 转发(0) |