½Ã³ª¸®¿À02 -ÅÛÇÁÅ×ÀÌºí ½ºÆäÀ̽º À¯½ÇÀÇ º¹±¸
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2003-06-13 15:33:26
 

1. Database¸¦ ±âµ¿

$svrmgrl
SVRMGR> connect / as sysdba
SVRMGR> startup
SVRMGR> select tablespace_name, file_name from dba_datafiles ;
        --> Temporary TablespaceÀÇ Data File °æ·Î¸íÀ» È®ÀÎ
SVRMGR> !ls -la $HOME/DATA/DISK3/temp01.dbf
        --> Å©±â È®ÀÎ
       
2. Failure¸¦ ¸¸µç´Ù.

SVRMGR> shutdown abort
        --> Failure¸¦ »ó»ó
SVRMGR> ! mv $HOME/DATA/DISK3/temp01.dbf $HOME/DATA/DISK3/temp01.org
SVRMGR> startup
ORA-01157: cannot identify data file 4 - file not found
ORA-01110: data file 4:'/home/disk1/userDBA205/DATA/DISK3/temp01.dbf'

3. Recovery ¼öÇà
  --> Temporary Tablespace À̹ǷΠ DropÇÏ°í »õ·Î ¸¸µé¸é µÊ
 
SVRMGR> alter database datafile '$HOME/DATA/DISk3/temp01.dbf' offline drop ;
SVRMGR> alter database open ;
Statement processed.
SVRMGR> select * from dba_tablespaces ;
        --> "Temp_data" Tablespace´Â ±×·¡µµ Á¸ÀçÇÔ
        --> "Temp_data" TablespaceÀÇ ±¸¼º File Áß Çϳª¸¦ Drop ÇÑ °Í »ÓÀ̴ϱî.(¿©±â¼± ¿ì¿¬È÷ Çϳª¿´´Ù.)
SVRMGR> drop tablespace temp_data including contents ;
SVRMGR> create tablespace temp_data
    2  datafile '$HOME/DATA/DISK3/temp01.dbf' size 1M ;
        --> ¾Õ¿¡¼­ È®ÀÎÇÑ Å©±â·Î ´Ù½Ã »ý¼º
SVRMGR> shutdown immediate
        --> Shutdown °ú StartupÀ» ÇغÁ¼­ Àß µÇ´ÂÁö È®ÀÎ
SVRMGR> startup
SVRMGR> shutdown immediate
SVRMGR> !rm $HOME/DATA/DISK3/temp01.org
        --> ÇÊ¿ä ¾ø´Â fileÀ» »èÁ¦
SVRMGR> exit


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