升级服务数据库时出错

升级服务数据库时出错

本文介绍了升级服务数据库时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我最近运行了CU的负载(2017年7月),现在我的搜索爬网无法正常工作.

So, I have recently run a load of CU's (July 2017) and now my Search crawl isn't working.

正在查看错误日志,这似乎是因为我的数据库现在太晚了.检查数据库升级级别可以确认这一点:

Reviewing the error logs, it seems to be because my databases are now too far out lf date. Checking the database upgrade level confirms this:

SP-SQLAlias-Service  SP_PROD_Search  SearchAdminDatabase 数据库在兼容范围内,建议升级
SP-SQLAlias-Service  SP_PROD_Search_AnalyticsReportingStore  SearchAnalyticsReportingDatabase 数据库太旧,需要升级
SP-SQLAlias-Service  SP_PROD_Search_CrawlStore  SearchGathererDatabase 数据库太旧,需要升级
SP-SQLAlias-Service&SP_PROD_Search_LinksStore&SearchLinksDatabase 数据库在兼容范围内,建议升级

SP-SQLAlias-Service SP_PROD_Search SearchAdminDatabase Database is in compatibility range and upgrade is recommended
SP-SQLAlias-Service SP_PROD_Search_AnalyticsReportingStore SearchAnalyticsReportingDatabase Database is too old and upgrade is required
SP-SQLAlias-Service SP_PROD_Search_CrawlStore SearchGathererDatabase Database is too old and upgrade is required
SP-SQLAlias-Service SP_PROD_Search_LinksStore SearchLinksDatabase Database is in compatibility range and upgrade is recommended

我尝试对此进行升级:

$db = Get-SPDatabase | where {$_.Name -eq "SP_PROD_Search_CrawlStore"}$db.Upgrade()

...但是这将返回错误:

...but this returns an error:

Exception calling "Upgrade" with "0" argument(s): "The global session cannot be used to perform an upgrade operation."At line:1 char:1+ (Get-SPDatabase | ?{$_.Name -eq "SP_PROD_Search_CrawlStore"}).Upgrade()+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException    + FullyQualifiedErrorId : InvalidOperationException

我该怎么办才能解决问题?

What can I do to solve the problem?

(我真的很想避免重新创建搜索服务...!)

(I'd really like to avoid re-creating the Search Service...!)

谢谢.

推荐答案


这篇关于升级服务数据库时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 19:53