分享好友 最新动态首页 最新动态分类 切换频道
Upgrade content databases to SharePoint Server 2016
2024-12-25 16:13

When you upgrade from SharePoint Server 2013 with Service Pack 1 (SP1) to SharePoint Server 2016, you must use a database attach upgrade, which means that you upgrade only the content for your environment and not the configuration settings. After you have configured the SharePoint Server 2016 environment, copied the content and service application databases, and upgraded the service applications, you can attach and upgrade the content databases to SharePoint Server 2016. This article explains the steps you take to attach and upgrade the content databases to SharePoint Server 2016.

Phase 4 of the upgrade process: Upgrade content databases

  • Make sure that the account that you use to attach the databases is a member of the db_owner fixed database role for the content databases that you want to upgrade.

  • Make sure that the account that you use to create web applications is a member of the Farm administrators group in Central Administration.

Create a web application for each web application that existed in the SharePoint Server 2013 with Service Pack 1 (SP1) environment. For each web application, do the following:

  • Use the same URL (including name, port, and host header) and configure alternate-access mapping settings.

    If you use a different URL, Office applications might not be redirected correctly to the new URLs and all bookmarks to the old URLs will not work.

  • Use the same authentication method.

    For example, if you use Windows Classic authentication in your old environment, and you want to continue to use it, then you must create a web application that uses Windows Classic authentication. Because claims-based authentication is now the default option for SharePoint Server 2016, you must use PowerShell to create a web application that uses Windows Classic authentication. .

  • Recreate managed paths.

  • Recreate quota templates.

  • Configure email settings for the web application.

  • Enable self-service site creation for any web application that used it in the previous environment. Recreate any self-service site creation settings.

  • Create the managed path for the My Sites (/personal) on the web application that hosts My Sites. My Sites are available in SharePoint Server only.

  • Recreate any web application policies or other web application settings that you had configured in the previous environment.

One frequent cause of failures during upgrade is that the new environment does not have customized features, solutions, or other elements. Make sure that all custom elements from the SharePoint Server 2013 with Service Pack 1 (SP1) environment are installed on your front-end web servers before you upgrade any content databases.

In this step, you manually transfer all customizations to your new farm. Make sure to install any components that your sites depend on to work correctly, such as the following:

  • Custom site definitions

  • Custom style sheets, such as cascading style sheets, and images

  • Custom Web Parts

  • Custom Web services

  • Custom features and solutions

  • Custom assemblies

  • Web.config changes (such as security)

    Ensure that you transfer all unique settings from the Web.config files for each web application to the new servers.

  • Administrator-approved form templates (.xsn files) and data connection files (.udcx files) for InfoPath. InfoPath is available in SharePoint Server 2010 only.

  • Any other components or files on which your sites depend.

The installation for SharePoint Server 2016 contains both SharePoint Server 2013 with Service Pack 1 (SP1) and SharePoint Server 2016 versions of many elements. The directories on the file system are duplicated in both the 15 and 16 paths, for example:

  • Web Server Extensions/15/TEMPLATE/Features

  • Web Server Extensions/16/TEMPLATE/Features

There are also two versions of the IIS support directories: _Layouts, _Layouts/16 and _ControlTemplates, _ControlTemplates/16.

Be sure to install customizations to the correct location in your new farm. For example, additional style sheets for SharePoint Server 2013 with Service Pack 1 (SP1) should be installed in the /15 path, not the new /16 path so that site collections that you haven't upgraded can use them. If you want a solution to be available to both paths, install it two times, and the second time use the CompatibilityLevel parameter when you install it, and it will be installed to the /16 path. For more information, see Install-SPSolution.

To make sure that you have identified all custom components for your environment, use the Stsadm -o enumallwebs operation in the SharePoint Server 2013 with Service Pack 1 (SP1) environment and use the includefeatures and includewebparts parameters. This operation can report the templates, features, Web Parts, and other custom elements that are used for each site. For more information about how to use the enumallwebs operation, see Enumallwebs: Stsadm operation (Office SharePoint Server) and Clean up an environment before an upgrade to SharePoint 2013.

