½Ã³ª¸®¿À3: Redo log¸¦ restoreÇÏÁö ¾Ê°í º¹±¸ - noarchivelog mode
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2003-07-23 16:09:16
 

¸¸¾à users Å×ÀÌºí½ºÆäÀ̽º¸¦ ±¸¼ºÇÏ´Â datafileÀÌ À¯½Ç µÇ¾ú´Ù¸é

1) ¿¡·¯ ¸Þ½ÃÁö
SQL> startup
ORA-01157: cannot identify/lock data file 3 - see DBWR trace file
ORA-01110: data file 3: '/opt/oracle/dbs/users01.dbf'

SQL> shutdown abort
SQL> exit

2) Recovery ½ÃÀÛ
$cp $HOME/BACKUP/*.ctl $HOME/dbs/
$cp $HOME/BACKUP/*.dbf $HOME/dbs/
$sqlplus '/as sysdba'

SQL> startup
Database mounted
ORA-00314: log 1 of thread 1, expected sequence# doesn't match
ORA-00312: online log 1 thread 1: '/opt/oracle/oradata/log1a.rdo'
ORA-00312: online log 1 thread 1: '/opt/oracle/oradata/log1b.rdo'

SQL> select * from v$log;
sequence number°¡ 30,31 À̶óÇÏÀÚ

SQL> recover database until cancel;
SQL> alter database open resetlogs;
SQL> select * from v$log;
sequence number°¡ 0°ú 1·Î ¹Ù²ñ


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