IT tutorials
 
Technology
 

Sharepoint 2013 : Upgrading from SharePoint 2010 - Upgrade (part 3) - Attach Content Databases

10/1/2013 9:37:46 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

3. Attach Content Databases

If you have followed the previous section about attaching service application databases, then the process for attaching content databases should not phase you. The process to attach content databases to the SharePoint 2013 SQL Server instance is identical to that of the service applications, as follows:

  1. Open SQL Management Studio.
  2. Right-click the Databases node in the Object Explorer.
  3. Click the Restore Database menu item.
  4. Change the source location as From device.
  5. Click the ellipses, then the Add button on the next dialog.
  6. Browse for the database backup file.
  7. Click the OK button.
  8. Check the check box to restore the selected database.
  9. Click the drop-down for the destination database.
  10. Select the database to restore.

Once you have attached the content databases, you will notice that the databases are read-only (if you followed the earlier detachment process). The following steps demonstrate setting the content databases as writable, which SharePoint 2013 requires to perform an upgrade:

  1. Right-click the database in SQL Management Studio.
  2. Select the Properties menu item.
  3. Choose the Options category on the right of the dialog.
  4. Scroll down to the option for Database Read-Only.
  5. Set the option to False and then click the OK button.

With the content databases attached to SQL Server and set as writable, you are now ready to begin the upgrade process. Each web application hosts a single content database, so you must create your web applications first, before attaching the content databases for upgrade.

Before creating your web applications, consider the following points, which will make the process of upgrading to SharePoint 2013 smoother:

  • Create your web applications on the same URLs and ports, to keep compatibility with bookmarks and Office applications
  • Configure alternate access mappings and managed paths so site collections upgrade correctly
  • Use the same authentication configuration—if you wish to upgrade from Classic to Claims-Based-Authentication, upgrade the web application post database upgrade
  • Configure e-mail settings for the application
  • Configure self-service settings for the application
  • Re-create any web application security policies

You can create new web applications within Central Administration. However, CA will create a default content database, and CA will not allow you to create Classic Authentication Mode applications. As is often the case, PowerShell provides granular control and is what I shall use in my demonstration.

I shall re-create both these applications in my new SharePoint 2013 farm. I adopted best practice and used Claims-Based-Authentication prior and so provision the new web applications the same. The following Cmdlet creates a new web application for my Intranet:

New-SPWebApplication -Name 'Intranet' -ApplicationPool 'Intranet App Pool' -ApplicationPoolAccount 'ROBDEMO\sp_app_pool' -URL ' http://robdemo-sp/ ' -Port 80 -AuthenticationProvider (New-SPAuthenticationProvider)

The following Cmdlet creates a similar web application for my public facing Web Site:

New-SPWebApplication-Name 'Public Web Site' -ApplicationPool 'Public Site App Pool' -ApplicationPoolAccount 'ROBDEMO\sp_app_pool' -URL ' http://robdemo-sp/ ' -Port 5000 -AuthenticationProvider (New-SPAuthenticationProvider) –AllowAnonymousAccess

Notice that in the previous Cmdlet I specified a different port allow anonymous access, because my public site does not require authentication for most users.

INSTALL CUSTOMIZATIONS

Now that you have your web applications created, it is a good time to install any customizations that apply to the applications. You can ignore any visual customizations and metadata customizations that reside in the database because the database attach upgrade will take care of these. However, you must install any Global Assembly assemblies, assemblies installed in the web application BIN, and files deployed to the hive.

If you have any “globally deployed” solution packages, you can deploy them to the farm and activate any web application scoped features. Make sure you also deploy any site collection and site scoped features; even though the site collection or sites in the database reference the feature, you still need to ensure that you deploy any dependencies (such as hive files).

If you have made manual configuration changes to your configuration files in the legacy farm, and not packaged these as solution packages (tsk, tsk), now is also the time to apply these changes to the newly created web applications.

My demonstration sites do not depend on any visual files in the hive (they live in the Style Gallery and Master Page Gallery), so I have no need to perform any additional customizations to my SharePoint 2013 farm.

Note  SharePoint 2013 supports legacy hive customizations. Deploy any legacy customizations to the Web Server Extensions\14 directory if you plan to operate sites in SharePoint 2010 legacy mode. New customizations deploy to the Web Server Extensions\15 directory.

Before you upgrade your content databases and attach them to your web applications, you should test them first. Content databases can reach large sizes, and the last thing you want is to wait hours for an upgrade only to have it fail part way. The following PowerShell Cmdlet allows users to test a content database. If you have multiple content databases for a web application, test them all:

Test-SPContentDatabase -Name DatabaseName -WebApplication URL

Now, finally, the moment you have been waiting for—it is time to mount your legacy content databases and let SharePoint 2013 upgrade them. Issue the following PowerShell Cmdlet for each of your content databases:

Mount-SPContentDatabase -Name DatabaseName -DatabaseServer ServerName -WebApplication URL

Note  Use separate PowerShell windows to upgrade multiple content databases in parallel.

I executed the following PowerShell Cmdlets in my environment to upgrade my two web application content databases:

Mount-SPContentDatabase -Name 'WSS_Content_Pub' -DatabaseServer ROBDEMO-SP -WebApplication http://robdemo-sp:5000

Mount-SPContentDatabase -Name 'ROBDEMO_PortalContent' -DatabaseServer ROBDEMO-SP -WebApplication http://robdemo-sp

Similar to upgrading the service application database, you can check on the status of your content database upgrades from Central Administration, under the Upgrade and Migration heading (Figure 8).

9781430249412_Fig04-08.jpg

Figure 8. Upgrade Status of content databases

Note  Upgrading the My Sites database is a similar process to upgrading content databases. However, make sure that you have a working My Site Host web application and that you upgrade the database containing the My Site Host root site collection first.

 
Others
 
- Sharepoint 2013 : Upgrading from SharePoint 2010 - Upgrade (part 2) - Attach Service Applications
- Sharepoint 2013 : Upgrading from SharePoint 2010 - Upgrade (part 1) - Copying Legacy Databases
- Sharepoint 2013 : Upgrading from SharePoint 2010 - Planning (part 2) - Pre-Upgrade Maintenance, Managing Customizations
- Sharepoint 2013 : Upgrading from SharePoint 2010 - Planning (part 1) - Database Attach Process, Minimizing Downtime
- SQL Server 2008 : Data management - Filegroups - Backup and restore flexibility
- SQL Server 2008 : Database file configuration (part 2) - Multiple data files, Sizing database files
- SQL Server 2008 : Database file configuration (part 1) - Volume separation
- Active Directory 2008 : Installing and Managing Trees and Forests - Creating Domain Trees and Forests (part 3) - Joining a New Domain Tree to a Forest
- Active Directory 2008 : Installing and Managing Trees and Forests - Creating Domain Trees and Forests (part 2) - Creating a Domain Tree
- Active Directory 2008 : Installing and Managing Trees and Forests - Creating Domain Trees and Forests (part 1) - Planning Trees and Forests
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us