RAC Backup and Recovery Lab
1. Perform an Off-line Backup Open a command line window and enter the following commands set ORACLE_SID=MSnDB1 C:\oracle\product\10.2.0\db_1\bin\rman target system/password Shutdown immediate; Startup mount; Allocate channel c1 device type disk format ‘C:\oracle\admin\MSnDB\backup_U%’; Backup database; Alter database open; Exit;
2. Perform an On-line Backup Open a command line window and enter the following commands C:\oracle\product\10.2.0\db_1\bin\rman target system/password@MSnDB 1 Allocate channel c1 device type disk format ‘C:\oracle\admin\MSnDB\backup_U%’; Configure controlfile autobackup on; Backup database plus archivelog; Exit;
3. Flashback Recovery Start a sqlplus session logged in as sys as sysdba, and enter the following commands Create table test (field1 varchar(10), field2 varchar2(10)) Tablespace users; Insert into test Values (‘TEST1’, ‘TEST2’); Select * from test; Drop table test; Flashback table test to before drop;
© 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.