Home > Database > Mysql Tutorial > body text

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

WBOY
Release: 2016-06-07 15:48:21
Original
1064 people have browsed it

昨天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'
Copy after login

发现数据库的状态是“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
Copy after login




Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!