다음을 통해 공유


SSISDB가 AG로 구성된 경우 오류 945 및 SQL Server 업그레이드가 실패함

이 문서에서는 데이터베이스 업그레이드 스크립트를 실행할 때 MICROSOFT SQL Server 대한 CU(누적 업데이트) 또는 SP(서비스 팩)가 오류 코드 945를 보고하는 경우 발생하는 문제를 해결하는 데 도움이 됩니다.

증상

CU 또는 SP를 적용하면 설치 프로그램에서 다음 오류 메시지를 반환합니다.

데이터베이스 엔진 복구 핸들을 기다리지 못했습니다. SQL Server 오류 로그에서 잠재적인 원인을 확인합니다.

또한 다음 오류 항목이 SQL Server 오류 로그에 기록될 수 있습니다.

Database 'master' is upgrading script 'SSIS_hotfix_install.sql' from level 201331031 to level 201331592.
Error: 945, Severity: 14, State: 2.
Database 'SSISDB' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details.
Error: 912, Severity: 21, State: 2.
Script level upgrade for database 'master' failed because upgrade step 'SSIS_hotfix_install.sql' encountered error 945, state 2, severity 25. This is a serious error condition which might interfere with regular operation and the database will be taken offline. If the error happened during upgrade of the 'master' database, it will prevent the entire SQL Server instance from starting. Examine the previous errorlog entries for errors, take the appropriate corrective actions and re-start the database so that the script upgrade steps run to completion.
Error: 3417, Severity: 21, State: 3.
Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it. For more information about how to rebuild the master database, see SQL Server Books Online.
SQL Server shutdown has been initiated

원인

SQL Server Integration Services 카탈로그 데이터베이스(SSISDB)가 ag(Always On 가용성 그룹)에 추가되면 스크립트 업그레이드가 실패할 수 있습니다. 업그레이드 프로세스는 단일 사용자 모드에서 실행됩니다. 그러나 가용성 데이터베이스는 다중 사용자 데이터베이스여야 합니다. 따라서 업그레이드 설치 중에 SSISDB를 포함한 모든 가용성 데이터베이스가 오프라인으로 전환되고 업그레이드되지 않습니다.

자세한 내용은 가용성 그룹에서 SSISDB 업그레이드를 참조하세요.

해결 방법

이 문제를 해결하려면 다음 단계를 따릅니다.

  1. AG에서 SSISDB를 제거합니다.
  2. 각 노드에서 CU 업그레이드를 실행합니다.
  3. 업그레이드가 완료되면 SSISDB를 AG로 복원합니다.