设为首页 收藏本站
查看: 1028|回复: 0

[经验分享] SQL Server升级安全组SID(安全标识符)检查规则失败

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2016-11-6 08:38:42 | 显示全部楼层 |阅读模式
  今天在论坛看到有用户出现Security Group upgrade rule失败 错误:rule "Security Group SID(Security Identifier)" failed。发生这个错误的原因是SQL Server创建的Windows本地组SID信息与注册表中的SID不匹配,需要用 WHOAMI /GROUPS查出正确的SID然后替换注册表中的错误SID,问题可以解决。
  
  具体步骤参考:
  
  Problem
  Last month I was working on a SQL Server 2005 to SQL Server 2008 R2
upgrade. Unfortunately, we were not able to complete our upgrade because of a failing a upgrade rule named "Security Group SID (Security Identifier)". The SQL Server Upgrade Setup Wizard did not enable the 'Next' button in order to proceed with the upgrade
until this failure was resolve. In this tip, I will describe the reason for this failure and how I fixed the issue in order to have a successful upgrade.

Solution
  As I described in the problem statement, we were not able to upgrade our SQL Server because one of the upgrade rules i.e. "Security Group SID (Security Identifier)" failed during the setup process. The SQL Server 2008 R2 Upgrade Setup Wizard would not allow
us to proceed and disabled the "Upgrade Rules" page as shown below.

DSC0000.jpeg
  For the detailed error message, I clicked on "Failed" hyperlink in the status column to read more about the error, but this was not enough to help me understand the issue. Here is the screen shot:

DSC0001.jpeg
  So I decided to check the upgrade log files to find out the main reason why this rule failed. The upgrade and installation log files are save in the setup bootstrap folder. As such, my log files are stored in the C:\Program Files\Microsoft SQL Server\100\Setup
Bootstrap\Log\' folder.
  In the log file, I found the following detailed error messages:

DSC0002.jpeg
  As per the above error log messages highlighted in red, you can see SQL Server setup is trying to read account information from the Windows registry. What the upgrade wizard is doing is reading account information i.e. SIDs from the registry and then searching
for the correct account based on the exact SID (Security Identifiers) for the groups in the local Computer Management. As such, the SIDs should be the same in Computer Management and the Windows registry hive for all groups. Unfortunately in this circumstance
SQL Server setup is not able to find the account information for three accounts.
  Those account SIDs are the SQL Server service groups account that were created during the SQL Server 2005 installation. The error message indicates that SQL Server is not able to map the SIDs to the names of the service group accounts. All three accounts
can be found in SQL Server as logins and in Computer Management. The SQLGroup account is used for the SQL Server Database Engine, AGTGroup is used for SQL Server Agent and FTSGroup is used for Full Text Search, SQL Server creates a system account for all
its features when you install it. If you have SQL Server Reporting Services and SQL Server Analysis Services installed then a additional accounts would be created and assigned SIDs. Below are the SQL Server 2005 group account names:


  • SQLServer2005DTSUser$SERVERNAME
  • SQLServer2005MSFTEUser$SERVERNAME$MSSQLSERVER
  • SQLServer2005MSSQLServerADHelperUser$SERVERNAME
  • SQLServer2005MSSQLUser$SERVERNAME$MSSQLSERVER
  • SQLServer2005NotificationServicesUser$SERVERNAME
  • SQLServer2005SQLAgentUser$SERVERNAME$MSSQLSERVER
  • SQLServer2005SQLBrowserUser$SERVERNAME


Resolving the Upgrade SQL Server 2008 R2 Security Group SID (Security Identifier) Issue
  Below outlines the step by step process which I followed to resolve this issue.
  Step 1 - After reading log file I decided to look into registry location which is mentioned in error log file:

My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup

  Here are the applicable parameters from the registry location:


  As you can see in the above screenshot, the SIDs are the same as in error log. As such, our next step is to find out the SIDs for all these system accounts in Computer Management.
  Step 2 - At the DOS prompt, I used the "WHOAMI" command to find out the system accounts in Computer Management. This utility can be used to get the user name and group information along with the respective security identifiers (SID), privileges,
logon identifier (logon ID) for the current user on the local system. i.e. who is the current logged on. If you are not part of these accounts then add yourself in all of the group accounts. Normally the SQL Server Service Account would be part of all the
group accounts.

WHOAMI /GROUPS



  Now you can see the issue. The SID for same account in above screenshot is different than the SID in registry or error log. So now our next step will be copy to the SID from the above screenshot for each group which is causing the upgrade failure and replace
this value in the registry hive. Make sure you backup your registry before making any changes.
  Step 3 - To replace the registry value double click on the group which is highlighted in red from step 1 and replace the SID with the value from the WHOAMI command in the above screenshot. Follow this process for all three groups and replace
the appropriate values.
  Step 4 - Now reboot the server and start your upgrade again. This time the Upgrade to SQL Server 2008 R2 wizard should recognize the correct SID values enable you to proceed past the "Upgrade Rules" interface.





文章来源:http://www.mssqltips.com/sqlservertip/2569/sql-server-2008-r2-upgrade-failure-due-to-security-group-upgrade-rule/

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-296372-1-1.html 上篇帖子: 【吐槽】使用VS2012 代替SQL Server Manager 进行简单操作 下篇帖子: SQL Server Express 資料庫檔案的連線字串(Connection String)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表