iWiz ShareBase

IT Specialist À±ÅÂÇöÀÇ iWiz ShareBase´Â IT»Ó ¾Æ´Ï¶ó °¢Á¾ Àâ´ÙÇÑ Áö½ÄµéÀ» ÇÔ²² ³ª´©´Â Áö½Ä°øÀ¯ Ä¿¹Â´ÏƼÀÔ´Ï´Ù.

iWiz,ShareBase,À±ÅÂÇö,Java,JSP,EJB,IT,Á¤º¸±â¼ú,À¥ÇÁ·Î±×·¡¹Ö,PHP,ASP,DBMS,MySQL,¼­¹ö,³×Æ®¿öÅ©,server,network,WAS,À¥¾ÖÇø®ÄÉÀ̼Ç,ºí·Î±×,blog,À¥¼­¹ö,DB,¿À¶óŬ,oracle,mysql,JRun,À¥·ÎÁ÷,ÅèĹ,tomcat,¾ÆÆÄÄ¡,ÀÚµ¿Â÷,EF½î³ªÅ¸,·Î¶Ç 6/45

°¶·¯¸® Pixelgrapher.com | ·Î¶Ç 6/45 ¹øÈ£»ý¼º ¹× Åë°è µ¥ÀÌÅÍ | Àüü±â»çº¸±â | Àüü±Û #1 | Àüü±Û #2 | Àüü±Û #3 | Àüü±Û #4 | Àüü±Û #5 | Àüü±Û #6 | Àüü±Û #7 | Àüü±Û #8 | Àüü±Û #9 | Àüü±Û #10 |
HOME iWiz
ShareBase
Remember 0523 & 0818
Áö½ÄÀº ³ª´­¼ö·Ï Ä¿Áý´Ï´Ù - iWiz's ShareBase
µ¥ÀÌÅͺ£À̽º µ¥ÀÌÅͺ£À̽º(DBMS)¿¡ °ü·ÃµÈ °¢Á¾ ÀÚ·áµéÀÔ´Ï´Ù.


  ¹ÚÁã(2004-03-30 15:20:26, Hit : 6283, Vote : 40

¿À¶óŬ¿¡¼­ÀÇ ¹é¾÷...


 ¹é¾÷Àº Å©°Ô ³í¸®Àû ¹é¾÷°ú ¹°¸®Àû ¹é¾÷ÀÌ ÀÖ½À´Ï´Ù. ³í¸®ÀûÀÎ ¹é¾÷Àº exportµîÀ» »ç¿ëÇÑ ¿ÀºêÁ§Æ® µîÀÇ ³í¸®Àû ±¸Á¶ µîÀ» ¹é¾÷ ¹Þ´Â °ÍÀ» ÀǹÌÇÏ°í, ¹°¸®ÀûÀº ¹é¾÷Àº ½ÇÁúÀûÀÎ µ¥ÀÌŸ ÆÄÀÏ¿¡ ´ëÇÑ OS¹é¾÷À» ÀÇ¹Ì ÇÕ´Ï´Ù. ±×·³ ÀÌ ½Ã°£¿¡´Â ¹°¸®ÀûÀÎ ¹é¾÷¿¡ ´ëÇØ ¾Ë¾Æº¸µµ·Ï ÇÏ°Ú½À´Ï´Ù.

¹°¸®Àû ¹é¾÷ ¹æ½ÄÀº Å©°Ô µÎ°¡Áö·Î ³ª´©¾î º¼ ¼ö ÀÖ½À´Ï´Ù.

 

Çϳª´Â, NOARCHIVE MODE¿¡¼­ÀÇ OFFLINE BACKUP ÀÌ´Ù.

ÀÌ´Â, ¹é¾÷ ¹æ¹ýÀº ´Ü¼øÇϳª, ¹é¾÷ Áß¿¡ DB¸¦ »ç¿ëÇÒ ¼ö ¾ø±â ¶§¹®¿¡ °è¼Ó DB¸¦ »ç¿ëÇØ¾ß ÇÒ °æ¿ì¿¡´Â Àû´çÇÏÁö ¾Ê´Ù.

±×·³,,ÀÌÁ¦ºÎÅÍ OFFLINE BACKUP ¹æ¹ý¿¡ ´ëÇØ ¾Ë¾Æº¸°Ú´Ù...

OFFLINE BACKUPÀº DBÀÇ µ¥ÀÌŸ ÆÄÀÏ, Á¦¾îÆÄÀÏ, ¸®µÎ·Î±× ÆÄÀÏ(µ¥ÀÌŸº£À̽º¸¦ Á¤»óÀûÀ¸·Î Á¾·áÇÑ °æ¿ì´Â ÇÊ¿äÄ¡ ¾ÊÀ¸³ª, ÀÏ´Ü ¹Þ¾ÆµÎ´Â °ÍÀÌ ÁÁÀ½), ÆĶó¹ÌÅÍ ÆÄÀÏ, ¾ÏÈ£ÆÄÀÏÀ» ¹°¸®ÀûÀ¸·Î ¹é¾÷ ¹ÞÀ¸¸é µÈ´Ù.

 

1. °¢ ÆÄÀÏÀÇ »óÅÂÁ¤º¸ ¹× °æ·Î È®ÀÎ

- µ¥ÀÌŸ ÆÄÀÏ : V$DATEFILE ºä¸¦ ÅëÇØ ÆÄÀÏ À̸§ ¹× »óÅ Á¤º¸¸¦ È®ÀÎÇÑ´Ù.

   SQL> SELECT NAME FROM V$DATAFILE;

   NAME                                                                                                    STATUS                                

   --------------------------------------------------------------------------------

   /home/ora920/oradata/asean3/system01.dbf                      

   /home/ora920/oradata/asean3/undotbs01.dbf

                     .....

   /data/market/MARKET_01.DBF

   /data/market/MARKET_02.DBF

                     .....

   /home/ora920/product/dbs/ASEAN_TEMP0.dbf

   /home/ora920/product/dbs/ASEAN_TEMP1.dbf

- Á¦¾îÆÄÀÏ : V$CONTROLFILE ºä¸¦ ÅëÇØ ÆÄÀÏÀ̸§ ¹× »óÅ Á¤º¸¸¦ È®ÀÎÇÑ´Ù.

   SQL> SELECT NAME FROM V$CONTROLFILE;

   NAME

   --------------------------------------------------

   /home/ora920/oradata/asean3/control01.ctl

   /home/ora920/oradata/asean3/control02.ctl

   /home/ora920/oradata/asean3/control03.ctl  

   /data/oradata/control04.ctl

- ·Î±×ÆÄÀÏ : V$LOGFILE ºä¸¦ ÅëÇØ ÆÄÀÏÀ̸§ ¹× »óÅ Á¤º¸¸¦ È®ÀÎÇÑ´Ù.

   SQL> SELECT MEMBER FROM V$LOGFILE;

   MEMBER

   --------------------------------------------------------------------------------

   /home/ora920/oradata/asean3/redo03.log

   /home/ora920/oradata/asean3/redo02.log

   /home/ora920/oradata/asean3/redo01.log

   /data/oradata/redo01b.log

   /data/oradata/redo02b.log

   /data/oradata/redo03b.log

 

2. µ¥ÀÌŸ º£À̽º SHUTDOWN

    SQL> SHUTDOWN IMMEDIATE;

 

3. 1¹ø¿¡ ¸®½ºÆ®µÈ ¸ðµç ÆÄÀÏ ¹× ÆĶó¹ÌÅÍ / ¾ÏÈ£ÆÄÀÏ º¹»ç

    # cp  /home/ora920/oradata/asean3/*.dbf  /data/backup/

    ...

 

4. µ¥ÀÌŸ º£À̽º OPEN

    SQL> STARTUP;

 

 

µÑ°´Â ¾ÆÄ«ÀÌºê ¸ðµå¿¡¼­ÀÇ ONLINE ¹é¾÷ÀÌ´Ù.

ÀÌ´Â ¹é¾÷¹æ½ÄÀº º¹ÀâÇÏÁö¸¸, µ¥ÀÌŸº£À̽º¸¦ Á¾·áÇÏÁö ¾Ê°í ¹é¾÷À» ¹ÞÀ» ¼ö ÀÖÀ¸¹Ç·Î 24½Ã°£ ¿î¿µÇÏ´Â ¾÷¹«¸¦ Áö¿øÇϴµ¥, Àû´çÇÑ ¹é¾÷ ¹æ½ÄÀÔ´Ï´Ù. ÀÌ·¯ÇÑ ¹é¾÷¹æ¹ýÀº Å×ÀÌºí½ºÆäÀ̽ºÀÇ ¸ðµç µ¥ÀÌŸ¸¦ ¹é¾÷Çϰųª, °³º° µ¥ÀÌŸ ÆÄÀÏÀ» °¢°¢ ¹é¾÷ÇÒ ¼ö ÀÖµµ·Ï Áö¿øÇÕ´Ï´Ù. ¶ÇÇÑ µ¥ÀÌŸ ÆÄÀÏÀÌ ¹é¾÷ ¸ðµå¿¡ ÀÖÀ¸¸é ·Î±× ±â·ÏÀÚ´Â º¯°æµÈ ºí·Ï¿¡ ´ëÇØ ºí·Ï À̹ÌÁö¸¦ ¸®µÎ ·Î±×¿¡ ±â·ÏÇϱ⠶§¹®¿¡ ¸®µÎ·Î±× ÆÄÀÏ¿¡ ¸¹Àº ·Î±×°¡ »ý¼º µË´Ï´Ù.

 

1. µ¥ÀÌŸ ÆÄÀÏ ¹é¾÷

1) V$TBALESPACE¿Í V$DATAFILEÀÇ ºäƲ ÅëÇØ Å×ÀÌºí ½ºÆäÀ̽º¿Í µ¥ÀÌŸ ÆÄÀÏÀÇ ¸®½ºÆ®¸¦ È®ÀÎ

    SQL> SELECT T.NAME, D.NAME      

             FROM V$TABLESPACE T, V$DATAFILE D

             WHERE T.TS#=D.TS#;           

    NAME                       NAME

    -----------------------------------------------------------------------

    ASEAN3            /home/ora920/oradata/asean3/ASEAN3_01.DBF

    ASEAN3            /home/ora920/oradata/asean3/ASEAN3_02.DBF

    ASEAN3            /home/ora920/oradata/asean3/ASEAN3_03.DBF

    ASEAN3            /home/ora920/oradata/asean3/ASEAN3_04.DBF

                                        ........

 2) µ¥ÀÌŸ ÆÄÀÏ ¶Ç´Â Å×ÀÌºí ½ºÆäÀ̸¦ ¹é¾÷¸ðµå·Î ¼³Á¤.

     - µ¥ÀÌŸ ÆÄÀÏÀÇ SCNÀÌ °íÁ¤µÇ¾î º¹±¸½Ã ·Î±×°¡ ¹é¾÷ ÀÌÈĺÎÅÍ Àû¿ëµÇµµ·Ï ÇÔ

     - Á¤»óÀûÀÎ Æ®·£Á§¼Ç °¡´É

    SQL> ALTER TABLESPACE ASEAN3

             BEGIN BACKUP;

             Tablespace altered.

 3) OS copy

     $ cp ASEAN3_10.DBF /backup/oracle_backup/

 4) ¹é¾÷ ¸ðµå ÇØÁ¦

     SQL> ALTER TABLESPACE ASEAN3 END BACKUP;

     Tablespace altered.

 5) °­Á¦·Î üũÆ÷ÀÎÆ®¸¦ ÀÏÀ¸ÄÑ ¸ðµç ÆÄÀÏ Çì´õ¸¦ µ¿±âÈ­ ½ÃÅ´

     SQL> ALTER SYSTEM SWITCH LOGFILE;

     System altered.

 6) °¢ Å×ÀÌºí½ºÆäÀ̽º¿¡ ´ëÇØ 1-5±îÁöÀÇ ÇൿÀ» ¹Ýº¹

 

