Home  >  Article  >  Database  >  Hyper V虚拟机断电,IIS站点无法访问,SharePoint 配置数据库无

Hyper V虚拟机断电,IIS站点无法访问,SharePoint 配置数据库无

WBOY
WBOYOriginal
2016-06-07 15:48:211068browse

昨天Hyper V虚拟机断电了,重新启动之后,发现无法登陆SharePoint,检查IIS,发现所有的站点都打不开了,显示错误信息“applicationhost.config is not well-formed xml”,applicationhost.config文件是在的一个配置文件,断电造成了文件损坏,解决办法是到


        昨天Hyper V虚拟机断电了,重新启动之后,发现无法登陆SharePoint,检查IIS,发现所有的站点都打不开了,显示错误信息“applicationhost.config is not well-formed xml”,applicationhost.config文件是在的一个配置文件,断电造成了文件损坏,解决办法是到“C:\windows\system32\inetsvr\backup\”文件夹下恢复此文件(参见)。然后重新启动两个service:1 Windows Process Activation Service, 2 World Wide Web Publishing Service。

        解决了IIS的问题之后,还是无法登陆SharePoint,显示错误信息“Connot connect to the configuration database”。到数据库中查看,发现无法打开数据库“SharePoint_config”和“SharePoint_AdminContent”数据库,显示错误信息“The database is not accessible.” 。然后使用如下SQL查询检查数据库的状态:

select state_desc from sys.databases where name='SharePoint_Config'

发现数据库的状态是“Recovery_Pending”,解决办法是执行如下SQL(参见):

ALTER DATABASE [DB_Name] SET  SINGLE_USER WITH NO_WAIT
ALTER DATABASE [DB_Name] SET EMERGENCY;
DBCC checkdb ([DB_Name], REPAIR_ALLOW_DATA_LOSS  )
ALTER DATABASE [DB_Name] SET online;
ALTER DATABASE [DB_Name] SET  Multi_USER WITH NO_WAIT




Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:英语部分词汇技巧Next article:11Gr2 RAC 修改scan IP