SQL Server 2005 µ¥ÀÌÅͺ£À̽º ÁÖÀÇ´ë»ó(suspect) ¹®Á¦ ÇØ°á
Wednesday, October 21, 2009 1:07 AMLai Go
Server, SQL Server ¿î¿µ Áß ¹ß»ýÇÏ´Â Àå¾Ö¿Í °ü·ÃÇÏ¿© case ¸¦ Á¤¸®ÇÏ°í ÀÖ½À´Ï´Ù¸¸ suspect ¿Í °ü·ÃµÈ À̽´°¡ Á¾Á¾ ÀÖ¾î Á¤¸®ÇØ ºÃ½À´Ï´Ù.
H/W fault µîÀÇ ÀÌÀ¯·Î SQL Server 2005 Æ®·£Àè¼Ç ·Î±× ¼Õ»ó¿¡ ÀÇÇÑ SUSPECT (ÁÖÀÇ´ë»ó) ÀÌ °¡²û ¹ß»ýÇÕ´Ï´Ù. ÀÌ ¶§, ·Î±×¸¦ ¸®ºôµåÇÏ¿© º¹±¸ÇÏ´Â ÀýÂ÷¿¡ ´ëÇؼ ¾Æ·¡¿Í °°ÀÌ Á¤¸®ÇÏ¿´½À´Ï´Ù.
µ¥ÀÌÅÍ ¼Õ»óÀÌ ÀÖÀ» °æ¿ì¿¡´Â ¾Æ·¡ÀÇ ¹æ¹ýÀ¸·Î ó¸®ÇÒ ¼ö ¾ø´Â »ç·Êµµ ÀÖ½À´Ï´Ù. case ´Â case ÀÏ»Ó....
¹°·Ð Áß¿ä µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ Àå¾Ö ¹ß»ý ½Ã¿£ °¡±î¿î Àü¹®°¡¸¦ ãÀ¸½Ã´Â°Ô ÁÁ°Ú½À´Ï´Ù.
[½Ã³ª¸®¿À]
LAIGO µ¥ÀÌÅͺ£À̽º SUSPECT ¹ß»ý º¹±¸ ÀýÂ÷
[º¹±¸ÀýÂ÷]
1. Æ®·£Àè¼Ç ·Î±× ÆÄÀÏ À̸§ È®ÀÎ
USE LAIGO
GO
Exec sp_helpdb LAIGO
2. µ¥ÀÌÅͺ£À̽º »óŸ¦ Single user ¸ðµå·Î º¯°æ
ALTER DATABASE LAIGO SET SINGLE_USER WITH ROLLBACK IMMEDIATE
3. SQL Server ¼ºñ½º ÁßÁö ¹× ±âÁ¸ LDF ·Î±× ÆÄÀÏÀÇ À̸§À» º¯°æ
4. SQL Server ¼ºñ½º ½ÃÀÛ
5. »õ·Î¿î ·Î±× ÆÄÀÏ ÁöÁ¤ÇÏ¿© rebuild log ¼öÇà
ALTER DATABASE LAIGO REBUILD LOG ON
(NAME=LAIGO_Log, FILENAME='D:\MSSQL\DATA\LAIGO_Log.ldf')
6. SQL Server Àç½ÃÀÛ ÈÄ CheckDB ¼öÇà
DBCC CHECKDB (LAIGO)
6-1. ÀÏ°ü¼º ¿À·ù ¹ß»ý ½Ã µ¥ÀÌÅÍ ¿À·ù º¹±¸ ±¸¹® ¼öÇà(µ¥ÀÌÅÍ ¼Õ½ÇÀÌ ¹ß»ýÇÒ ¼ö ÀÖÀ½)
DBCC CHECKDB('LAIGO', REPAIR_ALLOW_DATA_LOSS)
¡Ø º¹±¸ ¸ðµå¿¡ ´ëÇؼ´Â ¾Æ·¡ Âü°íÀÚ·á ¸µÅ© ¶Ç´Â msdn ¶óÀ̺귯¸®¸¦ ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù.
7. Æ®·£Àè¼Ç ·Î±× ÆÄÀÏ »çÀÌÁî, Áõ°¡ ¿É¼Ç º¯°æ
ALTER DATABASE LAIGO MODIFY FILE
( NAME = N'LAIGO_Log', SIZE = 10GB, FILEGROWTH = 300MB )
8. µ¥ÀÌÅͺ£À̽º »óŸ¦ multi user·Î º¯°æ
ALTER DATABASE LAIGO SET MULTI_USER
9. SUSPECT_PAGES È®ÀÎ
SELECT * FROM MSDB.DBO.SUSPECT_PAGES
[Âü°íÀÚ·á]
SQL Server 2000 Database suspect (ÁÖÀÇ´ë»ó) º¹±¸
http://laigo.kr/27
|