'백업실패'에 해당되는 글 1건

  1. 2011.05.26 [MSSQL] In-row data RSVD page count 문제 해결방법
---Problem---------------------------------------------------------------------------------

[1] 데이터베이스 TEST_DB: 데이터 및 인덱스 링크 검사...
[Microsoft SQL-DMO (ODBC SQLState: 42000)] 오류 2508: [Microsoft][ODBC SQL Server Driver][SQL Server]개체 "TestTable", 인덱스 ID 0, 파티션 ID 82747558526976, 할당 단위 ID 82747558526976(In-row data 유형)의 In-row data RSVD page 개수가 잘못되었습니다. DBCC UPDATEUSAGE를 실행하십시오.
[Microsoft][ODBC SQL Server Driver][SQL Server]CHECKDB이(가) 테이블 'TestTable'(개체 ID 1262627541)에서 0개의 할당 오류와 1개의 일관성 오류를 찾았습니다.
[Microsoft][ODBC SQL Server Driver][SQL Server]CHECKDB이(가) 데이터베이스 'TEST_DB'에서 0개의 할당 오류와 1개의 일관성 오류를 찾았습니다.

    다음 오류가 발생했습니다.

[Microsoft][ODBC SQL Server Driver][SQL Server]개체 "TestTable", 인덱스 ID 0, 파티션 ID 82747558526976, 할당 단위 ID 82747558526976(In-row data 유형)의 In-row data RSVD page 개수가 잘못되었습니다. DBCC UPDATEUSAGE를 실행하십시오.
[Microsoft][ODBC SQL Server Driver][SQL Server]CHECKDB이(가) 테이블 'TestTable'(개체 ID 1262627541)에서 0개의 할당 오류와 1개의 일관성 오류를 찾았습니다.
[Microsoft][ODBC SQL Server Driver][SQL Server]CHECKDB이(가) 데이터베이스 'TEST_DB'에서 0개의 할당 오류와 1개의 일관성 오류를 찾았습니다.
    ** 실행 시간: 0시간, 7분, 57초 **



---Solutions--------------------------------------------------------------------------------

I started running into the same issue when I moved a system from SQL 2000 to SQL 2005.  Mine was always on the same table. I found the following in the help text for DBCC CHECKDB.  Because of it, I've put a DBCC UPDATEUSAGE in prior to the CHECKDB.

In earlier versions of SQL Server, the values for the per-table and per-index row count and page counts can become incorrect. Under certain circumstances, one or more of these values might even become negative. In SQL Server 2005, these values are always maintained correctly. Therefore, databases that are created on SQL Server 2005 should never contain incorrect counts; however, databases that are upgraded to SQL Server 2005 might. This is not a corruption of any data stored in the database. DBCC CHECKDB has been enhanced to detect when any one of these counts becomes negative. When negative counts are detected, the DBCC CHECKDB output contains a warning and a recommendation to run DBCC UPDATEUSAGE to correct the issue. Although it may appear as if upgrading the database to SQL Server 2005 has caused this issue, the incorrect counts were present before the upgrade procedure.


---Execute---------------------------------------------------------------------------------

DBCC UPDATEUSAGE (0) WITH COUNT_ROWS

GO

DBCC CHECKDB

GO
-----------------------------------------------------------------------------------------------------------
MSSQL 2000 에서 2008 로 변경하는 작업이 진행되었다
하지만 유지관리계획에서 데이터베이스 백업부분 잡스케줄이 자꾸 실패하는 것이다. 
확인해본 결과 복원한 DB 의 변경된 정보들이 시스템 테이블에 업데이트 되지 않아 발생하는 문제였다

sysindexes 에 있는 정보를 최신상태로 업데이트하는 구문인
DBCC UPDATEUSAGE(0) 을 실행하면 말끔히 해결된다
RSVD 페이지수가 변경되는 모습도 보일것이다


 
출처 : 
http://zarathustra.tistory.com/entry/XFile-4

Posted by 스왓
이전버튼 1 이전버튼