Unable to open the physical file xxxx. Operating system error 2

在新UAT服务器上,需要将tempdb放置在SSD(固态硬盘)上。由于SSD(固态硬盘)特性,所以tempdb的文件只能放置在D盘下面,而不能是D盘下的某一个目录下面。

ALTER  DATABASE tempdb
MODIFY FILE(name='tempdev', filename='D:\tempdb.mdf') ;
 
GO
 
ALTER  DATABASE tempdb
MODIFY FILE(name='templog', filename='D:\templog.ldf') ;
GO

修改了tempdb的目录后,重启数据库服务,结果出现错误信
息:“FCB::Open failed: Could not open file D:\tempdb.mdf for file number
1.  OS error: 2(The system cannot find the file specified.)"
,具体错误信息如下所示:

2015-05-27 ;11:56:44.88 spid9s      The resource database build version is 12.00.2000. This is an informational message only. No user action is required.
2015-05-27 ;11:56:45.49 spid9s      Starting up database 'model'.
2015-05-27 ;11:56:45.67 Server      The SQL Server Network Interface library successfully registered the Service Principal Name (SPN) [ MSSQLSvc/GEK-MIS01UAT.gfg1.esquel.com ] for the SQL Server service.
2015-05-27 ;11:56:45.67 Server      The SQL Server Network Interface library successfully registered the Service Principal Name (SPN) [ MSSQLSvc/GEK-MIS01UAT.gfg1.esquel.com:1433 ] for the SQL Server service.
2015-05-27 ;11:56:45.83 spid9s      Clearing tempdb database.
2015-05-27 ;11:56:45.84 spid9s      Error: 5123, Severity: 16, State: 1.
2015-05-27 ;11:56:45.84 spid9s      CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'D:\tempdb.mdf'.
2015-05-27 ;11:56:45.94 spid9s      Error: 17204, Severity: 16, State: 1.
2015-05-27 ;11:56:45.94 spid9s      FCB::Open failed: Could not open file D:\tempdb.mdf for file number 1.  OS error: 2(The system cannot find the file specified.).
2015-05-27 ;11:56:45.94 spid9s      Error: 5120, Severity: 16, State: 101.
2015-05-27 ;11:56:45.94 spid9s      Unable to open the physical file "D:\tempdb.mdf". Operating system error 2: "2(The system cannot find the file specified.)".
2015-05-27 ;11:56:45.94 spid9s      Error: 1802, Severity: 16, State: 4.
2015-05-27 ;11:56:45.94 spid9s      CREATE DATABASE failed. Some file names listed could not be created. Check related errors.
2015-05-27 ;11:56:45.94 spid9s      Could not create tempdb. You may not have enough disk space available. Free additional disk space by deleting other files on the tempdb drive and then restart SQL Server. Check for additional errors in the event log that may indicate why the tempdb files could not be initialized.
2015-05-27 ;11:56:45.94 spid9s      SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
2015-05-27 ;11:56:46.20 spid16s     The SQL Server Network Interface library could not deregister the Service Principal Name (SPN) [ MSSQLSvc/xxxx.xxxx.xxxx.com ] for the SQL Server service. Error: 0x2af9, state: 61. Administrator should deregister this SPN manually to avoid client authentication errors.
2015-05-27 11:56:46.20 spid16s     The SQL Server Network Interface library could not deregister the Service Principal Name (SPN) [ MSSQLSvc/xxxx.xxx.xxxx.com:1433 ] for the SQL Server service. Error: 0x2af9, state: 61. Administrator should deregister this SPN manually to avoid client authentication errors.

 


猜测是系统权限问题导致,于是我右键单击D盘的属性选项,在”Security“里面找到Users(xxxx\Users),授予用户”Full
Control“权限,然后重启数据库实例,问题解决。我后面测试了一下,其实在Windows Server
2012下,将任何数据库文件放置在磁盘根目录下都有这个权限问题.

 

  

时间: 2024-12-30 14:09:46

Unable to open the physical file xxxx. Operating system error 2的相关文章

