programming4us
 
Applications Server
 

Upgrading to Sharepoint 2013 : Upgrading Content (part 4) - Attaching the Content Database

10/12/2014 9:10:36 PM

Attaching the Content Database

After you have tested your content databases and fixed as many issues as you can, it’s time to attach the database. Use the PowerShell cmdlet Mount-SPContentDatabase to mount the content database to the web application that will serve its content. The syntax for Mount-SPContentDatabase is similar to Test-SPContentDatabase, and if you aren’t using any of the optional parameters when testing your database, you can usually just press the up arrow in PowerShell, replace “test” with “mount” and press Enter. Here is the command used to mount the database that you tested earlier against your upgrade web application:

Mount-SPContentDatabase -Name wss_content_tk_com -WebApplication 
http://upgrade.contoso.com

Figure 5 shows the output returned from running that command. While it might be tempting to run screaming out of the room when you see all that red error text, it’s not so bad. You know from running Test-SPContentDatabase that there will be some issues.

FIGURE 5

image

To satisfy your curiosity about what happened during the upgrade, SharePoint 2013 does a thorough job documenting the process. Each time a database is upgraded it creates two log files. One contains all the events associated with the upgrade, good and bad. The other is a subset of the first, containing only error information. If you just want to see what went wrong, skipping all the back-patting for what went well, go right to the error log. Both logs are in the 15 Hive (c:\program files\common files\microsoft shared\web server extensions\15) in the Logs directory. The full log will have a name like Upgrade-YYYYMMDD-HHMMSS-MMM.log, where YYYY is the four-digit year, MM is the month, DD is the day, HH is the hour in 24-hour format, MM is the minutes, SS is the seconds, and MMM is the milliseconds when the upgrade was started. The errors-only log has the same name with “-error” at the end. They’re both text files, so they can be read with any text editor. They also have the same schema as the ULS logs, so you can use the MSDN ULS Viewer to view them as well.

The Upgrade log contains a tremendous amount of information, so if problems are reported during the upgrade it’s more efficient to start your troubleshooting in the error log, then work back into the full log if you need more information. The full Upgrade log is a good way to determine how long it took to complete a particular mount. All the lines are time stamped, or if you’re bad at math you can search for “Elapsed time” at the end of the log to see how long it took. Keeping track of these times in your test environments will help you plan your production upgrades.

If you prefer to consume your error logs in a civilized manner, you can also view them in Central Admin. On the Upgrade and Migration page there is a link to “Check upgrade status.” Clicking that will take you to the /_admin/UpgradeStatus.aspx page where you will find all the tales of previous upgrades. Some upgrade stories have happy endings, some don’t; they’re all available on this page, shown in Figure 6. You can click each upgrade’s status to load its details on the bottom. If you want to read the full log, its location is listed as “Log File” at the bottom.

FIGURE 6

image

After the database is attached you should verify how things look. The following PowerShell cmdlet returns the site collections in that database, so you know where to start looking:

(Get-SPContentDatabase wss_content_tk_com).sites

Figure 7 shows the command’s output, which contains a couple of notable things. First, notice there’s an Office Viewing Cache site collection in there.Because of this, the Office Viewing Cache site collection has no SharePoint 2013 equivalent and cannot be upgraded. You can either delete them in SharePoint 2010 before you upgrade, or in SharePoint 2013 afterward.

FIGURE 7

image

All the site collections in this content database have the CombatibilityLevel 14, which is SharePoint 2010. By design, it is not possible to have the site collections upgraded to the SharePoint 2013 compatibility level when a SharePoint 2010 database is attached. The team that owns the upgrade process planned the upgrade around one guiding principle, “Do no harm.” Because some site collections might not render after being upgraded, they decided that none of the site collections can be upgraded without a deliberate action on someone’s part. Because this database is attached but none of the site collections have been upgraded, the following section walks through upgrading the site collections.

 
Others
 
- Upgrading to Sharepoint 2013 : Upgrading Content (part 3) - Fixing the Issues, Additional Parameters
- Upgrading to Sharepoint 2013 : Upgrading Content (part 2) - Running Test-SPContentDatabase
- Upgrading to Sharepoint 2013 : Upgrading Content - Creating the Web Application, Testing the Content Database
- Sharepoint 2013 : Developing Integrated Apps for Office and Sharepoint Solutions - The New App Model for Office
- Overview of Oauth in Sharepoint 2013 : Application Authorization - On-Premises App Authentication with S2S
- Overview of Oauth in Sharepoint 2013 : Application Authorization - Requesting Permissions Dynamically
- Overview of Oauth in Sharepoint 2013 : Application Authentication (part 2) - Managing Tokens in Your Application
- Overview of Oauth in Sharepoint 2013 : Application Authentication (part 1) - Using TokenHelper
- Overview of Oauth in Sharepoint 2013 : Creating and Managing Application Identities
- Overview of Oauth in Sharepoint 2013 : Introduction to OAuth
 
 
REVIEW
 
- First look: Apple Watch

- 10 Amazing Tools You Should Be Using with Dropbox

- Sigma 24mm f/1.4 DG HSM Art

- Canon EF11-24mm f/4L USM

- Creative Sound Blaster Roar 2

- Alienware 17 - Dell's Alienware laptops

- Smartwatch : Wellograph

- Xiaomi Redmi 2
 
VIDEO TUTORIAL
 
- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
 
Popular tags
 
Video Tutorail Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
 
Top 10
 
- How To Install Android Market & Google Apps On Kindle Fire
- How To Make Ubuntu Look Like Windows 7
- How To Add A New Account in MS Outlook 2013
- Get Android & Mac OS X Style Gadgets For Windows 7 & Windows 8 With XWidget
- How To Activate Microsoft Office 2013
- How To Install Actual Facebook App On Kindle Fire
- How To Create, View And Edit Microsoft Office Files On Kindle Fire
- Download Attractive Business PowerPoint Templates For Free At SlideHunter
- How To Use And Enable Hibernate & Sleep Mode In Windows 8
- How To Get Microsoft Office 2013 Trial Product Key From Microsoft