2. Á¦¾îÆÄÀÏ ¹é¾÷ : ÀνºÅϽº ½ÃÀÛ ½Ã¿¡´Â Á¦¾îÆÄÀÏ¿¡ ÀÖ´Â Á¤º¸°¡ ÇÊ¿äÇѵ¥, µ¥ÀÌŸº£À̽º ±¸¼ºÀ» º¯°æÇÑ ÈÄ¿¡´Â ¹Ýµå

                           ½Ã ÃÖ±Ù º¹»çº»À» À¯Áö °ü¸® ÇÏ¿©¾ß ÇÑ´Ù. º¹»çº»À» À¯ÁöÇÏ´Â ¹æ¹ýÀº Å©°Ô µÎ°¡Áö°¡ ÀÖ´Ù.

 1) ÀÌÁø À̹ÌÁö »ý¼º : Á¦¾îÆÄÀÏÀÇ º¹»çº»ÀÌ binary file·Î »ý¼º

     SQL> ALTER DATABASE BACKUP CONTROLFILE TO '/backup/oracle_backup/control.bkp';

     Database altered.

 2) ÅؽºÆ® ÆÄÀÏ »ý¼º : DDL¹®ÀåÀÌ »ý¼ºµÇ¾î script¸¸ µ¹¸®¸é control fileÀÌ »ý¼ºµÈ´Ù.

     SQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE;

     Database altered.

 

 

