Could not obtain information about Windows NT group/user 'xxxx\xxxx', error code 0x5

简介:

案例描述

    昨晚踢球回来,接到电话说一个系统的几个比较重要作业出错,导致系统数据有些问题。让我赶紧检查看看。检查作业日志时发现,作业报如下错误(关键信息用xxx替换)

The job failed.  Unable to determine if the owner (xxxx\xxxx) of job xxxxx has server access (reason: Could not obtain information about Windows NT group/user 'xxxx\xxxx', error code 0x5. [SQLSTATE 42000] (Error 15404)).

    检查告警邮件时,发现不止这个服务器的作业出现此类问题,而且发现有不少服务器都出现了此类错误。

案例分析

      出现这个问题是因为这些服务器的SQL Server 服务启动帐户是用一个域账号(暂且用域账号A表示)启动的,而这个域账号A 居然被锁了(后面联系系统管理员检查后确认的)。导致数据库作业(作业的所有者(Job Owner)为域账号B,我使用的数据库管理员账户)出现上面错误。紧急情况是将作业的所有者改为sa,能保证作业运行不出错。当然问题的根源还是域账号 被锁引起权限问题。

案例延伸

    今天还测试了一下,当域账号被锁的情况下,启动SQL Server服务时,你会发现SQL Server服务启动失败,但是错误日志不会记录任何日志信息,如果不知道原因,肯定会被这个给弄懵。因为服务启动失败,但是又没有写入任何错误信息。如 何你遇到这个情况,最好检查一下系统日志你应该会看到类似下面的错误信息。这样方便你发现蛛丝马迹!

clipboard

  

相关文章
|
5月前
|
Docker Windows 容器
Docker在win10上报错,error during connect: In the default daemon configuration on Windows
Docker在win10上报错,error during connect: In the default daemon configuration on Windows
|
6月前
|
C++
解决方案-CMake error: error in configuration process, project files may be invalid(Windows&VS可参考)
解决方案-CMake error: error in configuration process, project files may be invalid(Windows&VS可参考)
911 0
|
3月前
|
Linux Docker Windows
windows10&11 启动Docker Desktop报 “Docker Desktop - Unexpected WSL error”
windows10&11 启动Docker Desktop报 “Docker Desktop - Unexpected WSL error”
168 0
|
4月前
|
NoSQL MongoDB 数据库
MongoDB【部署 03】Windows系统安装mongodb并设置用户名密码(无需安装mongosh)及SpringBoot集成报错 Command failed with error 18
MongoDB【部署 03】Windows系统安装mongodb并设置用户名密码(无需安装mongosh)及SpringBoot集成报错 Command failed with error 18
135 0
|
6月前
|
API Windows
[笔记]Windows核心编程《番外篇》常用的NT API及使用示例
[笔记]Windows核心编程《番外篇》常用的NT API及使用示例
|
7月前
|
数据可视化 关系型数据库 数据库
Windows安装PostgreSQL失败:There has been an error
Windows安装PostgreSQL失败:There has been an error
402 0
|
9月前
|
Linux API 开发工具
Windows NT 驱动程序的编译、安装、调试
Windows 驱动分为两类,一类是从 Windows NT 遗留下来的驱动模型称为传统的 Windows NT 驱动程序模型,另一类是 Windows 添加了电源管理后的 KMDF (WDM)驱动程序。本文这里首先以最简单的 Windows NT 驱动模型为例介绍 Windows 驱动的简单编写、编译、安装及调试。
163 0
|
Windows
WINDOWS编译ffmpeg:LINK : fatal error LNK1104: 无法打开文件“LIBCMT.lib”
WINDOWS编译ffmpeg:LINK : fatal error LNK1104: 无法打开文件“LIBCMT.lib”
338 0
|
Windows
WINDOWS/cygwin编译lame出错:error: ‘_O_BINARY‘ undeclared
WINDOWS/cygwin编译lame出错:error: ‘_O_BINARY‘ undeclared
142 0
|
C++
编译JDK11:ERROR: Build failed for target ‘default (exploded-image)‘ in configuration ‘windows-x86_64
编译JDK11:ERROR: Build failed for target ‘default (exploded-image)‘ in configuration ‘windows-x86_64
205 0