SQL Agent: Restore of Microsoft x64 SQL2005 Master database fails with the error "An error occurred on a query to database master" if the option "Automate master database restore" is selected.
Details:
If "Automate master database restore" option was being
selected, the restore job of "master" database of x64 SQL2005 might fail with
the above error.
The remote agent debug log will indicate the following
error:
"Exclusive access could not be obtained because the database is in
use"
Workaround:
Start the SQL Server instance in Single
user mode and resubmit the restore operation as given below:
1. Manually
restart the SQLServer instance in Single user mode.
Example: sqlservr.exe -c
-m
2. Wait for several seconds until the instance is in stable
condition.
3. Modify the SQL properties of the restore job as
follows:
- Deselect the option "Automate
master database restore" from the Restore Job properties. (Figure 1)
Figure
1
- Select "Overwrite the existing
database" from Tools|Options|Job Defaults|Microsoft SQL. (Figure 2)
Figure
2
4. Run
the restore job.
Solution:Upgrade to Backup Exec
11d or above.
Products Applied:
Backup Exec 10d (10.1), 11d (11.0) (Fixed)
Subjects:
Backup Exec
Agent For Sql: Backup-Restore, Troubleshoot
Languages:
English (US)
Operating Systems:
Windows Server 2003DataCenter (x64), Enterprise (x64), Standard Server(x64)
THE INFORMATION PROVIDED IN THE SYMANTEC SOFTWARE KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. SYMANTEC SOFTWARE DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SYMANTEC SOFTWARE OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES,EVEN IF SYMANTEC SOFTWARE OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.