³¡À¸·Î µ¥ÀÌŸº£À̽º¸¦ ARCHIVE MODE·Î °¥°ÍÀΰ¡, ¾Æ´Ï¸é NOARCHIVE·Î °¥°ÍÀΰ¡´Â ¿î¿µÁßÀΠȯ°æ¿¡ µû¶ó ´Ù¸£±â ¶§¹®¿¡ ¿©±â¼­ ¾ð±ÞÀº ÇÏÁö ¾Ê°Ú´Ù. ´ÜÁö ARCHIVE MODE¿Í NOARCHIVEÀÇ Â÷ÀÌÁ¡¸¸ °£´ÜÈ÷ ¾ð±ÞÇÏ°Ú´Ù.

±¸ºÐ

ARCHIVE MODE

NOARCHIVE MODE

µ¥ÀÌŸ ÆÄÀÏ ÈѼÕ

 º¹±¸ °¡´É

 º¹±¸ °¡´É

º¹±¸

 ¼Õ½Ç ¹Ù·Î Á÷Àü ±îÁö º¹±¸ °¡´É

 ¹é¾÷ ¹ÞÀº ÀÌÈÄÀÇ ½ÃÁ¡Àº º¹±¸ ºÒ°¡´É

µ¥ÀÌŸº£À̽º ¾×¼¼½º

 NOARCHIVE MODE¿¡ ºñÇØ ºÎÇÏ°¡ Å­

 ºÎÇÏ ¾øÀ½

