Professional Documents
Culture Documents
Pega719 Install Tomcat MSSQL 2
Pega719 Install Tomcat MSSQL 2
Trademarks
For Pegasystems trademarks and registered trademarks, all rights reserved. Other brand or product
names are trademarks of their respective holders.
For information about the third-party software that is delivered with the product, refer to the third-party
license file on your installation media that is specific to your release.
Notices
This publication describes and/or represents products and services of Pegasystems It may contain trade
secrets and proprietary information that are protected by various federal, state, and international laws,
and distributed under licenses restricting their use, copying, modification, distribution, or transmittal in
any form without prior written authorization of Pegasystems.
This publication is current as of the date of publication only. Changes to the publication may be made
from time to time at the discretion of Pegasystems This publication remains the property of Pegasystems
and must be returned to it upon request. This publication does not imply any commitment to offer or
deliver the products or services described herein.
This publication may include references to Pegasystems product features that have not been licensed by
you or your company. If you have questions about whether a particular capability is included in your
installation, please consult your Pegasystems services consultant.
Although Pegasystems strives for accuracy in its publications, any publication may contain inaccuracies
or typographical errors, as well as technical inaccuracies. Pegasystems may make improvements and/or
changes to the publication at any time.
Any references in this publication to non-Pegasystems websites are provided for convenience only and do
not serve as an endorsement of these websites. The materials at these websites are not part of the
material for Pegasystems products, and use of those websites is at your own risk.
Information concerning non-Pegasystems products was obtained from the suppliers of those products,
their publications, or other publicly available sources. Address questions about non-Pegasystems
products to the suppliers of those products.
This publication may contain examples used in daily business operations that include the names of
people, companies, products, and other third-party publications. Such examples are fictitious and any
similarity to the names or other data used by an actual business enterprise or individual is coincidental.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 2
This information is the property of:
Pegasystems
Cambridge, MA 02142-1209
USA
www.pega.com
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 3
Contents
Copyright and trademark notices 2
Copyright 2
Trademarks 2
Notices 2
Online resources 1
Installation Overview 2
Installation methods 4
Product mode 5
Transport-layer encryption 5
System requirements 5
Application server 6
Database users 9
Rulebase Prerequisites 15
Configuring ports 27
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 2
Enabling help and System Management applications 36
Appendix A: setupDatabase.properties 40
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 3
Using Pegasystems documentation
This guide describes how to install a new instance of the Pega 7 Platform on a system with Microsoft SQL
Server and EnterpriseDB and Apache Tomcat. See the Platform Support Guide on the PDN for a list of
supported platforms.
To upgrade, see the Pega 7.1.9 Upgrade Guide. To update from Pega 7.1.x, see the Pega 7.1.9 Update
Guide.
Online resources
The Pega Discovery Network (PDN) at https://pdn.pega.com is Pegasystems' online documentation and
information site. To access the latest documentation, navigate to the Support & Resources tab.
l Platform Support Guide: The Platform Support Guide lists the databases, drivers and application
servers supported for this release. Review the Platform Support Guide before you install the Pega
7 Platform to verify that your database and application servers are supported.
l Deployment guides: The PDN includes the latest installation, upgrade, and update guides.
l Release notes: Review the important information in the release notes before you continue.
l Updated help files: Download the current prhelp.war file from the Resources & Support tab of
the PDN, or use the online version: https://pdn.pega.com/sites/pdn.pega.com/files/help_
v71/procomhelpmain.htm.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 1
Installation Overview
Installing the Pega 7 Platform is a multi-step process that involves configuring your database and
application server, loading rules into the database, and then deploying application archives to the
application server.
This guide is organized to expedite the installation process. It can be summarized in the following steps
that are typically performed in sequence.
Some organizations follow specific governance procedures for the allocation and use of IT infrastructure,
including databases and application servers. If your organization has special teams for managing
databases and application servers, these resources should be engaged as early in the planning process as
possible. The Pega 7 Platform supports different deployment topologies and configuration options which
impact how the supporting infrastructure is configured and managed going forward.
l The application server hosts the Pega 7 Platform application archives and also provides
interconnectivity to other systems through various protocols.
l The database server stores the rules, data and work objects used and generated by the Pega 7
Platform.
Application users and developers typically access the Pega 7 Platform through a web browser.
Applications may also expose HTTP-based services (for example, SOAP, REST or HTTP) for purposes of
administration or process automation in a headless environment.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 2
Planning your installation
The Pega 7 Platform supports a run-time mode and a variety of deployment topologies that can impact
the choices you make at different stages of the installation. Before beginning, read this section
thoroughly.
Note: If you are making changes in your environment as part of the upgrade, do them before upgrading.
l Single schema: One schema contains all rules and data objects.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 3
l a Rules Schema – contains Rules tables and associated data and objects
Split-schemas allow you to conduct an in-place upgrade in one environment and then migrate the
upgraded objects to other environments. Split-schema configurations are best practices,
particularly in critical development environments such as QA, STAGE and PROD.
The following diagram illustrates the difference between a single-schema system and a split-
schema system.
Installation methods
You can install the Pega 7 Platform either automatically or manually. This guide includes instructions for
both methods.
n Automatically – Use the UI-based Installation and Upgrade Assistant (IUA) to automatically
install either the rulebase or the rulebase and the schema. The IUA runs on any Windows, Unix,
Linux, or zLinux system with Java 6 or higher.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 4
Then run scripts to install and optionally generate DDL. If you generate DDL, have your Database
Administrator apply the DDL to your schema.
Both methods use a batch process to load the rulebase. Due to the magnitude of rules and other data
objects which must be loaded, Pegasystems strongly encourages you to run the installer on the same
network as the database server. If this is not possible, run the installer on a machine with fast direct
access to the database server. Do not attempt to run the installer on a virtual private network (VPN) or a
multi-hop wide area network (WAN).
Product mode
The Pega 7 Platform includes a Multitenancy mode. The Multitenancy mode has different requirements,
different run-time behaviors and different administrative procedures from other modes. Before you
select the Multitenancy mode, review the Multitenancy Administration Guide which discusses this mode in
detail. It is included in your distribution package and available on the PDN.
Transport-layer encryption
Pegasystems recommends that you use a strong transport-layer encryption (for example, Transport
Layer Security 1.2) to secure Pega 7 Platform web applications. This requires that you create and install
TLS/SSL digital certificates on your web application server for the Pega 7 Platform. For more
information, see the documentation for your application server.
System requirements
Before you install, check the supported versions of your application server and database. See the
Platform Support Guide on the PDN for a list of supported versions. Ensure that your system meets the
minimal requirements describes in this section.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 5
Installation and Upgrade Assistant (IUA)
The minimum systems requirements to run the Installation and Upgrade Assistant (IUA) are:
n 10 GB minimum disk space and at least 8 GB available space in the temporary directory of the root
file system
n Java Platform, Standard Edition Development Kit (JDK). Set JAVA_HOME to the root directory of the
JDK. For Java 8, you may need to remove from the PATH any references to a Java shortcut.
Application server
Pegasystems recommends that you install only the Pega 7 Platform on the application server.
Note: Allocate enough storage to accommodate debugging and other logging requirements.
Configure logging to avoid writing logs to the directory that contains the application server run-
time components.
The Pega 7 Platform runs in memory on Java Virtual Machines (JVMs). This memory is called a “heap”. In
general, all activity is distributed over multiple JVMs (nodes) on the application server.
l Standard suggested system heap size is 4 - 8 GB based on monitoring of memory usage and GC
frequency.
l Larger heaps may be advisable if a system is to run applications designed to allow a high number
of concurrent open tasks per session or to cache a large collection of transaction or reference data.
l Do not deploy the Pega 7 Platform in an environment wher the heap size exceeds the vendor-
specific effectiveness limit.
In current 64 bit JVMs, compression is enabled by default. Do not deploy the Pega 7 Platform in an
environment where compression is disabled or where the heap size exceeds the vendor-specific
effectiveness limit.
The host application server memory size must be at least 4 GB larger than the Pega 7 Platform heap size.
The additional 4 GB is recommended to allow for operating system, monitoring tools, operating system
network file buffering, and JVM memory size (-xmx option).
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 6
4 GB heap + 4 GB for native memory, operating system, and buffering
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 7
Database server setup
This section lists the database prerequisites and describes how to create user accounts, the database,
and database schema for your installation.
l Download a supported version of the JDBC4 driver for your version of the database.
l Enable the common language run time (CLR) on the database to enable User-Defined Functions
(UDFs). To check whether CLR is enabled, run the following script:
l Time zone
l Regional settings/locale
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 8
Database users
This guide refers to the following database users:
l Deployment user: the user who runs the installation. After the installation, you can remove this
user.
l Run-time users: These users perform actions on the Pega 7 Platform after the installation. In a dual
user configuration, an Admin user is granted full privileges, and a Base user is granted a smaller
subset. Pegasystems recommends the dual user configuration :
l Base user: the user who will run the Pega 7 Platform. For most run-time operations, the
Pega 7 Platform uses the Base user and associated data source. The data schema should be
the default schema for Base users.
l Admin user: an optional user provided to the Pega 7 Platform that is preferentially used by
certain features that require creating, modifying, or dropping database schema objects; for
example, System Management facilities and certain decisioning operations.
Pegasystems recommends that you create the Admin user separate from the Base user, however,
you can create a single Base user with both sets of privileges. If there is no separate Admin user,
the Pega 7 Platform uses the Base user for all run-time operations.
User permissions
The following table describes the general permissions for each user and the purpose of each permission.
Pegasystems recommends the dual-user configuration. For a single-user configuration, the Base user
also requires the permissions listed for the Admin user.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 9
Permission Deployment User Base User Admin User
short-lived views to assist with strategy
installs the views used by
in data and rules schemas analysis. Import also requires this when
PegaRULES.
importing views.
The deployment process
Create/update/drop stored
installs stored procedures, trig-
procedures, triggers, &
gers, and functions used by
functions
PegaRULES.
The installation and upgrade
Enable & disable triggers processes disable triggers in
on rule tables order to save large amounts of
records more quickly.
Various tables must be trun-
Truncate rule and data
cated during a PegaRULES
tables
upgrade.
When the install & upgrade pro-
When system management utilities cre-
Grant object-level priv- cesses create tables and other
ate tables and other objects in the rules
ileges on rules schema to objects in the rules schema,
schema, they must grant the base user
data user they must grant the base user
access to these objects.
access to these objects.
The permissions needed for your database users depend on whether you have a split schema or a single
schema, and whether you are using the recommended dual Admin/Base user configuration.
Split-schema configuration
* Pegasystems recommends the dual-user configuration. For a single-user configuration, the Base user
also requires the permissions listed for the Admin user.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 10
Single schema configuration
* Pegasystems recommends the dual-user configuration. For a single-user configuration, the Base user
also requires the permissions listed for the Admin user.
When you configure your Microsoft SQL Server database, you can set the collation type to either Windows
or binary. To shorten sort time in environments where you do not need language-specific sorting, you can
consider setting a binary sort. See the Microsoft Windows documentation for more information about
Windows collations and binary collations.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 11
Installing the Pega 7 Platform
This section describes how to install and load the Pega 7 Platform.
n Installation and Upgrade Assistant (IUA)— A Java-based UI guided tool that sets up the Pega
7 Platform Rulebase schema in the database and loads the Pega 7 Platform rules.
n Command-line script — A command-line script is provided for both Unix and Windows platforms
and is suitable for automating the installation process of installing the Pega 7 Platform in headless
environments.
l You will allow the installation process to automatically apply the schema changes.
If your deployment does not meet both these criteria, follow the steps in this section to edit the
setupDatabase.properties file. Follow these instructions if you plan to use the command line scripts to
install or if you plan to use the generateddl script to generate a DDL file of schema changes. The
Deployment user should perform these actions.
The setupDatabase.properties file is used by the scripts that update the database schema and the
rulebase. These scripts use the setupDatabase.properties file:
l The install.bat/sh script deploys the most recent version of the Pega 7 Platform.
Common properties
These properties specify the settings needed to connect to the database:
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 12
l The script arguments column lists the arguments for the generateddl.bat/sh script.
1. Open the file setupDatabase.properties for editing. This file is located in the scripts folder of
your distribution.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 13
2. Specify the properties for your system. For each property, add the appropriate value after the
equals sign.
A generateddl script is provided for Windows (generateddl.bat) and Linux (generateddl.sh) in the
<PRPC_HOME>\scripts directory. This script automatically renders the platform-specific DDL and
writes the output to a file. You can then view and edit the file or directly apply it using database
management tools. Both scripts work identically and accept the arguments noted in Editing the
setupDatabase.properties file.
generateddl.bat --action install --arg1 [value] --arg2 [value] ..... --argn [value]
Note: You must supply the --action parameter to the script. You can also supply an --outputDirectory
parameter. If no additional arguments are passed to the script, the script defaults to the values of the
properties set in the setupDatabase.properties file. See Appendix A: setupDatabase.properties for a
sample edited file.
2. If you have not already done so, edit the setupDatabase.properties file. See Editing the
setupDatabase.properties file.
If you do not pass another value for --outputDirectory, the script writes the output to the following
directory:
PRPC_HOME\schema\generated\
Note: The output directory is deleted and recreated each time the generateddl script executes. To save
a copy of the DDL, rename the directory before you run the script.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 14
Applying schema changes
Before you continue, have your DBA follow these general steps to apply the schema changes:
1. Review the DDL files in the DDL output directory. The default directory is: PRPC_
HOME\schema\generated\database-type\install\udfstatements.
4. Apply the DDLs for the UDFs from the DDL output directory in the correct order.
Rulebase Prerequisites
Prior to running the installer — either the IUA or the command-line version — confirm you meet the
following prerequisites:
n Database users and roles are defined with the proper privileges.
For a single schema configuration, you should have one schema for both rules and data objects.
For a split schema configuration, you should have separate schema for rules and data objects.
To use Kerberos for authentication, you must use the command line to install Pega 7 Platform.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 15
To use Kerberos authentication:
jdbc.custom.connection.properties=<parameter1>=<value1>;<parameter2>=<
value2>;<parameter3>=<value3>;
For example, on a Microsoft SQL Server database server from a Windows client machine
(where both machines belong to the same Windows domain), using the Microsoft JDBC
driver, the property may be set as follows:
jdbc.custom.connection.properties=integratedSecurity=true;
c. Comment out all the username and password properties so that they appear as follows:
# pega.jdbc.username db username
# pega.jdbc.password db password
# pega.jdbc.username=ADMIN
# pega.jdbc.password=ADMIN
2. Set up your database to enable Kerberos functionality. This may include additional vendor-specific
JDBC driver configuration, or other setup procedures. Check the documentation from your
database vendor to determine what Kerberos setup is needed for your database.
3. Continue at Installing from the command line to install the Pega 7 Platform.
The installer creates a series of log files in <PRPC _HOME>\scripts\logs. If you encounter a problem
while running the installer, copy the logs to a safe location before re-running the installer.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 16
Note: The <PRPC_HOME>\.checksum directory provides an MD5 checksum for each the file in the
distribution. To verify that the distribution has been downloaded correctly, calculate a checksum using
the Jacksum tool at www.jonelo.de/java/jacksum/.
1. Copy the distribution file to the computer that you will use to run the IUA. Extract the contents of
the ZIP file into an empty directory.
If you are installing the software from the DVD included with your media distribution, copy the
contents of the DVD to an empty directory.
Note: If JAR files are not associated with Java commands on your system, start the IUA from the
command-line. In a command-line console, change to the directory containing PRPC_Setup.jar, and
type java -jar PRPC_Setup.jar.
The IUA loads and the install icon appears in your task bar.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 17
3. Click Next to display the License Agreement.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 18
4. Review the License Agreement and click Accept.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 19
6. Choose your Database Type and click Next.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 20
l Standard Edition — this option installs a new instance of Pega 7.1.9. It is the default
selection.
l Multitenancy Edition — this option installs Pega 7.1.9 in a specialized mode designed to
support Software As A Service (SaaS) run-time environments. See the Multitenancy
Administration Guide on the PDN for more information.
Note: Upgrading or migrating from one edition to another is not supported. If you install one
edition and later decided to use a different edition, you will need to drop and recreate the database
or create a new database. The schema DDLs for the two editions are not compatible.
8. Configure the database connection. The JDBC drivers allow the Pega 7 Platform application to
communicate with the database.
Note: Some of the fields on the Database Connection screen – in particular the JDBC Driver
Class Name and the Database JDBC URL - are pre-populated based on the type of database you
selected. If you edit these or any other fields on this screen, and then later decide to change the
database type, the IUA may not populate the fields correctly. If this occurs, enter the correct field
values as documented below, or exit and re-launch the IUA to select the intended database type.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 21
l JDBC Driver Class Name — Verify that the pre-populated value is accurate:
com.microsoft.sqlserver.jdbc.SQLServerDriver
l JDBC Driver JAR Files— Click Select Jar to browse to the appropriate driver files for your
database type and version. See the Platform Support Guide on the PDN for a list of drivers.
l Database JDBC URL — Verify that the pre-populated value is accurate. See See "Gathering
database connection information " on page 28 for information. Enter your connection similar
to the following. Replace the variables with the values for your system:
l jdbc:microsoft:sqlserver://server:1433;
database=
dbName;SelectMethod=cursor;SendStringParametersasUnicode=false
l Database Username and Password — Enter the user name and password you created for
the Deployment user on your database.
l Rules Schema Name — Enter the name of the rules schema in the database.
l Data Schema Name — Enter the name of the data schema in the database. For single-
schema configurations the Data Schema Name is identical to the Rules Schema Name.
9. Click Test Connection. If the connection is not successful, review your connection information,
correct any errors and retest. When the connection is successful, click Next to choose how to apply
the data schema.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 22
10. Specify whether to bypass automatic DDL generation. By default, the IUA generates and applies
the schema DDL to your database.
To manually generate and apply the DDL, select the Bypass Automatic DDL Application option
and continue the installation. After you complete the installation, run the generateDDL script to
apply the DDL. See See "Manually generating and applying DDL " on page 14for more information.
Click Next.
11. Enter the System Name and Production Level and click Next:
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 23
l System Name — Enter a name for your Pega 7 Platform system. The System Name can be
accessed from the System > Settings > System Name landing page.
l Production Level — Enter a production level. The Production Level affects many security
features of your system. Both the System Name and Production Level can be changed after
the system is running. Depending on the type of installation, choose:
The Production Level can be updated from the App Explorer. Type Data-Admin-System in the
search field and select SysAdmin > Class > Data-Admin-System to open your system.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 24
Installation logs automatically appear in this window. The log is also stored in the <distribution
image>/scripts/logs directory.
The rulebase load time can last for several hours and will vary widely based on network proximity
to the database server. The log window may appear inactive when the IUA is processing larger
files. When the load is complete, the following screen opens.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 25
If there is an issue, copy the log from the temporary directory to a safe location before exiting the
IUA.
13. Click Back to return to the previous screen and then click Exit to close the IUA.
Note: If no additional arguments are passed to the script, the script defaults to the values of the
properties set in the setupDatabase.properties file. See Editing the setupDatabase.properties file.
1. If you have not done so already, edit the setupDatabase.properties file. See Editing the
setupDatabase.properties file.
Installing the rulebase can take several hours, depending on the proximity of the database to the system
running the install script. As the install proceeds, it reports performance metrics for each step of the
installation process. When complete, you see a BUILD SUCCESSFUL message and the Total Time in
minutes and seconds for the installation.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 26
Application Server Setup
This section describes how to configure your Apache Tomcat Application Server for use with the Pega 7
Platform:
n Your system includes a supported JDK. See the Platform Support Guide on the PDN for a list of
supported versions.
n Confirm or set a JAVA_HOME environment variable that points to the directory where the Java
JDK is installed.
n You have installed a supported version of the Apache Tomcat application server. See the Platform
Support Guide on the PDN for a list of supported versions.
Every operating system has a provision for referencing a common time standard like the one available at
www.time.gov. On UNIX, this is the network time protocol daemon, ntpd. On Windows, you can set a
similar service through the clock settings in the control panel or task bar. See the documentation for your
specific hardware operating system for information about setting this critical service.
Configuring ports
Before you start to set up your application server, ensure that the following ports are open and available:
l Cluster communication - Hazelcast: multiple ports in the range 5701-5800 (default 5701)
Search
To enable communication between the host nodes in the cluster, open a TCP port in the range 9300-9399
on each node. (By default, Search uses port 9300.) These ports are used for internal node-to-node
communication only, and should not be externally accessible.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 27
Cluster Communication - Hazelcast
The Pega 7 Platform can include multiple servers, or nodes, and each node can contain multiple JVMs.
The number of available ports in this range needs to be greater than or equal to the greatest number of
JVMs on any one node in the cluster. For example, if there are 3 JVMs on one node, and 7 JVMs on
another node, there must be at least 7 ports available.
For cluster communication, the port range 5701-5800 needs to be left open. By default, the system
begins with port 5701 and then looks for the next port in the sequence (5702, followed by 5703 and so
on). To override the default port range, set the value of cluster/hazelcast/ports in the prconfig.xml
file.
l Host name
l Port number
You will need to enter the connection URL as pega.jdbc.url when you configure the application server.
Your connection string will be similar to the following. Replace the variables with the values for your
system:
l jdbc:microsoft:sqlserver://server:port;DatabaseName=database
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 28
Base versus Admin User
The Pega 7 Platform minimally requires one JDBC data source. However, if you are using the
recommended dual-user configuration, Base + Admin user, you must configure a second data source
in the application server.
l Initial Heap Size (Xms): between 4 GB - 8 GB, based on monitoring of memory usage and GC
frequency
l Maximum Heap Size (Xmx): between 4 GB - 8 GB or larger, depending on your system
configuration. See Application server memory requirements for more information.
If your application server is using the recommended Oracle JVM, and you are using Java 7, also add the
PermSize and MaxPermSize settings. (Java 8 does not require you to set PermSize.)
Note: If the server does not have enough memory allocated to run the Pega 7 Platform, the system may
hang without an error message. Your values may need to be higher than these recommendations based
on your server hardware, the number of other applications, and the number of users on the server.
The method you use to set the memory parameters for the JVM depends on the way you installed
Tomcat.
l If you installed Tomcat by expanding the .zip file, create a setenv.bat file on Windows or
setenv.sh file in Unix in Tomcat’s bin directory. Use the following examples as a guide, and
substitute your values for those given:
Note: This example is for Java 7. Java 8 does not require you to set PermSize or MaxPermSize.
l On Windows — setenv.bat
l On Unix — setenv.sh
l If you installed Tomcat as a Windows service, you can set the JVM options using a command line
utility packaged with Tomcat.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 29
tomcat7.exe //US//Tomcat7 ++JvmOptions=-Xms4096m –Xmx8192m;-XX:PermSize=512m;-
XX:MaxPermSize=1024m
For systems that do not require Transport Layer Security (TLS), to deploy Pegasystems’ System
Management Application on a different server than the Pega 7 Platform application, modify the JAVA_
OPTS environment variable to enable remote operation of the System Management Application. For
more information on setting JVM parameters, see the Apache Tomcat documentation at
http://tomcat.apache.org.
To suppress these errors, turn off Tomcat session persistence by uncommenting the Manager pathname
parameter in the context.xml file, as follows:
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<Manager pathname="" />
-Djava.awt.headless=true
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 30
Creating JDBC resources
Follow the steps in this section to create data sources.
1. Add JDBC connection information and temporary directory location to the context.xml file.
Substitute your specific values for the host, port, dbname, username, password, and connection
URL. For more information about connection URL strings, see See "Gathering database connection
information " on page 28
<Resource name="jdbc/PegaRULES"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://[host]:[port];databaseName=
[dbName];selectMethod=cursor;sendStringParametersAsUnicode=false"
username="username"
password="password"
maxActive="100"
maxIdle="30"
maxWait="10000"
/>
2. If you are using the recommended dual-user configuration with a separate Admin user, configure a
second data source.
<Resource name="jdbc/AdminPegaRULES"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://[host]:[port];databaseName=
[dbName];selectMethod=cursor;sendStringParametersAsUnicode=false"
username="username"
password="password"
maxActive="10"
maxIdle="5"
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 31
maxWait="5000"
/>
b. Save the JDBC.jar file in the /lib directory on your application server.
<Environment name="url/initialization/explicittempdir"
value="path"
type="java.lang.String"
/>
In a clustered deployment, each Pega 7 Platform instance must have its own temporary directory. You
cannot share a temporary directory with more than one Pega 7 Platform instance.
<role rolename="admin-gui"/>
<role rolename="manager-gui"/>
<role rolename="PegaDiagnosticUser"/>
Note: The PegaDiagnosticUser role is intended for use with the Pega 7 Platform System Management
application (SMA). If you don’t intend to use this application, this role can be omitted from the Tomcat
configuration.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 32
l If you are using the recommended dual-user Admin-Base configuration, also create these binding
identifiers:
l One that points to PegaRULESdbAdmin: This allows the Admin user to modify the database
from the Designer Studio.
To specify these JNDI properties, modify the \conf\context.xml file in the root directory of your
Tomcat base distribution.
3. After the context element’s starting tag <context> and before its ending tag, </context> insert a
line for each binding identifier in the following format. Replace RULES with the schema name of
your rules tables and replace DATA with the schema name of your data tables.
<Environment
name="prconfig/database/databases/PegaRULES/defaultSchema"
value="RULES"
type="java.lang.String" />
<Environment
name="prconfig/database/databases/PegaDATA/defaultSchema"
value="DATA"
type="java.lang.String" />
4. For dual-user configurations, also add these lines in the </context> tag:
<Environment
name="prconfig/database/databases/PegaRULES/dataSourceAdmin"
value="AdminPegaRULES"
type="java.lang.String" />
<Environment
name="prconfig/database/databases/PegaDATA/dataSourceAdmin"
value="AdminPegaRULES"
type="java.lang.String" />
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 33
Deploying the Pega 7 Platform Archives
This section describes how to deploy the Pega 7 Platform Application Archives after you configure your
Apache Tomcat application server. The archives you deploy are:
1. Copy these files from the archive folder in the Pega 7 Platform distribution to the <tomcat_
install_root>\webapps\ directory:
l prweb.war
l prsysmgmt.war
l prhelp.war
Note: When you restart the server after the archives deploy, the first node you bring up becomes
the default search node.
3. After the applications deploy, shut down the server and delete the prweb.war file from the
<tomcat_install_root>\webapps\ directory. If you do not remove the WAR file after
deployment, Tomcat redeploys the application each time the server restarts.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 34
Post Deployment Configuration
This section describes the post deployment activities that are performed in the system once you have
completed the setup and configuration of your Apache Tomcat application server and deployed the
archives.
l Starting applications
http://<server>:<port>/prweb/PRServlet
l Password: install
After logging in, the Pega 7 Platform automatically launches a process to index the rules in the system to
support full-text search. While this process is running, you may notice some delay in the responsiveness
of the Pega 7 Platform user interface. This process usually takes from 10 to 15 minutes to complete
depending on your system configuration.
If the index ends without generating an error message, the installation is successful.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 35
Enabling help and System Management applic-
ations
The Help and System Management web applications are accessed through a URL and can be deployed to
any application server.
1. From the Designer Studio, select the System > Settings > URLs menu item.
2. In the Online Help URL field, enter the URL for the Help application in the format:
http://<host>:<port>/prhelp
3. In the SMA URL field, enter the URL for the System Management Application in the format:
http://<host>:<port>/prsysmgmt
4. Click Save.
Note: You must log out of the Pega 7 Platform and log back in for these changes to take effect.
To configure DWA:
1. Select the Designer Studio System > Settings > URLs menu item.
2. In the Public Link URL field, enter the URL that you want to provide in emails in this format:
http://<host>:<port>/prweb
3. Click Save.
Note: You must log out and log back in for these changes to take effect.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 36
After the Search indexes are completely built, you can change the default settings. Do not stop or bring
down the default node until the search indexes build completely. The Search Landing Page displays the
status.
l Ensure that the directories for all Elasticsearch host nodes have sufficient free space to hold
the Elasticsearch indexes.
2. Open the Designer Studio > System > Settings> Search landing page and expand Search Index
Host Node Setting.
3. Specify one node to set as the Host Node. If necessary, delete all but one node. This is the node on
which Elasticsearch indexes will be built.
Note: Do not include more than one node in the Search Index Host Node Setting list. Including
more than one node in the list at this point may cause duplicate index builds and compromise
system performance. You will create additional nodes later in this process.
4. Verify the Search Index Host Node ID and the Search Index File Directory.
7. After the first indexing is complete, add additional Host Nodes. The system automatically replicates
the indexes on the new nodes.
Note: You must configure a minimum of 2 Elasticsearch host nodes. Pegasystems recommends
that you configure a minimum of 3 nodes for maximum fault tolerance. You may need more than 3
nodes depending on the size of your cluster.
8. To enable communication between Elasticsearch host nodes in the cluster, open a TCP port in the
range 9300-9399 on each node. (By default, Elasticsearch uses port 9300.) These ports are used for
internal node-to-node communication only, and should not be externally accessible.
1. From the Operator Menu located to the right of the Designer Studio header, select the Profile
option.
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 37
3. Verify the Current Password, then enter and confirm the New Password.
4. Click Save.
<tomcat-home>\work\Catalina\localhost\prweb
Since this directory may be cleaned during administration, resulting in the loss of logs and alerts, you can
change this path after installation. To do so, modify the prlogging.xml file, in the following directory:
<tomcat-home>\webapps\prweb\WEB-INF\classes
Note: Be sure to back up the prlogging.xml file before you make changes to it.
Locate the "appender" definitions containing the "@{web.tmpdir}" string within the file and change the
FileNamePattern values to the directory that you want to use.
2. Create the directory to host the logs and change the FileNamePattern parameter to use it:
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 38
Note: This change uses a relative path. The "logs" directory is relative to the "bin' directory in
Tomcat, so the change above would result in the file being created in <tomcat-home>\bin\logs.
This directory must already exist with write permissions for the user running Tomcat; the Pega 7
Platform will not create the directory.
4. Check the directory to confirm that the log files have been created in the new location.
Caution: If you plan to install a Pega-supplied applications on top of the Pega 7 Platform, you must grant
the database user permissions as described in Database users. Some Pega-supplied applications use
triggers and the user will need the permissions to determine if the Pega 7 Platform will need to drop
triggers that reference the updates cache and rule view tables. During startup, the Pega 7 Platform
checks for triggers that reference the updates cache and rule view tables; if these triggers exist, the
Pega 7 Platform attempts to drop them. If the Base or Admin user does not have the correct permissions,
the Pega 7 Platform cannot drop the triggers and fails to start up. If you installed the Pega-supplied
application before you deployed the Pega 7 Platform, the deployment process automatically drops the
triggers and this error does not occur
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 39
Appendix A: setupDatabase.properties
This appendix contains an example of how the setupDatabase.properties file should look when the
relevant properties for your installation have been entered.
# Properties File for use with PRPC Utilities. Update this file
###############################################################
####################
# For database that uses multiple JDBC driver files (such as DB2). You may specify
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 40
# IBM DB/2 z / OS jdbc:db2://localhost:50000/dbName
# pega.jdbc.username db username
# pega.jdbc.password db password
# ** If you are installing or upgrading on db2 or udb you should do the following:
# update the udb.conf file in the /config directory if you have additional
# connection properties that need to be set. (schema name will be automatically added)
pega.jdbc.driver.jar=/opt/tomcat/lib/postgresql.jdbc4.jar
pega.jdbc.driver.class=org.postgresql.Driver
pega.database.type=postgres
pega.jdbc.url=jdbc:postgresql://localhost:5432/pega
pega.jdbc.username=pega
pega.jdbc.password=pega
#jdbc.custom.connection.properties=
rules.schema.name=pegarules
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 41
# Data schema name : Used for systems running on a Split Schema
data.schema.name=pegadata
#User Temp Directory. Will use default if not set to valid directory
user.temp.dir=
pega.zos.properties=
# Note: Leave this property blank if you need to generate the schema
bypass.pega.schema
# Note: Leave this property blank if you need to generate the UDF
bypass.udf.generation
# The utility will skip disabling and enabling of Pega Triggers during processing
# Note: Leaving this property blank allows the utility to control the Pega Triggers.
bypass.trigger.control
# Note: The utility will skip any DDL Generation if all three bypass properties above
# Note: This property should be left blank so that the UpdatesCache table
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 42
#bypass.db2zos.truncatecache
run.assembler=
import.assembled.classes=true
# Rebuild Database Rules Indexes after Rules Load to improve Database Access Performance
rebuild.indexes
# Since multiple PRPC Systems may reference the same database, it is important that each
# system has a unique name in order to distinguish them from each other.
system.name=pega
# During installs, the above system name is generated with the following production level.
# The system production level can be set to one of the below integer values (1-5):
# 5 = production;
# 4 = preproduction;
# 3 = test;
# 2 = development;
# 1 = experimental
production.level=2
multitenant.system=false
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 43
# Run Update Existing Applications activity after upgrade?
# For pre-7.1 upgrades: Update Existing Applications is always run, regardless of this setting.
# For 7.1+ upgrades or updates: Upgrade Existing Applications is run if this setting is set to true.
# Update Existing Applications can be run from upgrade scripts, prpcUtils, or by directly launching in
PRPC after upgrade.
update.existing.applications=false
import.codeset.name=Customer
import.codeset.version=06-01-01
build.conclusions=
db2zos.udf.wlm
# Generate and execute a SQL script to clean old rulesets and their rules from the system
# If you would like to only generate the script, not execute it, see cleanup.bat or cleanup.sh script
run.ruleset.cleanup
# generate.benchmarks=true
# benchmark.warning.threshold.value=
# benchmark.kill.threshold.value=
#reversal.schema.file.name=
Pega 7.1.9 Installation Guide Apache Tomcat Microsoft SQL Server and EnterpriseDB 44