You can also use the Get-SPWeb cmdlet in your SharePoint Server 2013 with Service Pack 1 (SP1) environment to see template that are associated with each site and then verify that the template is installed in your SharePoint Server 2016 environment. For more information about this operation, see Get-SPWeb.

Before you attach the content databases to the web applications, use the Test-SPContentDatabase cmdlet to verify that you have all the custom components that you must have for that database.

To verify custom components are available by using PowerShell

  1. Verify that you have the following memberships:
  • securityadmin fixed server role on the SQL Server instance.

  • db_owner fixed database role on all databases that are to be updated.

  • Administrators group on the server on which you are running the PowerShell cmdlets.

    An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server 2016 cmdlets.

  1. Start the SharePoint 2016 Management Shell.
  • For Windows Server 2012 R2:

  • On the Start screen, select SharePoint 2016 Management Shell.

    If SharePoint 2016 Management Shell is not on the Start screen:

  • Right-click Computer, select All apps, and then select SharePoint 2016 Management Shell.

    For more info about how to interact with Windows Server 2012 R2, see Common Management Tasks and Navigation in Windows Server 2012.

  1. At the PowerShell command prompt, type the following command:


  • DatabaseName is the name of the database that you want to test.

  • URL is the URL for the web application that will host the sites.

For more information, see Test-SPContentDatabase.

When you attach a content database, you upgrade the database and add the site collections in that database to the web application that you specify. After the databases are upgraded, the site collection upgrade process is automatically started by default.

When you attach a content database, for a web application that spans multiple content databases, make sure that you attach the content database that contains the root site collection first. In other words, before you continue, examine the root of the web application in the SharePoint Server 2013 with Service Pack 1 (SP1) server farm to determine the first site collection. After you attach the database that contains the root site, attach the other content databases for the web application in any order. You do not have to create any site collections to store the content before you attach the database. This process attaches the content databases and the site collections inside that database. Make sure that you do not add new site collections until you have restored all the content databases.

For My Sites, attach the content database that contains the My Site host before attaching databases that contain the My Sites.

By default, when you created the web applications in the new SharePoint Server 2016 environment, a content database was created for each web application. You can ignore these default databases until after you have attached your SharePoint Server 2013 with Service Pack 1 (SP1) databases, and then you can delete the default databases.

To attach a content database to a web application by using PowerShell

  1. You must use the Mount-SPContentDatabase cmdlet to attach a content database to a web application. Using the SharePoint Central Administration pages to attach a content database is not supported for upgrading.

    If you want to delay the sites upgrade, you can use the SkipSiteUpgrade parameter of the Mount-SPContentDatabase cmdlet.

    Ensure that the account that you use to attach the databases is a member of the db_owner fixed database role for the content databases that you want to upgrade.

    Verify that you have the following memberships:

  • securityadmin fixed server role on the SQL Server instance.

  • db_owner fixed database role on all databases that are to be updated.

  • Administrators group on the server on which you are running the PowerShell cmdlets.

    An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server 2016 cmdlets.

  1. Start the SharePoint 2016 Management Shell.
  • For Windows Server 2012 R2:

  • On the Start screen, select SharePoint 2016 Management Shell.

    If SharePoint 2016 Management Shell is not on the Start screen:

  • Right-click Computer, select All apps, and then select SharePoint 2016 Management Shell.

    For more info about how to interact with Windows Server 2012 R2, see Common Management Tasks and Navigation in Windows Server 2012.

  1. At the PowerShell command prompt, type the following command and then press ENTER:


  • DatabaseName is the name of the database that you want to upgrade.

  • ServerName is server on which the database is stored.

  • URL is the URL for the web application that will host the sites.

