½Ã³ª¸®¿À26: Rman ÀÌ¿ëÇÑ System TablespaceÀÇ À¯½Ç º¹±¸
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2003-07-30 17:48:23
 

1) Á¤»óÀûÀÎ ¾÷¹« ¼öÇà
$sqlplus '/as sysdba'
SQL> @LABS/moreemphist

2) Failure ¸¸µç´Ù

SQL> !rm $HOME/oradata/HUMAN/system01.dbf

SQL> shutdown immediate

$sqlplus '/as sysdba'

SQL> startup
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: '/home/human/oradata/HUMAN/system01.dbf'

3) Recovery
$rman target \'sys/oracle as sysdba\' catalog rmanhan/rmanhan@ora920

RMAN> run {host "cat $HOME/LABS/system_tbs_recovery.rmn";}

replace script system_tbs_recovery {
      restore database;
      recover database;
      sql 'alter database open';
}

RMAN> startup mount

RMAN> @/home/human/LABS/system_tbs_recovery.rmn

RMAN> run { execute script system_tbs_recovery;}

4) Á¤»óÀΰ¡ È®ÀÎ
SQL> select * from hr.emphist;


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