CREATE FILE encountered operating system error 5(Access is denied.)

 这篇博文主要演示"CREATE FILE encountered operating system error 5(Access is denied.)"错误如出现的原因(当然只是导致这个错误出现的一种场景而已)和如何解决这个问题以及一些不解的迷惑.   实验环境:         操作系统版本: Windows Server 2012 SP2         数据库的版本:Microsoft SQL Server 2014 - 12.0.2000.8 如下所示,SQL Server

DBCC CHECKDB 遭遇Operating system error 112(failed to retrieve text for this error. Reason: 15105) encountered

我们一个SQL Server服务器在执行YourSQLDBa的作业YourSQLDba_FullBackups_And_Maintenance时遇到了错误:   Exec YourSQLDba.Maint.ShowHistoryErrors @JobNo = 1227 <row> <ctx>yMaint.IntegrityTesting</ctx> <Sql>DBCC checkDb('xxxx') </Sql> <err>In ca

ORA-09925: Unable to create audit trail file汇总

今天一兄弟的库报ORA-09925: Unable to create audit trail file,当时查 df -h有可用空间,目录的权限也正确,未df -i查看Inodes使用情况,审计目录下有将近24W个文件,初步猜测是因为审计生成文件过多导致目录所在分区的Inodes用光了,当时删除部分审计 TRACE文件后正常未查看 Inodes使用情况. 汇总了下:ORA-09925的原因大致有以下三种:--其实可以根据报错判断是权限问题还是磁盘空间问题 原因一:目录权限问题--目录权限被改,

oracle ORA-09925错误:Unable to create audit trail file

今天一台数据库登录报ORA-09925错误 oracle@linux-37:~/oradata> sqlplus / as sysdba SQL*Plus: Release 11.1.0.6.0 - Production on Tue Nov 22 18:04:21 2011 Copyright (c) 1982, 2007, Oracle. All rights reserved. ERROR: ORA-09925: Unable to create audit trail file Linu

Unable to read the project file &amp;#39;client.csproj&amp;#39;. Could not load file or assembly &amp;#39;Microsoft.Build.En

错误详细信息: Unable to read the project file 'client.csproj'. Could not load file or assembly 'Microsoft.Build.Engine, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件. 今天打开之前一个vs2005的项目,报出上面的错误,这个啥

ffmpeg-Mac下编译Android FFmpeg2.2.2报错gcc is unable to create an executable file

问题描述 Mac下编译Android FFmpeg2.2.2报错gcc is unable to create an executable file 大家好.报错如题.查看config.log里面有错: EGIN /var/folders/ch/3lnns2f14bv398_ghdz1v9_h0000gn/T//ffconf.nj0OFFb3.c 1 #include 2 #if !(defined ARM_ARCH_4 || defined TARGET_ARCH_4) 3 #error "u

jboss-URL file:/XXXX.war/ deployment failed

问题描述 URL file:/XXXX.war/ deployment failed 项目在linux系统中部署在jboss的deploy下,报错竟然在tmp中,在网上查了下这个错,说是/etc/hosts 配置错误,和网上的比较了一下,也没有什么问题,而且这次部署了两个项目,另外一个项目可以,如果是配置出错,那另外一个也应该不能部署成功才对. 解决方案 JBoss 6 发布WAR工程错误 Trying to resolve systemId as a non-file URL: xxxx 解决

Master Note For Automatic Storage Management (ASM) For Operating System (OS) Administrators [ID 1345

In this Document  Purpose   Scope   Master Note For Automatic Storage Management (ASM) For Operating System (OS) Administrators      All Platforms      Linux x86-64      Solaris      HP-UX      IBM AIX      Microsoft Windows      IBM Linux on Z Appli

[分享]解决Access错误 Selected collating sequence not supported by the operating system

access|select|错误|解决 一直想把唐人街中文论坛搬到 1and1 服务器上来.今天总算有空将所有的文件上传来了,但试运行时却发现以下错误提示: Selected collating sequence not supported by the operating system. Google了一下,发现不止我一个人有这问题.主要原因是我现在用的这 web hosting 公司用的是英文操作系统英文版OS.论坛所用的 Access文件是动网所附的,言外之意是在中文操作系统下制作的.而根