¸®µÎ·Î±×ÆÄÀÏÀÇ
relocationÀº µÎ°¡Áö ¹æ¹ýÀ¸·Î »ý°¢ÇØ º¼ ¼ö ÀÖ´Ù. Çϳª´Â ¸®µÎ·Î±×ÆÄÀÏÀ» addÇÑ
ÈÄ dropÇÏ´Â ¹æ¹ýÀÌ ÀÖ°í, µÎ¹ø°´Â ALTER DATABASE RENAME FILEÀ» ÇÏ´Â ¹æ¹ýÀÌ ÀÖ´Ù.
ÇÏÁö¸¸ µÎ¹ø° ¹æ¹ýÀº µ¥ÀÌŸº£À̽º¸¦ NOMOUNT´Ü°è·Î ¼³Á¤ÇØ¾ß µÇ±â ¶§¹®¿¡ ù¹ø°
¹æ¹ýÀÌ È¿À²ÀûÀ̶ó ÆǴܵȴÙ.
¶ÇÇÑ ¸®µÎ·Î±×ÆÄÀÏ°ú
µ¥ÀÌŸ ÆÄÀÏ, ¸®µÎ·Î±×ÆÄÀÏ°ú ¾ÆÄ«À̺ê ÆÄÀÏÀº DISK ContentionÀ» ÁÙÀ̱â À§ÇØ °¢°¢
´Ù¸¥ µð½ºÅ©¿¡ ÀúÀåÇÏ´Â °ÍÀÌ È¿À²ÀûÀÌ´Ù.
¸®µÎ·Î±× ÆÄÀÏÀÇ
relocation
1. ºä¸¦ ÅëÇØ
¸®µÎ·Î±× ÆÄÀÏÀÇ ¼³Á¤ »óÅ ȮÀÎ
SQL>
SELECT L.GROUP#, L.SEQUENCE#, L.STATUS, F.STATUS, F.MEMBER
FROM
V$LOG L, V$LOGFILE F
WHERE L.GROUP#=F.GROUP#
GROUP#
SEQUENCE# STATUS STATUS
MEMBER
-------
----------- -------- --------
------------------------------
1
1253 CURRENT
/home/ora920/oradata/asean3/redo01.log
1
1253 CURRENT
/data/oradata/redo01b.log
2
1251 INACTIVE
/home/ora920/oradata/asean3/redo02.log
2
1251 INACTIVE
/data/oradata/redo02b.log
3
1252 ACTIVE
/home/ora920/oradata/asean3/redo03.log
3
1252 ACTIVE
/data/oradata/redo03b.log
2. ¸®µÎ·Î±×
ÆÄÀÏÀÇ ±×·ì Ãß°¡
SQL>
ALTER DATABASE ADD LOGFILE
('/home/ora920/oradata/asean3/redo1a.log',
'/data/oradata/redo1b.log') SIZE 100M;
Database
altered.
3. ¸®µÎ·Î±×ÆÄÀÏ
Ãß°¡ »óÅ ȮÀÎ
SQL>
SELECT L.GROUP#, L.SEQUENCE#, L.STATUS, F.STATUS, F.MEMBER
FROM
V$LOG L, V$LOGFILE F
WHERE L.GROUP#=F.GROUP#
GROUP#
SEQUENCE# STATUS STATUS
MEMBER
-------
----------- -------- --------
------------------------------
1
1253 CURRENT
/home/ora920/oradata/asean3/redo01.log
1
1253 CURRENT
/data/oradata/redo01b.log
2
1251 INACTIVE
/home/ora920/oradata/asean3/redo02.log
2
1251 INACTIVE
/data/oradata/redo02b.log
3
1252 INACTIVE
/home/ora920/oradata/asean3/redo03.log
3
1252 INACTIVE
/data/oradata/redo03b.log
4
0 UNUSED
/home/ora920/oradata/asean3/redo1a.log
4
0 UNUSED
/data/oradata/redo1b.log
4. ¸®µÎ·Î±×ÆÄÀÏÀÇ
»èÁ¦ : ¸®µÎ·Î±×ÆÄÀÏÀÇ STATUS°¡ CURRENTÀ̰ųª ACTIVEÀÌ¸é »èÁ¦°¡ ¾ÈµÇ¹Ç·Î
ALTER SYSTEM
SWITCH LOG FILEÀ̳ª STATUS°¡ INACTIVE°¡ µÉ ¶§ ±îÁö ±â´Ù·Á¾ß ÇÑ´Ù.
SQL>
ALTER DATABASE DROP LOGFILE GROUP 2;
Database
altered.
5. ¸®µÎ·Î±×ÆÄÀÏÀÇ
»èÁ¦ »óÅ ȮÀÎ
SQL>
SELECT L.GROUP#, L.SEQUENCE#, L.STATUS, F.STATUS, F.MEMBER
FROM
V$LOG L, V$LOGFILE F
WHERE L.GROUP#=F.GROUP#
GROUP#
SEQUENCE# STATUS STATUS
MEMBER
-------
----------- -------- --------
------------------------------
1
1253 CURRENT
/home/ora920/oradata/asean3/redo01.log
1
1253 CURRENT
/data/oradata/redo01b.log
3
1252 INACTIVE
/home/ora920/oradata/asean3/redo03.log
3
1252 INACTIVE
/data/oradata/redo03b.log
4
0 UNUSED
/home/ora920/oradata/asean3/redo1a.log
4
0 UNUSED
/data/oradata/redo1b.log
6. OS»ó¿¡¼
ÆÄÀÏ »èÁ¦ : DB³»¿¡¼ ¸®µÎ·Î±×ÆÄÀÏÀ» »èÁ¦ Çß´õ¶óµµ OS»ó¿¡´Â ÆÄÀÏÀÌ ³²¾Æ ÀÖÀ¸¹Ç·Î
¹°¸®ÀûÀ¸·Î ÆÄÀÏÀ» »èÁ¦
ÇØÁÖ¾î¾ß ÇÑ´Ù.(¼±ÅûçÇ×)
[oramaster@asean
oradata]$ rm redo02b.log
[oramaster@asean
asean3]$ rm redo02.log
* iWiz´Ô¿¡ ÀÇÇؼ °Ô½Ã¹° À̵¿µÇ¾ú½À´Ï´Ù (2010-02-03 17:06)
|