½Ã³ª¸®¿À24: Rman ÀÌ¿ëÇÑ users tablespace ±¸¼ºÇÏ´Â Datafile À¯½Ç½Ã º¹±¸
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2003-07-30 17:19:23
 

1) Á¤»óÀûÀÎ ¾÷¹«¼öÇà

RMAN> run {execute script backup_database;}

$sqlplus '/as sysdba'

SQL> @/home/human/LABS/moreemphist

2) failure¸¦ ¸¸µç´Ù

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

SQL>
SQL> @$HOME/LABS/datafileerror

3) Recovery

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

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

replace script user_tbs_recovery {
        sql 'alter tablespace users offline immediate';
        restore tablespace users;
        recover tablespace users;
        sql 'alter tablespace users online';
}

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

RMAN> run { execute script user_tbs_recovery;}

4) Á¤»óÀΰ¡ È®ÀÎ


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