Create a PolicyCenter database in SQL Server
About this task
Guidewire requires that you follow these guidelines to create and configure an instance of a SQL Server database for PolicyCenter.
Important: If you plan to create additional database instances to support multiple PolicyCenter environments or other Guidewire products, consider applying the changes in the following procedure to the model database. Use the model database as a template for the additional database instances. Before you edit the model database, create a backup of the database.
Note: Guidewire recommends that you not share the PolicyCenter database with other applications.
Note: It is possible for a database administrator to write a
CREATE DATABASE SQL statement to create the database also.Procedure
- If not already open, open SQL Server Management Studio.
-
If creating a new database, do the following.
Otherwise, skip to step 3:
- Right-click the Databases node and select New Database.
- Enter a database name in the New Database dialog.
- Click OK.
- Skip to step 4.
-
If modifying the model database, do the following:
- Expand ,
- Right-click model and select Properties,
- Continue to step 4.
-
Optionally, create one or more filegroups to support the PolicyCenter logical tablespaces from the Filegroups page.
See Create filegroups in SQL Server for details.
-
Select the Options page.
- Choose your database collation if not using the SQL Server server default. The only requirement is that it is a CI (case-insensitive) collation.
-
Verify that the values for
Auto Create StatisticsandAuto Update Statisticsare both set toTrue.During start up, PolicyCenter checks that these properties are set to
Trueand validates that the SQL Server database is case-insensitive. -
Verify that the value of
Auto Shrinkis set toFalse.Note: If the value of this options is set toTrue, poor performance can result. - Click OK.
-
Right-click Security and select .
- On the Login - New dialog, select SQL Server Authentication if not already selected.
- Specify a password and password policy options.
- Click OK.
-
In Object Explorer, expand the database and open .
- Right-click Users and select New User.
-
Enter
pcUserfor the User name. - Enter the Login name that you created earlier.
-
Select
db_ownerin both Schemes owned by this user and Database role membership panels.This action grants ownership of the PolicyCenter database topcUser. - Click OK.
-
Grant the
pcUserthe following permissions on each PolicyCenter data management view:view server stateview database state
See Grant Guidewire Data Management view permissions to pcUser for details.
-
Disable the SQL Server
autogrowthfeature in a production system.See Disable the SQL Server autogrowth feature for details.
-
Set the
READ_COMMITTED_SNAPSHOToption to on.PolicyCenter checks for this condition during application start up.
See Set the READ_COMMITTED_SNAPSHOT option for details.
Note: There is no need to save theREAD_COMMITTED_SNAPSHOTquery that sets this value. - Close SQL Server Management Studio.
