¹é¾÷Àº
Å©°Ô ³í¸®Àû ¹é¾÷°ú ¹°¸®Àû ¹é¾÷ÀÌ ÀÖ½À´Ï´Ù. ³í¸®ÀûÀÎ ¹é¾÷Àº 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)
|