For more information, see Mount-SPContentDatabase.After the databases are upgraded, the site collections are automatically upgraded. For additional information on how to upgrade a site collection, see Upgrade site collections to SharePoint Server 2016.

After you attach a database, you can use the Upgrade Status page in Central Administration to check the status of upgrade on your databases. After the upgrade process is complete, you can review the upgrade log file to see whether upgrade produced issues. You can use a PowerShell cmdlet to check the upgrade status for all the content databases. For more information about verifying and troubleshooting upgrade, see Verify database upgrades in SharePoint Server 2016.

To view the Upgrade Status page

  • Verify that the user account that is performing this procedure is a member of the db_owner fixed database role for the databases.

  • In Central Administration, select Upgrade and Migration, and then select Check upgrade status.

To view the upgrade log file

  • The upgrade error log file and the upgrade log file are located at %COMMONPROGRAMFILES%Microsoft Sharedweb server extensions16LOGS. The upgrade log file contains more detailed information than the upgrade error log. Be sure to check the summary at the bottom of the log files for information about the overall status and a count of the warnings and errors in the file.

    The logs are text files named in the following format:

    • Upgrade-YYYYMMDD-HHMMSS-SSS-error.log

    • Upgrade-YYYYMMDD-HHMMSS-SSS.log

    Where

    • YYYYMMDD is the date

    • HHMMSS-SSS is the time (hours in 24-hour clock format, minutes, seconds, and milliseconds)

    An example for an upgrade error log is Upgrade-20120105-132126-374-error.log, and an example for an upgrade log is Upgrade-20120105-132126-374.log.

To view upgrade status for all databases by using PowerShell

  1. Verify that you have the following memberships:
  • securityadmin fixed server role on the SQL Server instance.

  • db_owner fixed database role on all databases that are to be updated.

  • Administrators group on the server on which you are running the PowerShell cmdlets.

    An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server 2016 cmdlets.

  1. Start the SharePoint 2016 Management Shell.
  • For Windows Server 2012 R2:

  • On the Start screen, select SharePoint 2016 Management Shell.

    If SharePoint 2016 Management Shell is not on the Start screen:

  • Right-click Computer, select All apps, and then select SharePoint 2016 Management Shell.

    For more info about how to interact with Windows Server 2012 R2, see Common Management Tasks and Navigation in Windows Server 2012.

  1. At the PowerShell command prompt, type the following command:

This cmdlet returns a table-style list of databases in your farm and indicates whether the database needs an upgrade to SharePointAll_2nd_CurrentVer.

After you restore the first content database and verify success, you can continue to restore and upgrade other databases. You can perform parallel database attach upgrades to upgrade more than one database at a time. Use separate Microsoft PowerShell command prompt to run multiple upgrades. It is recommended that you separate the start time for each new database upgrade session by several minutes to prevent issues with temporary locks set for the web application during attachment. Otherwise you might receive an error on the upgrade session. The wait time to clear temporary locks varies depending on the number of site collections, or the speed of the database server hardware.

After you upgrade all additional databases, view the Upgrade Status page to monitor progress and verify that the upgrade process is complete. Review the log file to identify any other issues.

After you upgrade the databases, you might want to perform additional steps to make sure that your farm is ready for use. For example:

  • Migrate user accounts to claims authentication, if it is necessary.

    By default, new web applications in SharePoint Server 2016 use claims authentication. If you were using classic authentication in the previous environment, you must migrate the users to claims authentication.

  • Update links that are used in any upgraded InfoPath form templates.

    For a database-attach upgrade, you exported and imported all InfoPath form templates in your environment when you created the new environment. After upgrade, you can now update the links that are used in those upgraded form templates to point to the correct URLs by using a Microsoft PowerShell cmdlet.

    InfoPath is available in SharePoint Server only.

  • Perform a full crawl

    For more information, see Start, pause, resume, or stop a crawl in SharePoint Server.

  • Back up your farm

    For more information, see Back up farms in SharePoint Server.