7*24¼­ºñ½º

 °¡´É

 ºÒ°¡´É

µð½ºÅ© ½ºÆäÀ̽º

 ¾ÆÄ«À̺êµÈ ÆÄÀÏ¿¡ ´ëÇÑ ÀúÀå °ø°£ ÇÊ¿ä

 

 

* iWiz´Ô¿¡ ÀÇÇؼ­ °Ô½Ã¹° À̵¿µÇ¾ú½À´Ï´Ù (2010-02-03 17:06)



22   ¿À¶óŬ ¹«·á °ü¸® ÅøÀÌ À־ ¼Ò°³ ÇÕ´Ï´Ù. [1]  ±è±â¿µ 2007/04/28 8227 0
21   Default Temporary Tablespace ¼öÁ¤  ¹ÚÁã 2004/05/03 8902 44
20   ¸®µÎ·Î±× ÆÄÀÏÀÇ drop / add / relocation ¹× rename  ¹ÚÁã 2004/04/22 6936 33
19   ¿À¶óŬÀÇ Undo Segment [3]  ¹ÚÁã 2004/04/06 9011 38
18   import À¯Æ¿¸®Æ¼ [3]  ¹ÚÁã 2004/04/01 6473 35
17   ¼¼¼Ç°ü¸®  ¹ÚÁã 2004/03/31 8046 31
16   LogMiner  ¹ÚÁã 2004/03/31 7275 39
  ¿À¶óŬ¿¡¼­ÀÇ ¹é¾÷...  ¹ÚÁã 2004/03/30 6283 40
14   ¿À¶óŬÀÇ Constraint(Á¦¾àÁ¶°Ç)  ¹ÚÁã 2004/03/26 37506 38
13   Export À¯Æ¿¸®Æ¼ [1]  ¹ÚÁã 2004/03/23 5394 35
12   ºñ±³ / ³í¸® ¿¬»êÀÚ ¹× ¿¬»ê ¿ì¼± ¼øÀ§  ¹ÚÁã 2004/03/22 9271 41
11   NULLÀ̶õ?? [2]  ¹ÚÁã 2004/03/22 7933 32
10   µ¥ÀÌŸ º£À̽ºÀÇ STARTUP°ú SHUTDOWN  ¹ÚÁã 2004/03/19 5341 34
9   ¿À¶óŬ Architecture  ¹ÚÁã 2004/03/19 5219 32
8   ¿Ü¿öµµ ¿Ü¿öµµ ±î¸Ô´Â ¿À¶óŬ ÇÔ¼ö (¹Ø¿¡²¨ ÆÛ°¡´Â ´ë½Å ¤¾) [1]  ÀÌÁØÈ£ 2004/07/15 11891 43

1 [2]
 

Copyright 1999-2024 Zeroboard / skin by zero
iWiz ShareBase, ¨ÏCopyleft by iWiz.  For more information contact .
º» À¥»çÀÌÆ®¿¡ °Ô½ÃµÈ À̸ÞÀÏ ÁÖ¼Ò°¡ ÀüÀÚ¿ìÆí ¼öÁý ÇÁ·Î±×·¥À̳ª ±× ¹ÛÀÇ ±â¼úÀû ÀåÄ¡¸¦ ÀÌ¿ëÇÏ¿© ¹«´ÜÀ¸·Î ¼öÁýµÇ´Â °ÍÀ» °ÅºÎÇϸç, À̸¦ À§¹Ý½Ã¿¡´Â Á¤º¸Åë½Å¸Á¹ý¿¡ ÀÇÇØ Çü»çó¹úµÊÀ» À¯³äÇϽñ⠹ٶø´Ï´Ù. [°Ô½ÃÀÏ 2004. 1. 31]