數據庫打補丁,服務升級失敗

系統版本:windows 2003企業版sql

數據庫版本:SQLSERVER2005 ent數據庫

 

場景:線上數據庫最近發現不時的報錯:windows

SQL Server 斷言: 文件: <lckmgr.cpp>,行=10850 失敗的斷言 = 'GetLocalLockPartition () == xactLockInfo->GetLocalLockPartition ()'。此錯誤可能與時間有關。若是從新運行該語句後錯誤仍然存在,請使用 DBCC CHECKDB 來檢查數據庫的結構是否完整,或從新啓動服務器以確保內存中的數據結構未破壞。服務器

查資料發現因爲是補丁問題,sp2上須要打一個更新補丁。數據結構

因爲記得線上此數據庫是打過sp4補丁的,當時挺納悶的。最終經查看,數據庫補丁號仍然是3042.因而決定從新打補丁。spa

 

打補丁的過程當中,服務升級失敗,其它都成功了。日誌

summary.txtorm

----------------------------------------------------------------------------------ip

Product : 數據庫服務 (MSSQLSERVER)
Product Version (Previous): 3042
Product Version (Final) :
Status : 失敗
Log File : C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG\Hotfix\SQL9_Hotfix_KB2463332_sqlrun_sql.msp.log
Error Number : 29538
Error Description : MSP Error: 29538 SQL Server 安裝程序沒有重命名文件 c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mssqlsystemresource1.ldf 所需的管理員權限。若要繼續,請確保文件存在,並授予當前運行安裝程序的賬戶管理員權限或使用管理員賬戶登陸,而後再次運行 SQL Server 安裝程序。內存

---------------------------------------------------------------------------------------

HotFix:

06/08/2013 03:09:44.156 Copy Engine: Creating MSP install log file at: C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG\Hotfix\SQL9_Hotfix_KB2463332_sqlrun_sql.msp.log
06/08/2013 03:09:44.171 Registry: Opened registry key "Software\Policies\Microsoft\Windows\Installer"
06/08/2013 03:09:44.171 Registry: Cannot read registry key value "Debug", error 0
06/08/2013 03:11:08.937 MSP Error: 29538 SQL Server 安裝程序沒有重命名文件 c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mssqlsystemresource1.ldf 所需的管理員權限。若要繼續,請確保文件存在,並授予當前運行安裝程序的賬戶管理員權限或使用管理員賬戶登陸,而後再次運行 SQL Server 安裝程序。
06/08/2013 03:11:49.171 MSP returned 1603: 安裝過程當中出現嚴重錯誤。
06/08/2013 03:11:49.171 Registry: Opened registry key "Software\Policies\Microsoft\Windows\Installer"
06/08/2013 03:11:49.171 Registry: Cannot read registry key value "Debug", error 0
06/08/2013 03:11:50.000 Copy Engine: Error, unable to install MSP file: c:\7b4a4a6552f466813c45a048\HotFixSQL\Files\sqlrun_sql.msp
06/08/2013 03:11:50.062 The following exception occurred: 沒法安裝 Windows Installer MSP 文件 Date: 06/08/2013 03:11:50.000 File: \depot\sqlvault\stable\setupmainl1\setup\sqlse\sqlsedll\copyengine.cpp Line: 807
06/08/2013 03:11:50.546 Watson: Param1 = Do_sqlFileRename
06/08/2013 03:11:50.546 Watson: Param2 = 0x7362
06/08/2013 03:11:50.546 Watson: Param3 = Do_sqlFileRename
06/08/2013 03:11:50.546 Watson: Param4 = 0x7362
06/08/2013 03:11:50.546 Watson: Param5 = sqlca\sqlfilerename.cpp@142

-------------------------------------------------------------------------------------

SQL9_Hotfix_KB2463332_sqlrun_sql.msp.log

Property(S): SQL200564Hotfix5000 = c:\7b4a4a6552f466813c45a048\HotFixSQL\Files\sqlrun_sql.msp
MSI (s) (74:D8) [03:11:49:062]: 產品: Microsoft SQL Server 2005 (64 位) - 沒法安裝更新 'SQL Server Database Services 2005 (64 位) Service Pack 4 CHS (KB2463332)'。錯誤碼 1603。能夠在日誌文件 C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG\Hotfix\SQL9_Hotfix_KB2463332_sqlrun_sql.msp.log 中找到其餘信息。

MSI (s) (74:D8) [03:11:49:062]: Note: 1: 1729
MSI (s) (74:D8) [03:11:49:062]: Transforming table Error.

MSI (s) (74:D8) [03:11:49:062]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (74:D8) [03:11:49:078]: Transforming table Error.

MSI (s) (74:D8) [03:11:49:078]: Transforming table Error.

MSI (s) (74:D8) [03:11:49:078]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (74:D8) [03:11:49:078]: Transforming table Error.

MSI (s) (74:D8) [03:11:49:078]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (74:D8) [03:11:49:078]: Transforming table Error.

MSI (s) (74:D8) [03:11:49:078]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (74:D8) [03:11:49:078]: Transforming table Error.

MSI (s) (74:D8) [03:11:49:078]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (74:D8) [03:11:49:093]: Transforming table Error.

MSI (s) (74:D8) [03:11:49:093]: Transforming table Error.

MSI (s) (74:D8) [03:11:49:093]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (74:D8) [03:11:49:093]: Transforming table Error.

MSI (s) (74:D8) [03:11:49:093]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (74:D8) [03:11:49:093]: Transforming table Error.

MSI (s) (74:D8) [03:11:49:093]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (74:D8) [03:11:49:093]: 產品: Microsoft SQL Server 2005 (64 位) -- 配置失敗。

MSI (s) (74:D8) [03:11:49:093]: Attempting to delete file c:\WINDOWS\Installer\344bc1.msp
MSI (s) (74:D8) [03:11:49:093]: Unable to delete the file. LastError = 32
MSI (s) (74:D8) [03:11:49:109]: Cleaning up uninstalled install packages, if any exist
MSI (s) (74:D8) [03:11:49:109]: MainEngineThread is returning 1603
MSI (s) (74:5C) [03:11:49:109]: Destroying RemoteAPI object.
MSI (s) (74:98) [03:11:49:109]: Custom Action Manager thread ending.
=== 記錄中止: 2013-6-8 3:11:49 ===
MSI (c) (DC:7C) [03:11:49:156]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (DC:7C) [03:11:49:156]: MainEngineThread is returning 1603
=== Verbose logging stopped: 2013-6-8 3:11:49 ===

 -----------------------------------------------------------------------------------------------

因爲我登陸系統用的是adminstrator。權限怎麼會不夠呢,想不通。

找到一篇文章說是sql write服務的問題,它上邊列出的解決方法沒看太懂。不過看線上系統的這個服務確實是沒開啓的,回去作個試驗先試驗下看看。

http://social.msdn.microsoft.com/Forums/en-US/sqlsetupandupgrade/thread/4e3ecb75-592e-4c29-8707-8997704c8e1b

相關文章
相關標籤/搜索