Phase Description This is the fourth phase in the process to upgrade SharePoint 2010 Products data and sites to SharePoint Server 2016.
For an overview of the whole process, see Overview of the upgrade process to SharePoint Server 2016.
最新文章
提升网站在搜索引擎优化排名的几个方法
为了让自己的网站排名更靠前,现在很多企业网站都在做SEO优化,对于很多网站来说,都想通过搜索引擎来让自己的网站,让更多的用户访问自己的网站,那么怎么样能够快速提高网站的SEO排名呢?这是很多站长都关心的问题,下面我们一起来详细了
目前最好的手机处理器
现在最好的手机处理器是什么 01高通骁龙86550%结果提及高通骁龙865是目前评价较好的手机处理器之一。它的性能已经可以与苹果A13相媲美,并且在安卓系统中表现优秀。高通骁龙865采用台积电7nm+制程,Kryo585CPU+Adreno650GPU的设计,支持LP
照片优化大师FotoOpt电脑版
照片优化大师FotoOpt电脑版是一款功能丰富使用简便的图像处理软件。对于图片处理我相信大家应该一点都不陌生,随着我们现在对图片的要求越来越多,怎么样才能对图片更好的处理。首先大家应该会选ps,但是ps操作有点难,尤其是对电脑小白来讲
SEO优化如何快速推广,有哪些有效方法?
在这个信息爆炸的时代,网站如何在茫茫网海中脱颖而出,成为众多网民的首选,是每一个网站运营者必须面对的问题。作为一名在SEO领域摸爬滚打多年的实践者,我深知SEO优化对于网站推广的重要性。它不仅是提升网站排名的关键,更是吸引流量、
wordpress外贸建站教程详解
WordPress外贸建站教程详解:从零开始打造专业外贸网站一、前言随着互联网的普及,越来越多的外贸企业开始重视网络营销,而拥有一个专业的外贸网站成为了企业的必备。WordPress作为全球最受欢迎的开源内容管理系统(CMS),以其强大的功能
腾讯地图 10.10.5
uses-permission:'android.permission.REORDER_TASKS',允许程序重新排序系统Z轴运行中的任务uses-permission:'com.huawei.permission.HICAR_FWK_APP'uses-permission:'android.permission.ACCESS_FINE_LOCATION',允许程序通过GPS芯片接收卫
战神z6怎么进bios
进入BIOS是一项非常重要的技能,特别是在需要调整电脑硬件设置、优化系统性能或是进行故障排查时。在这篇文章中,我们将重点介绍如何在战神Z6笔记本电脑上进入BIOS。我们会详细分步骤进行说明,并提供代码示例,确保逻辑清晰易懂。此外,我
浅析各类宝宝适合哪种新特殊技能
  在《梦幻西游》电脑版2019年全新资料片“名扬三界”中,新出了两只召唤兽“妙华天女”和“广目巡守”,这两只宝宝都有一个新增的特殊技能,分别是“凝光炼彩”和“净台妙谛”。  凝光炼彩:受伤时有25%的概率获得护盾,护盾值为所受
视频号直播带货如何添加商品:实用教程与技巧
随着互联网技术的迅猛发展,直播带货已成为电商领域的一大热门趋势。特别是在微信视频号平台上,直播带货以其独特的互动性和真实性,吸引了无数商家和消费者的关注。本文将详细介绍如何在视频号直播带货中添加商品,以及实用的教程与技巧,
美漫救世主?我是亚空间邪神!
穿越漫威,卡尔成了九头蛇死亡实验的耗材,还好系统及时激活,并送给他一个初始化的维度空间。等一下,这个篮球大小的【亚空间】是什么鬼?面对地狱开局,以及不靠谱的系统,卡尔脑洞大开,利用【亚空间】与【无限宝石】玩起了卡Bug…什么
相关文章
推荐文章
发表评论
0评