SQL Server Backup Error 3023
- Version : SQL Server 2005, 2008, 2008R2, 2012
SQL Server에서 백업을 실행 하였는데 다음과 같은 오류가 발생 하였다.
에러로그에는 다음과 같은 오류 메시지가 기록되었다.
Error 3023
Severity Level 16
Message Text
Backup and file manipulation operations (such as ALTER DATABASE ADD FILE) on a database must be serialized. Reissue the statement after the current backup or file manipulation operation is completed. |
오류 내용을 보면 "백업 또는 파일 작업(파일 추가, 축소 등)은 직렬화 되어야 한다. 현재 백업 또는 파일 작업이 완료 된 후 다시 진행 한다" 라고 설명 되어 있다.
Microsoft 기술 문서를 확인해 보면 다음의 작업은 백업과 동시에 실행 할 수 없다고 한다.
- ALTER DATABASE 명령을 사용하여 파일 추가 또는 파일을 제거하는 작업
- 데이터베이스 축소 또는 파일 축소 작업
백업 시 3023 에러가 발생 할 때 백그라운드 또는 다른 사용자에 의해서 데이터베이스가 작업하고 있는지 다음 스크립트를 사용하여 확인 할 수 있다.
select Command, db_name(database_id) as DatabaseName, percent_complete from sys.dm_exec_requests CROSS APPLY sys.dm_exec_sql_text(sql_handle) where command in ('resotre database', 'backup database') |
[참고자료]
강성욱 / jevida@naver.com
Microsoft SQL Server MVP
Blog : http://sqlmvp.kr
Facebook : http://facebook.com/sqlmvp