Deploy by using DBA-created databases (SharePoint Foundation 2010)
Applies to: SharePoint Foundation 2010
This article describes how to deploy Microsoft SharePoint Foundation 2010 in a farm environment that uses DBA-created databases. In organizations where database administrators (DBAs) operate independently from SharePoint administrators, the DBAs create and manage all the databases. This is typical in IT environments where security requirements and company policies require a separation of administrator roles. The farm administrator provides Microsoft SharePoint Foundation 2010 database requirements to the database administrator, who in turn, creates the necessary Microsoft SharePoint Foundation databases and sets up the logins that are required for the farm.
In this article:
Before you begin
Before you begin
Before you start this deployment, ensure that you have all the information that you require in order to successfully deploy and configure SharePoint Foundation on all of the farm servers. The following sections provide the information that you will need to ensure a successful SharePoint Foundation deployment.
Farm server requirements
Ensure that all the farm servers and the database server meet the requirements that are documented in the following articles.
Hardware and software requirements: Hardware and software requirements (SharePoint Foundation 2010)
Administrative and service accounts: Initial deployment administrative and service accounts (SharePoint Foundation 2010)
Database requirements
Deploying SharePoint Foundation 2010 on DBA-created databases involves working with the DBA to ensure that all the SharePoint Foundation databases that you need are created and correctly configured before you create and configure the farm.
The following list shows some, but not necessarily all, of the information that a DBA needs in order to create databases for the farm. Additional information may be required by the DBA in your organization:
SQL Server version information as well as service pack and cumulative update level. For more information, see Hardware and software requirements (SharePoint Foundation 2010).
The required login accounts with associated roles and permissions. For more information, see Initial deployment administrative and service accounts (SharePoint Foundation 2010).
The number of databases that are required as well as SharePoint configuration specifics. This information can be obtained by deploying SharePoint Foundation.
SharePoint data storage requirements, such as data type, data volume, type of database activity (read or write) and Input/Output operations per second (IOPS).
The DBA must configure surface area settings so that local and remote connections use TCP/IP or named pipes.
All of the databases required by SharePoint Foundation use the Latin1_General_CI_AS_KS_WS collation.
All of the SharePoint Foundation databases require that the farm Setup user account is assigned to them as the database owner (dbo).
SharePoint user Service Level Agreement considerations.
About configuring DBA-created databases
Use the procedures in this article as a guide for deploying a farm that uses DBA-created databases. This deployment includes all the databases that are required for the farm.
Note
This article only applies to the SQL Server database versions supported by SharePoint Foundation 2010.
For each procedure you must use Windows PowerShell 2.0 or SharePoint Foundation command-line tools to configure the farm.
We recommend that you use Windows PowerShell when performing command-line administrative tasks. The Stsadm command-line tool has been deprecated, but is included to support compatibility with previous product versions.
Note
Psconfig is located in the following folder: Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN.
In order to use Windows PowerShell to configure the farm:
Verify that the user account has access to one of the servers on which Windows PowerShell 2.0 is running, and that the user account is a Farm Administrator and is a member of the SharePoint_Shell_Access role for the SQL Server-based source content database, the administration content database, the destination content database, and the configuration database.
On the Start menu, click All Programs.
Click Microsoft SharePoint 2010 Products.
Click SharePoint 2010 Management Shell.
At the Windows PowerShell prompt, type the appropriate command, and then press ENTER.
For the purpose of illustrating the required procedures, the basic farm that needs to be configured consists of:
Central Administration
A Web portal
Diagnostic logging and usage and health data collection
Search
The following databases are required and are typically used by the farm administrator in the following sequence as the farm is created. The databases in the following list use the default names that are provided when you use the SharePoint Products Configuration Wizard to set up a farm. You can, of course, use database names that you choose.
The configuration database (SharePoint_Config)
The Central Administration content database (SharePoint_AdminContent_GUID)
The Web site content database, which is created automatically by the SharePoint Foundation Setup program (WSS_Content_GUID)
The diagnostic logging database (WSS_Logging_GUID)
The search database (WSS_SEARCH_localhost machine name)
Create and configure databases for Central Administration
Use the procedures in this section to create the required databases and give the accounts membership in the database Users security group and database roles.
The procedures require action by the DBA and the Setup user account. The labels [DBA] or [Setup] respectively are used for each step to indicate which role performs the action.
The following procedure only has to be performed once for the farm, on the server that you want to run the Central Administration Web site. The farm has one configuration database and one content database for Central Administration.
To create and configure the configuration database, the Central Administration content database, and the Central Administration Web application
[DBA] Create the configuration database and the Central Administration content database using the LATIN1_General_CI_AS_KS_WS collation sequence and set the database owner (dbo) to be the Setup user account.
[Setup] Run Setup on each server computer in the farm. You must run Setup on at least one of these computers by using the Complete installation option. The steps for this option are described in Deploy a single server with SQL Server (SharePoint Foundation 2010).
[Setup] Do not run the SharePoint Products Configuration Wizard after Setup finishes.
From the SharePoint 2010 Management Shell, use the New-SPConfigurationDatabase command to create a new configuration database, for example:
New-SPConfigurationDatabase -DatabaseName "SharePointConfigDB1" -DatabaseServer "SQL-01" -Passphrase (ConvertTo-SecureString "MyPassword" -AsPlainText -force) -FarmCredentials (Get-Credential)
For more information, see New-SPConfigurationDatabase.
[Setup] After the command has finished, run the SharePoint Products Configuration Wizard and complete the rest of the configuration for the server. This creates the Central Administration Web application and performs other setup and configuration tasks.
[DBA] After the SharePoint Products Configuration Wizard has finished, perform the following actions for both the configuration database and the Central Administration content database:
Add the SharePoint Foundation search account, default content access account, and the services account to the Users group.
Add the SharePoint Foundation search service account, default content access account, and the services account to the WSS_Content_Application_Pools role.
[Setup] To confirm that the databases were created and configured correctly, verify that the home page of the Central Administration Web site can be accessed. However, do not configure anything by using Central Administration at this point. If the Central Administration page does not render, verify the accounts that are used in this procedure and ensure that they are properly assigned.
The rest of the farm servers will be configured after the procedures in the article are finished and the farm is established. You will run the SharePoint Products Configuration Wizard on these servers by selecting the Yes, I want to connect to an existing server farm option, instead of by using the commands that are used in this procedure.
The following procedure will only have to be performed once for the farm. The farm has only one SharePoint Foundation search database.
Create and configure the SharePoint Foundation search database and start the search service
[DBA] Create the SharePoint Foundation search database using the LATIN1_General_CI_AS_KS_WS collation sequence and set the database owner (dbo) to be the Setup user account.
[Setup] Open the command line, and then use the Get-SPSearchService, Set-SPSearchService, Get-SPSearchServiceInstance, and Set-SPSearchServiceInstance cmdlets to configure the database and start the search service. Use the following example as a guide.
$searchService = Get-SPSearchService Set-SPSearchService -MaxBackupDuration 120 Get-SPSearchServiceInstance -Local Get-SPSearchServiceInstance -Local | Set-SPSearchServiceInstance -ProxyType proxy
For more information, see the following topics:
Create and configure additional databases
After you finish configuring the databases required for Central administration, complete your farm deployment by creating and configuring the databases that are required for Web content and any service applications that you want to use.
The following procedure will have to be performed once for each portal site in the farm.
Create and configure the portal site Web application and content database
[DBA] Create the portal site Web application content database using the LATIN1_General_CI_AS_KS_WS collation sequence and set the database owner (dbo) to be the Setup user account.
[DBA] Using Microsoft SQL Server Management Studio, add the application pool process account to the Users group and the db_owner role for the Web application content database.
[Setup] Open the command line, and then run the New-SPWebApplication and Get-SPWebApplication cmdlets to configure the portal site Web application content database. Use the following example as a guide.
New-SPWebApplication -Name "Contoso Internet Site" -Port 80 -URL "https://www.contoso.com" -ApplicationPool "ContosoAppPool" -ApplicationPoolAccount (Get-SPManagedAccount "DOMAIN\jdoe") Get-SPWebApplication http://sitename | New-SPWebApplicationExtension -Name "ExtranetSite" -SecureSocketsLayer -Zone "Extranet"
For more information, see New-SPWebApplication and Get-SPWebApplication.
Important
The Get-SPWebApplication cmdlet must be run on the computer that is running the Web application. The host name and port combination must not describe a Web application that already exists or an error results and the Web application is not created.
Use the following procedure to create and configure the portal site Web application and its content database.
To create and configure the portal site Web application
[DBA] Create the portal site Web application content database using the LATIN1_General_CI_AS_KS_WS collation sequence and set the database owner (dbo) to be the Setup user account.
[DBA] Using SQL Server Management Studio, add the service application service account to the Users group and then to the db_owner role for the portal site Web application content database.
[Setup] From the SharePoint 2010 Management Shell, use the New-SPWebApplication and Get-SPWebApplication cmdlets to configure the portal site Web application content database. Use the following example as a guide.
New-SPWebApplication -Name "Contoso Internet Site" -Port 80 -HostHeader "http://sharepoint.contoso.com" -URL "https://www.contoso.com" -ApplicationPool "ContosoAppPool" -ApplicationPoolAccount (Get-SPManagedAccount "DOMAIN\jdoe") Get-SPWebApplication http://somesite | Set-SPWebApplication -Zone "Extranet" -HostHeader "https://www.contoso.com" - AllowAnonymousAccess
For more information, see New-SPWebApplication and Get-SPWebApplication.
Important
This command must be run on the same computer that is running the Web application. The host name and port combination must not describe a Web application that already exists or an error results and the Web application is not created.
[Setup] From a command prompt, run the following command to restart IIS: iisreset /noforce