pega 7 platform installation guide tomcat oracle · databaseconnectionproperties 29...

59
Pega 7 Platform INSTALLATION GUIDE 7.2.2 Oracle Apache Tomcat PEGA 7 PLATFORM

Upload: others

Post on 19-Mar-2020

12 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Pega 7 Platform

INSTALLATION GUIDE7.2.2

Oracle

Apache Tomcat

PEGA 7 PLATFORM

Page 2: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

© Copyright 2017Pegasystems Inc., Cambridge, MA

All rights reserved.

Trademarks

For Pegasystems Inc. trademarks and registered trademarks, all rights reserved. Other brand or product names are trademarks of theirrespective holders.

For information about the third-party software that is delivered with the product, refer to the third-party license file on yourinstallation media that is specific to your release.

Notices

This publication describes and/or represents products and services of Pegasystems Inc. It may contain trade secrets and proprietaryinformation 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 Inc.

This publication is current as of the date of publication only. Changes to the publication may be made from time to time at thediscretion of Pegasystems Inc. This publication remains the property of Pegasystems Inc. and must be returned to it upon request. Thispublication does not imply any commitment to offer or deliver the products or services described herein.

This publication may include references to Pegasystems Inc. product features that have not been licensed by you or your company. Ifyou have questions about whether a particular capability is included in your installation, please consult your Pegasystems Inc. servicesconsultant.

Although Pegasystems Inc. strives for accuracy in its publications, any publication may contain inaccuracies or typographical errors, aswell as technical inaccuracies. Pegasystems Inc. 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 anendorsement of these websites. The materials at these websites are not part of the material for Pegasystems products, and use ofthose websites is at your own risk.

Information concerning non-Pegasystems products was obtained from the suppliers of those products, their publications, or otherpublicly 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, andother third-party publications. Such examples are fictitious and any similarity to the names or other data used by an actual businessenterprise or individual is coincidental.

This document is the property of:

Pegasystems Inc.One Rogers StreetCambridge, MA 02142-1209USAPhone: 617-374-9600Fax: (617) 374-9620www.pega.com

DOCUMENT: Pega 7 Platform Installation Guide SOFTWARE VERSION: 7.2.2PUBLISHED: June 26, 2017

Page 3: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

CONTENTS

Installation 7Related information 7Pega 7 Platform architecture 8Planning your installation 8Split-schema and single-schema configurations 9Installation methods 10

System requirements 11UI-based installation tool (Installation and Upgrade Assistant) 11Application server 11Application server memory requirements 12

Database server 13Pre-installation tasks 13Reviewing the documentation 13Selecting a transport-layer encryption method 13Configuring the Java Platform 14Configuring storage and logging 14Synchronizing time zones, character encoding, and regional settings 14Support for internationalization 14

Configuring your database for localization 15

Setting up the database server 16Verifying the database configuration 16Configuring your Oracle database 16Database users 17Oracle user permissions 17

Creating an empty database 22Creating Oracle tablespaces 23

Installing the Pega 7 Platform 24Preparing to install 24Running the Installation and Upgrade Assistant (IUA) 25Editing the setupDatabase.properties file 28

Pega 7 Platform Installation Guide 3

Page 4: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Database connection properties 29Optional: Enabling Kerberos authentication 30Installing from the command line 30

Setting up the application server 32Preparing to configure the application server 32Data source resources, data source entries, and default schema entries 33

Configuring the application server 34Configuring Tomcat by editing the context.xml file 34Configuring roles and users 37JVM memory parameters 38

Deploying the Pega 7 Platform application archives 39

Post-deployment configuration 41Starting the Pega 7 Platform applications 41Logging in to the Pega 7 Platform and changing the administrator password 41Enabling online help and the System Management Application 42Configuring Directed Web Access 43Configuring search index host node settings 43Optional: Configuring the Pega 7 Platform to return absolute URLs 44Changing the default path to the Pega 7 Platform logs 45

Changing the default path 46Resizing the Pega 7 Platform log files 47Resizing the database 47Installing Industry applications 47Enabling server-side screen captures for application documents 47Configuring PhantomJS REST server security for including screen captures in an applicationdocument 49

Enabling operators 49

Appendix A — Properties files 51Oracle 51

Appendix B — Troubleshooting installations 52Recovering from a failed installation 52PEGA0055 alert — clocks not synchronized between nodes 53

Pega 7 Platform Installation Guide 4

Page 5: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

ClassNotFoundException error — session persistence 53System hangs with no error message — insufficient memory 53Obtaining database connection information 54

Appendix C — Optional: Generating and applying DDL 55Generating the DDL file 55Applying the DDL file 56Editing the setupDatabase.properties file to bypass DDL generation 56

Appendix D — Installing user-defined functions 57

Appendix E — Secured mode 59

Pega 7 Platform Installation Guide 5

Page 6: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Pega 7 Platform Installation Guide 6

Page 7: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

InstallationThis guide describes how to install a new instance of the Pega 7 Platform on a system with Oracleand Apache Tomcat. See the Platform Support Guide on the PDN for a list of supported platforms.

To upgrade, see the Pega 7 Platform Upgrade Guide. To update from Pega 7.1.x, see the Pega 7Platform Update Guide.

Installing the Pega 7 Platform is a multiple step process that involves configuring your database andapplication server, loading rules into the database, and then deploying application archives to theapplication server.

The Pega 7 Platform supports different deployment topologies and configuration options that affecthow the supporting infrastructure is configured and managed after installation. Engage yourdatabase administrator and any other infrastructure resources as soon as possible in the planningprocess.

Related informationThe Pega Discovery Network (PDN) at https://pdn.pega.com is Pegasystems' online documentationand information site. To access the latest documentation, use the Supportmenu.

l Pega 7 Platform Support Guide— The Platform Support Guide lists the databases, drivers andapplication servers supported for this release.

l Deployment guides— The PDN includes the latest installation, upgrade, and update guides.

l Pega 7 Platform release notes— The release notes include information about installing thePega 7 Platform that supplement the instructions in this guide. Review the release notes beforeyou continue.

l Updated help files— Pegasystems provides updated help on the PDN. To obtain these updates,download the current prhelp.war file from the PDN.

l Pega 7 Platform Multitenancy Administration Guide— TheMultitenancy AdministrationGuide describes how to configure the Pega 7 Platform in multitenant mode after installation.

l Pega 7 Platform Business Intelligence Exchange User Guide— The Business IntelligenceExchange User Guide describes how to install the Business Intelligence Exchange (BIX) product.BIX is included in the full distribution image, but has a separate installer.

Page 8: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

l System Management Application Reference Guide— The optional System ManagementApplication monitors and controls caches, agents, requesters, listeners, and other processing.

Pega 7 Platform architectureThe Pega 7 Platform is a Java EE-compliant enterprise application that requires an application serverand a database server:

l The application server hosts the Pega 7 Platform application archives and also providesinterconnectivity to other systems through various protocols.

l The database server stores the rules, data, and work objects used and generated by the Pega 7Platform.

Application users and developers typically access the Pega 7 Platform through a web browser.Applications can also expose HTTP-based services (for example, SOAP, REST, or HTTP) foradministration or process automation in a headless environment.

Planning your installationThe Pega 7 Platform supports several configuration options that can affect the choices that you makeduring the deployment. Before beginning, read this section thoroughly.

l Do not change your environment while you are deploying the Pega 7 Platform. For example, ifyou are making changes to your application server, or database server, do so before you installthe Pega 7 Platform.

l Choose a configuration type: single-schema or split-schema configuration. Pegasystemsrecommends a split-schema configuration. See Split-schema and single-schema configurations.

l Choose whether to use the standard product edition or the multitenancy edition. The multitenancyedition has different requirements, different run-time behaviors, and different administrativeprocedures from the standard edition. Before you select the multitenancy edition, review theMultitenancy Administration Guide on the PDN.

Upgrading and updating from one edition to another is not supported. If you install one editionand later decide to use a different edition, you must drop and re-create the database or create anew database. The schema DDLs for the two editions are not compatible.

l Verify the Business Intelligence Exchange (BIX) and Pega 7 Platform product versions. Release

Pega 7 Platform Installation Guide 8

Installation

Page 9: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

versions of the Business Intelligence Exchange (BIX) are synchronized with release versions of thePega 7 Platform. BIX is included in the full distribution image, but has a separate installer. Verifythat the version of BIX is the same as the version of the Pega 7 Platform. For information aboutinstalling BIX, see the Pega 7 Platform BIX User Guide.

l Choose an installation type: UI tool or command line. See Installation methods.

l Choose whether to use Kerberos functionality. Kerberos is a computer network authenticationprotocol that allows nodes communicating over a non-secure network to prove their identity toone another in a secure manner. If you enable Kerberos authentication, you must use thecommand line to install the Pega 7 Platform.

l Choose whether to have the installation make changes directly to the database. You can eitherhave the Pega 7 Platform installation apply changes directly to your database, or generate DDLfiles of changes for your database administrator to apply. For information about manuallygenerating and applying DDL, see Appendix C — Optional: Generating and applying DDL on page55.

l Choose whether to cluster the Pega 7 Platform nodes. The Pega 7 Platform supports clusterednodes without special configuration, but you will make different choices about ports, indexes, andclock synchronization depending on your node configuration.

l Determine the best configuration for your database. Involve your database administrator in thesedecisions. For more information, see PDN > Support.

For split-schema configurations, choose whether you will maintain separate tablespaces for thedata schema and rules schema. This decision depends on your database configuration.

Conduct a site-dependent analysis of how the Pega 7 Platform and any Industry applicationsthat will be used to determine the size of your database tablespace.

l Choose either dual-user or single-user configuration. In a dual-user configuration, an Admin useris granted full privileges, and a Base user is granted a smaller subset of privileges. In the single-user configuration, a single Base user is granted full privileges. See Database server setup forinformation about user configuration.

Split-schema and single-schema configurationsThere are two configuration types: single schema and split-schema. Pegasystems recommends split-schema configurations, particularly in critical development environments such as quality assurance,staging, and production.

Pega 7 Platform Installation Guide 9

Installation

Page 10: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

l Single-schema configuration —One schema contains all rules and data objects.

l Split-schema configuration — The rules and data objects reside on separate schemas:

A Rules schema contains rules tables and associated data and objects.

AData schema contains transaction data, including work objects.

With a split-schema configuration, you can upgrade one environment, and then migrate theupgraded objects to other environments.

In a split-schema configuration, the Pega 7 Platform uses the Java Naming and Directory Interface(JNDI) standard to identify and access the appropriate schema. One of the benefits of using JNDI isthat it allows the Pega 7 Platform to access different schemas while using only a single datasource.

The following diagram illustrates the difference between a single-schema configuration and a split-schema configuration.

InstallationmethodsYou can install the Pega 7 Platform either with the UI tool or from the command line. This guideincludes instructions for both methods.

l UI tool – Use the UI-based Installation and Upgrade Assistant to install either the rulebase or therulebase and the schema.

Pega 7 Platform Installation Guide 10

Installation

Page 11: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

l Command line – Run scripts to install the Pega 7 Platform.

Regardless of whether you use the UI tool or the command-line scripts, you might need to edit thesetupDatabase.properties file that controls the behavior of the following scripts:

l The generateddl.bat or generateddl.sh script generates an SQL file that your databaseadministrator can use to apply schema changes to the database. You can run this script regardlessof whether you use the IUA or the command-line script to install.

l The install.bat or install.sh script performs the following functions:Installs the most recent version of the Pega 7 Platform.

Specifies whether to generate a DDL file of changes to the database.

Enables Kerberos authentication.

If you use the IUA to install, you do not use the install.bat or install.sh script.

System requirementsEnsure that your system meets the minimum requirements.

UI-based installation tool (Installation and UpgradeAssistant)If you plan to use the UI-based Installation and Upgrade Assistant ensure that the system on whichyou will install meets these minimum system requirements in addition to all other requirements:

l Windows or Linux operating system

l 1.25 GB minimum available memory

l 10 GB minimum disk space plus at least 8 GB available space in the temporary directory of theroot file system

l Java Platform, Standard Edition Development Kit (JDK)

Application serverThe application server requires:

Pega 7 Platform Installation Guide 11

Installation

Page 12: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

l Oracle JDBC type 4 driver, such as ojdbc7.jar. For more information about supported drivers, seethe Pega 7 Platform Support Guide.

l A supported 64-bit JDK. See the Platform Support Guide on the PDN for a list of supportedversions.

l 1 GB minimum free disk space. You might need additional storage space for debugging andlogging.

Install only the Pega 7 Platform be installed on the application server.

Application server memory requirements

The Pega 7 Platform runs in memory (heap) on Java Virtual Machines (JVMs). In general, all activity isdistributed over multiple JVMs (nodes) on the application server.

l Standard suggested system heap size is 4 - 8 GB based on monitoring of memory usage andgarbage collection frequency.

l Larger heaps are advisable if your applications allow a high number of concurrent open tasks persession or cache a large collection of transaction or reference data.

l Do not deploy the Pega 7 Platform in an environment where the heap size exceeds the vendor-specific effectiveness limit.

Oracle JDKs use compression to minimize the cost of large heaps. The compression option is labeledCompressedOOPS and is effective up to 32 GB.

In current 64-bit JVMs, compression is enabled by default.

The host application server memory size must be at least 4 GB larger than the Pega 7 Platform heapsize to allow space for the operating system, monitoring tools, operating system network filebuffering, and JVM memory size (-XMX option). The minimum host application server memory size is8 GB:

4 GB heap + 4 GB for native memory, operating system, and buffering

If the server does not have enough memory allocated to run the Pega 7 Platform, the system canhang without an error message. The correct memory settings depend on your server hardware, thenumber of other applications, and the number of users on the server, and might be larger than theserecommendations.

Pega 7 Platform Installation Guide 12

Installation

Page 13: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Database serverConfirm that your database server meets the requirements in the Pega Platform Support Guide onthe PDN.

Verify that the system includes:

l 8 GB minimum RAM

l A supported version of the JDBC4 driver for your version of the database

l 10 GB minimum initial tablespace set to auto-extend

l 50 MB logfile size — This default size is sufficient for the initial installation, but will need to beresized to run the application server workload.

l If you are using Oracle 11g, do not use the UCP (Universal Connection Pool) feature in yourdatabase. Oracle BUG 8462305 causes a failure when an application tries to call a storedprocedure. This error causes the Pega 7 Platform to work incorrectly with a database that usesUCP.

Note: To determine if UCP is in use, check for the ucp.jar file in the classpath of the applicationserver.

Pre-installation tasksComplete the tasks in this section before you begin the installation.

Reviewing the documentationBefore you begin the installation, review the related information available on the PDN:

l Platform Support Guide— Review the Platform Support Guide before you install the Pega 7Platform to verify that your database and application servers are supported.

l Pega 7 Release notes— Review the important information in the release notes before youcontinue.

Selecting a transport-layer encryptionmethodPegasystems recommends that you use a strong transport-layer encryption method (for example,Transport Layer Security 1.2) to secure Pega 7 Platform web applications. This encryption requires

Pega 7 Platform Installation Guide 13

Installation

Page 14: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

that you create and install transport-layer security and secure socket layer digital certificates on yourapplication server for the Pega 7 Platform. Before you continue, determine what transport-layerencryption method you will use. For more information, see the documentation for your applicationserver.

Configuring the Java Platform1. Set JAVA_HOME to the root directory of the JDK.

2. For Java 8, remove from the PATH any references to a Java shortcut.

Configuring storage and logging1. Allocate enough storage to accommodate debugging and other logging requirements.

2. Configure logging to avoid writing logs to the directory that contains the application server run-time components.

Synchronizing time zones, character encoding, and regionalsettingsVerify that your database server, application server, and the system on which you are running theinstallation use the same:

l Time zone

l Character encoding (UNICODE or EBCDIC)

l Regional settings/locale

Support for internationalizationTo support internationalization, configure the following settings. For more information, see yourOracle documentation:

Pega 7 Platform Installation Guide 14

Installation

Page 15: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

NLS_LENGTH_SEMANTICS=CHAR scope=both;NLS_CHARACTERSET=AL32UTF8;NLS_NCHAR_CHARACTERSET=AL16UTF16;

Configuring your database for localizationOracle supports two types of character semantics, BYTE and CHAR. CHAR supports internationalcharacter sets.

To support localization, set Oracle semantics to CHAR:

1. In your Oracle database, set the database character set to AL32UTF8. See the Oracledocumentation for more information.

2. Run the following command to set the initialization parameter NLS_LENGTH_SEMANTICS to CHARto handle multi-byte UNICODE characters:

ALTER SYSTEM SET NLS_LENGTH_SEMANTICS=CHAR scope=both;

3. Restart database services.

4. Configure the semantics settings:

a. On the database server, open the file SPFILEDBNAME.ora in the database directory.

b. Configure the settings as follows:

NLS_LENGTH_SEMANTICS=CHAR scope=both;NLS_CHARACTERSET=AL32UTF8;NLS_NCHAR_CHARACTERSET=AL16UTF16;

c. Save and close the file.

5. Set NLS_LENGTH_SEMANTICS to CHAR for the session to ensure that the database access tool doesnot override the default semantics setting for the session. For more information, see thedocumentation for your database access tool.

Pega 7 Platform Installation Guide 15

Installation

Page 16: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Setting up the database serverThis section describes how to prepare and configure your database server:

l Configure the database users.

l Create an empty database.

l Create Oracle tablespaces.

Verifying the database configurationBefore you begin preparing your database, confirm that your database server is installedand running. Verify that your database meets the requirements described below.

l Your system includes a supported version of the JDBC4 driver for your version of the database.

l If you are using Oracle 11g, do not use the UCP (Universal Connection Pool) feature in yourdatabase. Oracle BUG 8462305 causes a failure when an application tries to call a storedprocedure. This error causes the Pega 7 Platform to work incorrectly with a database that usesUCP.

Note: To determine if UCP is in use, check for the ucp.jar file in the classpath of the applicationserver.

l If you plan to use user-defined functions (UDF), support for UDF installed by the Pega 7 Platform isenabled.

l If you plan to use user-defined functions (UDF), Java is enabled in the database.

Configuring your Oracle databaseTo prepare your Oracle database server for use with the Pega 7 Platform, complete the followingsteps:

1. Create database user accounts.

2. Create an empty database.

3. Create the database schema.

4. Create the Oracle tablespaces.

Page 17: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Database usersThis guide refers to the following database users:l Deployment users — These users perform actions only during the installation.

Deployment user— The user who runs the installation. After the installation, you canremove this user.

Oracle users— Because Oracle has a one-to-one relationship between users and schemas, ifyou have a split-schema configuration, you must have separate users for the rules schema andthe data schema. The Oracle rules schema user might be associated with individual tablespacesor a common tablespace. Pegasystems recommends separate tablespaces for each user incritical SDLC environments. The Oracle rules schema user is only used to create the schema.

l Run-time users — These users perform actions on the Pega 7 Platform after the installation. In adual-user configuration, an Admin user is granted full privileges, and a Base user is granted asmaller subset. Pegasystems recommends the dual-user configuration:

Base user— The user who will run the Pega 7 Platform. Most run-time operations use theBase user and associated data source.

Admin user— An optional user provided to the Pega 7 Platform that is preferentially used bycertain features that require creating, modifying, or dropping database schema objects; forexample, System Management facilities and certain decisioning operations.

Pegasystems recommends that you use the dual-user configuration with separate Admin and Baseusers; however, you can create a single Base user with both sets of privileges. If there is noseparate Admin user, the Pega 7 Platform uses the Base user for all run-time operations.

Oracle user permissions

Use either an SQL command or the Oracle Enterprise Manager to create users with the privileges androles listed in this section. Because Oracle maintains a one-to-one relationship between schemas anddatabase users, creating users also creates the schemas.

All Oracle database users require unlimited tablespace. For information about creating the users withunlimited tablespace privileges, see Creating Oracle users from an SQL statement on page 21. Forinformation about using the Oracle Enterprise Manager to create users and assign privileges androles, see your Oracle documentation.

Deployment user privileges and roles

The Deployment user requires these privileges and roles for all configurations:

Pega 7 Platform Installation Guide 17

Setting up the database server

Page 18: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

l UNLIMITED TABLESPACE

l CREATE SESSION

l CREATE ANY TABLE

l ALTER ANY TABLE

l INSERT ANY TABLE WITH ADMIN OPTION

l SELECT ANY TABLE

l UPDATE ANY TABLE

l DELETE ANY TABLE

l CREATE ANY INDEX

l CREATE ANY PROCEDURE

l EXECUTE ANY PROCEDURE

l CREATE ANY VIEW

l CREATE ANY TYPE

l CREATE ANY TRIGGER

l ALTER ANY TRIGGER

l GRANT ANY OBJECT PRIVILEGE

l DROP ANY PROCEDURE

l DROP ANY TRIGGER

l DROP ANY TABLE

l DROP ANY VIEW

l DROP ANY INDEX

l ANALYZE ANY

l ANALYZE ANY DICTIONARY

Pega 7 Platform Installation Guide 18

Setting up the database server

Page 19: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

l SELECT_CATALOG_ROLE (This is a role, not a privilege.)

Note: For Industry applications, you must grant the SELECT_CATALOG_ROLE to the Deploymentor Admin user. Some Industry applications use triggers, so the user will need the SELECT_CATALOG_ROLE to drop triggers that read from the update cache and rule view tables. Thedeployment automatically drops custom triggers. Manually re-create custom triggers after youdeploy Pega 7 Platform.

l SESSIONS_PER_USER: When the installer begins to import rules, it opens multiple parallelconnections. Consider setting SESSIONS_PER_USER to UNLIMITED to avoid an error similar to thefollowing:

Exceeded simultaneous SESSIONS_PER_USER limit

Oracle schema users — requirements

Oracle schema users require only unlimited tablespace.

Run-time users — privileges and roles

The run-time users require different permissions depending on whether or not you have a dual-userconfiguration.

Note: The run-time users of the rules and data schemas can share the same tablespace. If youcreate separate tablespaces for the rules schema and the data schema users, base the size of thetablespace on the estimated number of work objects in the application.

Dual-user configuration — Admin and Base users

In a dual-user configuration, grant these privileges and roles:

l Admin user

UNLIMITED TABLESPACE

CREATE SESSION

CREATE ANY TABLE

ALTER ANY TABLE

INSERT ANY TABLE WITH ADMIN OPTION

SELECT ANY TABLE

Pega 7 Platform Installation Guide 19

Setting up the database server

Page 20: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

UPDATE ANY TABLE

DELETE ANY TABLE

CREATE ANY INDEX

CREATE ANY PROCEDURE

EXECUTE ANY PROCEDURE

CREATE ANY VIEW

CREATE ANY TYPE

CREATE ANY TRIGGER

ALTER ANY TRIGGER

GRANT ANY OBJECT PRIVILEGE

DROP ANY PROCEDURE

DROP ANY TRIGGER

DROP ANY TABLE

DROP ANY VIEW

DROP ANY INDEX

ANALYZE ANY

ANALYZE ANY DICTIONARY

SELECT_CATALOG_ROLE (This is a role, not a privilege.)

l Base user—The Base user is the DATA schema user in this configuration.

Basic read and write access to data and rules tables including rules resolution.

UNLIMITED TABLESPACE

CREATE SESSION

Pega 7 Platform Installation Guide 20

Setting up the database server

Page 21: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Single-user configuration— Base user only

Pegasystems recommends that you create an Admin user separate from the Base user; however, ifyou opt for a single Base user, grant these permissions to the Base user:

l UNLIMITED TABLESPACE

l CREATE SESSION

l CREATE TABLE

l CREATE PROCEDURE

l CREATE VIEW

l CREATE TYPE

l CREATE TRIGGER

Creating Oracle users from an SQL statement

Follow these instructions to use SQL statements to create users. For information about using theOracle Enterprise Manager to create users and assign privileges and roles, see your Oracledocumentation.

1. On the database server, run the following SQL statement to create users and grant the usersunlimited access to the default USERS tablespace.

ALTER USER <user> DEFAULT TABLESPACE USERS QUOTA UNLIMITED ONUSERS;

2. Repeat step 1 for the remaining users:

l Oracle schema users:For single schemas, create one Oracle schema user

For split-schemas, create separate Oracle rules and data schema users.

l Deployment user

l Base user

l Admin user (for dual-user configurations)

Creating Oracle users by using the Enterprise Manager

Follow these steps to create a user:

Pega 7 Platform Installation Guide 21

Setting up the database server

Page 22: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

1. Log in to the Enterprise Manager using the URL provided by the Database Configuration Assistant.The URL is usually in the form of

https://host:5501/em

2. Enter the following credentials and click Login.

User name = sys

Password = password

3. Select Security > Users.

4. Select Actions > Create User.

Accept the other defaults.

5. On the User Account step, enter the name and password for the user you are creating.

6. Click the right arrow.

a. If you created a dedicated tablespace, choose that tablespace from the menu.

b. Accept the other defaults.

7. Click the right arrow.

8. Select the privileges for this user and click OK.

9. Repeat these steps to configure the remaining users.

Creating an empty databaseCreate a database with a minimum of 5 GB for the user tablespace and, if possible, allow thedatabase to grow. This minimum size allows you to load the initial rulebase and do simpledevelopment. Monitor the database use carefully. As development begins, the size of the databasewill need to increase significantly, depending on your use of the Pega 7 Platform and the number ofusers.

Use the Oracle Database Configuration Assistant to create a new Oracle database. Consult yourdatabase administrator to determine the best database type for your application. For moreinformation about the Oracle Database Configuration Assistant, see your Oracle documentation.Make note of the EM Database Express URL. You need the URL when you configure the Pega 7Platform.

Pega 7 Platform Installation Guide 22

Setting up the database server

Page 23: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Creating Oracle tablespacesThe users of the rules schema and the data schema can share the same tablespace. If you createseparate tablespaces, base the size of the data schema user tablespace on the estimated number ofwork objects in the application.

The Tablespace Creation Wizard, part of the Oracle Enterprise Manager, provides a guided approachto configuring the tablespace.

1. Log in to the Enterprise Manager by using the URL provided by the Database ConfigurationAssistant. The URL is usually in the form of

https://host:5501/em

The Enterprise Manager login screen opens.

2. Enter the following credentials and click Login.

User Name = sys

Password = password

3. Select Storage > Tablespaces.

4. Select Actions > Create.

In theName field, enter the name of the tablespace.

5. Click .

l Increase the file size to 10 GB.

l Accept the other defaults.

6. Click OK. The tool generates and executes the SQL.

7. Optional: For split-schema configurations with rules and data schema in separate tablespace,repeat steps 4 - 6 by choosing the appropriate values for the data tablespace. The size of the datatablespace depends on the results of the site-dependent analysis performed by your databaseadministrator.

Pega 7 Platform Installation Guide 23

Setting up the database server

Page 24: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Installing the Pega 7 PlatformUse one of these methods to install the Pega 7 Platform:

l UI tool — The Installation and Upgrade Assistant is a Java-based UI tool that sets up the Pega 7Platform rules schema in the database and loads the Pega 7 Platform rules.

l Command-line script— A command-line script automates the installation of the Pega 7Platform in headless environments.

These methods use a batch process to load the rulebase. Because of the large number of rules andother data objects that must be loaded, Pegasystems strongly encourages you to install on the samenetwork as the database server. If this is not possible, install on a computer with fast, direct access tothe database server. Do not attempt to install on a virtual private network (VPN) or a multi-hop widearea network (WAN).

Preparing to installFollow these steps to extract and validate the installation files:

1. Copy the compressed distribution image to the computer that you will use to run the installation.Extract the contents of the compressed file into an empty directory.

If you are installing the software from a DVD, copy the contents of the DVD to an empty directory.

2. Verify the contents of the extracted distribution image.

The Pega-image\checksum directory provides an MD5 checksum for each the file in thedistribution image. To verify that the files downloaded and uncompressed correctly, calculate achecksum using the Jacksum tool at www.jonelo.de/java/jacksum/.For example, if you uncompressed the distribution image to Pega-image, enter the followingcommand:

java -jar jacksum.jar -m -a md5 -r -p -O outputFile.md5 Pega-image

Compare outputFile.md5 to the md5 file located in Pega-image\.checksum. The checksumvalues should be identical.

3. Choose the installation method: IUA or command line.

Page 25: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Running the Installation and UpgradeAssistant (IUA)Because of the large volume of data, run the IUA on the same network as the database server. If thisis not possible, run the tool on a system with fast, direct access to the database server. TheDeployment user performs these steps.

Note: The Pega 7 Platform writes command-line output to a file in the Pega-image\scripts\logsdirectory.

The installation can last for several hours and the time can vary widely based on network proximityto the database server.

To run the IUA:

1. Double-click the PRPC_Setup.jar file to start the IUA.

Note: If JAR files are not associated with Java commands on your system, start the IUA from thecommand line. Navigate to the directory containing the PRPC_Setup.jar file, and type java -jarPRPC_Setup.jar.

The IUA loads and the Pega icon is displayed in your task bar.

2. Click Next to display the license agreement.

3. Review the license agreement and click Accept.

4. On the Installer Mode screen, choose Installation and click Next.

5. Choose your database type and click Next.

6. Choose the product edition and click Next.

l Standard Edition — Install a new instance of Pega 7.2.2.

l Multitenancy Edition — Install Pega 7.2.2 in a specialized mode designed to supportsoftware-as-a-service (SaaS) run-time environments. For more information about multitenacy,see the Pega 7 Platform Multitenancy Administration Guide.

Pega 7 Platform Installation Guide 25

Installing the Pega 7 Platform

Page 26: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Note: Upgrading and updating from one edition to another is not supported. If you install oneedition and later decide to use a different edition, you must drop and re-create the database orcreate a new database. The schema DDLs for the two editions are not compatible.

7. Configure the database connection. The JDBC drivers allow the Pega 7 Platform application tocommunicate with the database.

Note: Some of the fields on the Database Connection screen are pre-populated based on thetype of database you selected. If you edit these or any other fields on this screen, and then laterdecide to change the database type, the IUA might not populate the fields correctly. If this occurs,enter the correct field values as documented below, or exit and rerun the IUA to select theintended database type.

l JDBC Driver Class Name— Verify that the pre-populated value is accurate:

oracle.jdbc.OracleDriver

l JDBC Driver JAR Files— Click Select Jar to browse to the appropriate driver files for yourdatabase type and version. For a list of supported drivers, see the Pega 7 Platform SupportGuide.

l Database JDBC URL— Verify that the pre-populated value is accurate. For information aboutURLs, see Obtaining database connection information on page 54. Replace items in italics withthe values for your system:

Use one of the following formats:jdbc:oracle:thin:@localhost:1521/service-name

jdbc:oracle:thin:@localhost:1521:SID

l Database Username and Password — Enter the user name and password that youcreated 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.

8. 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.

9. Optional: Specify whether you will have your database administrator manually apply the DDL

Pega 7 Platform Installation Guide 26

Installing the Pega 7 Platform

Page 27: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

changes to the schema. These changes include the user-defined functions (UDF) supplied byPegasystems. By default, the IUA generates and applies the schema changes to your database.

l To generate and apply the DDL outside the IUA, select Bypass Automatic DDL Applicationand continue the installation. After you complete the installation, manually generate and applythe DDL and UDF. For more information, see Optional: Generating and applying DDL andAppendix D — Installing user-defined functions on page 57.

l To have the Installation and Upgrade Assistant automatically apply the DDL changes and theUDF, clear Bypass Automatic DDL Application.

10. Optional. Specify whether to install in secured mode. Deploying the Pega 7 Platform in securedmode requires an administrator to enable new out-of-the-box operators. The administrator andnew out-of-the-box operators must change their passwords when they first log in. For moreinformation, see Appendix E — Secured mode on page 59.

Verify that Secure installed User IDs is checked and click Next.

11. Enter the system name and production level and click Next:

l System Name — Enter a name for your Pega 7 Platform system. To find the system name,navigate to System > Settings > System Name.

l Production Level — Enter a production level. The production level affects many securityfeatures of your system. Both the system name and production level can be changed after thesystem is running. Depending on the type of installation, choose:

5 for a system that will be used in production

4 for a preproduction system

3 for a test system

2 for a development system

1 for an experimental system

The production level can be updated from the App Explorer. Enter Data-Admin-System in thesearch field and select SysAdmin > Class > Data-Admin-System to open your system.

12. Click Start to begin loading the rulebase.

Pega 7 Platform Installation Guide 27

Installing the Pega 7 Platform

Page 28: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Installation logs display in the log window and are also stored in the Pega-image\scripts\logsdirectory.

During the installation, the log window might appear inactive when the IUA is processing largerfiles.

13. Click Back to return to the previous screen, and then click Exit to close the IUA.

Editing the setupDatabase.properties fileSkip this section if your installation meets all of the following criteria:

l You will use the Installation and Upgrade Assistant to install.

l You will allow the installation to automatically apply the schema changes and do not need tocreate a DDL file.

l You will not enable Kerberos authentication.

If your installation does not meet all of these criteria, follow the steps in this section to edit thesetupDatabase.properties file to configure scripts to do any or all of the following tasks:

l Install the Pega 7 Platform. Use the install.bat or install.sh script.

l Enable Kerberos authentication. Use the install.bat or install.sh script.

l Generate a DDL file of schema changes. Use the generateddl.bat or generateddl.sh script.You can use the generateddl.bat or generateddl.sh script regardless of whether you use theIUA or the command-line script to install.

l Generate user-defined functions. Use the generateudf.bat or generateudf.sh script.

l Migrate schemas. Use themigrate.bat ormigrate.sh script.

To edit the setupDatabase.properties file:

1. Open the setupDatabase.properties file in the scripts directory of your distribution image:Pega-image\scripts\setupDatabase.properties

2. Specify the properties for your system. For each property, add the appropriate value after theequal sign. See Database connection properties.

3. Save and close the file.

Pega 7 Platform Installation Guide 28

Installing the Pega 7 Platform

Page 29: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Database connection propertiesThese properties specify the settings needed to connect to the database:

l The script arguments column lists the arguments for the command-line scripts.

l The Property column lists the corresponding property in the setupDatabase.properties file.

Scriptargument

Property Description

--driverJar pega.jdbc.driver.jar Path and file name of the JDBC driver

--driverClass pega.jdbc.driver.class Class of the JDBC driver

--dbType pega.database.type Database vendor type. Enter:

oracledate

--dburl pega.jdbc.url The database JDBC URL. For more information, see Obtainingdatabase connection information on page 54

--dbuser pega.jdbc.username User name of the Deployment user.

--dbpassword pega.jdbc.password Password of the Deployment user. For encrypted passwords, leavethis blank.

no scriptargumentavailable

pega.platform.userids.issecure Specifies whether the Pega 7 Platform is installed in securedmode.The default is true. For more information, see Appendix E — Securedmode on page 59.

l Set to true to install in securedmode. Deploying the Pega 7Platform in securedmode requires an administrator to enablenew out-of-the-box operators. The administrator and new out-of-the-box operators must change their passwords when they firstlog in

l Set to false to disable securedmode. If you disable securedmode,unauthorized users might use the default passwords to gainadministrator access to your system.

--dbSchema rules.schema.name In a single schema environment, sets rules schema and data schema.

In a split-schema configuration, sets the rules schema only.

--dbDataSchema

data.schema.name For split-schema configurations only, sets the data schema name.

--tempdir user.temp.dir Optional: The location of the temp directory. Set this location to anyaccessible location, for example, C:\TEMP.

--mtSystem multitenant.system Specifies whether this a multitenant system.

--connProperties

jdbc.custom.connection.properties Optional: Semicolon-delimited list of custom JDBC properties.

(for example: prop1=value;prop2=value;prop3=value)

Pega 7 Platform Installation Guide 29

Installing the Pega 7 Platform

Page 30: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Optional: Enabling Kerberos authenticationKerberos is a computer network authentication protocol that allows nodes communicating over anon-secure network to prove their identity to one another in a secure manner.

To enable Kerberos for authentication, you must use the command line to install the Pega 7 Platform:

1. Edit the setupDatabase.properties file.

a. Open the setupDatabase.properties file in the scripts directory of your distribution image:Pega-image\scripts\setupDatabase.properties

b. In the “Uncomment this property section” of the file, uncomment the custom property:

jdbc.custom.connection.properties

c. Provide the correct parameters as semicolon-delimited name/value pairs. The specificparameters depend on your security infrastructure, for example:

jdbc.custom.connection.properties=parameter1=value1;parameter2=value2;parameter3=value3;jdbc.custom.connection.properties=integratedSecurity=true;

d. Comment out all the user name and password properties so that they appear as follows:# pega.jdbc.username db username# pega.jdbc.password db password[lines removed here]# pega.jdbc.username=ADMIN# pega.jdbc.password=ADMIN

e. Save and close the file.

2. Configure your database to enable Kerberos functionality. This might include additional vendor-specific JDBC driver configuration, or other setup procedures. See the Oracle documentation fordetails.

3. Continue at Installing from the command line.

Installing from the command lineBecause of the large volume of data, run the command-line script on the same network as thedatabase server. If this is not possible, run the script on a system with fast, direct access to the

Pega 7 Platform Installation Guide 30

Installing the Pega 7 Platform

Page 31: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

database server. To use the install.bat or install.sh script, first configure thesetupDatabase.properties file.

Note: If no additional arguments are passed to the script, the script defaults to the values of theproperties set in the setupDatabase.properties file. See Editing thesetupDatabase.properties file.

1. If you have not done so already, edit the setupDatabase.properties file.

a. Open the setupDatabase.properties file in the scripts directory of your distribution image:Pega-image\scripts\setupDatabase.properties

b. Configure the connection properties. For more information about parameter values, seeProperties file parameters.

# Connection Informationpega.jdbc.driver.jar=/path-to-the-database-JAR-file/DRIVER.jarpega.jdbc.driver.class=database driver classpega.database.type=database vendor typepega.jdbc.url=URL of the databasepega.jdbc.username=Deployment usernamepega.jdbc.password=passwordpega.rules.schema=rules-schema-namepega.data.schema=data-schema-name

c. Save and close the file.

2. Open a command prompt and navigate to the scripts directory.

3. Type install.bat or ./install.sh to run the script.

Installing the rulebase can take several hours, depending on the proximity of the database to thesystem running the installation script. When the installation is complete, you see a BUILDSUCCESSFUL message.

Note: The Pega 7 Platform writes command-line output to a file in the Pega-image\scripts\logsdirectory.

Pega 7 Platform Installation Guide 31

Installing the Pega 7 Platform

Page 32: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Setting up the application serverThis section describes how to configure your Apache Tomcat application server:

l Ensure that your application server meets the prerequisites.

l Configure the application server.

l Deploy the Pega 7 Platform applications.

Preparing to configure the applicationserverComplete these steps before you configure the application server:

1. Set your JAVA_HOME environment variable to point to the Java JDK directory, for example:JAVA_HOME=C:\Program Files\Java\jdkx.x.x_x\

2. Ensure that the JDBC.jar file is accessible to Tomcat by saving it to the lib directory on yourapplication server.

3. Ensure that your operating system references a common time standard such as the one availableat www.time.gov.

l On UNIX, this is the Network Time Protocol daemon, ntpd.

l On Windows, you can set a similar service through the clock settings in the Windows ControlPanel or task bar.

See the documentation for your specific hardware operating system for information about settingthis critical service.

4. Ensure that the following ports are open and available:

l Search — One TCP port in the range 9300-9399 (the default is 9300). This port is used forinternal node-to-node communication only, and should not be externally accessible.

l Cluster communication — Leave open the port range 5701-5800. By default, the system beginswith port 5701, and then looks for the next port in the sequence (5702, followed by 5703 and

Page 33: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

so on). To override the default port range, set the value of cluster/hazelcast/ports in theprconfig.xml file.

Note: The number of available ports in this range must be greater than or equal to the greatestnumber of JVMs on any one node in the cluster. For example, if three JVMs are on one node, andseven JVMs on another node, at least seven ports must be available.

5. Obtain the following information from your database administrator to determine the databaseconnection URL:

l Connection method — Service or SID

l Host name

l Port number

l Service or SID name

6. Add a headless AWT setting to the Java options in the configuration file that is passed to Java toallow the Pega 7 Platform to render and display graphics:

a. Open the configuration file that is passed to Java at startup. The specific file name and locationis site-specific.

b. Add the following JVM option:

-Djava.awt.headless=true

c. Save and close the file.

Data source resources, data source entries, and defaultschema entriesThe application server configuration defines the required data source resources, data source entries,and default schema entries:

l Data source resources — Data source resources define the Pega 7 Platform database connectioninformation. The number of data source resources depends on whether you have a single-user ordual-user configuration:

All systems require one data source resource for the Base user.

Dual-user configurations also require a second data source resource for the Admin user.

Pega 7 Platform Installation Guide 33

Setting up the application server

Page 34: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

l Data source entries — Data source entries specify which data source resource to use for databaseoperations in each schema. For dual-user environments, you must explicitly define two additionaldata source entries for the Admin user:

Admin data source entry for the rules schema

Admin data source entry for the data schema

l Default schema entries — Every system requires two entries that define the default schemanames:

Default rules schema, for example, PegaRULES.

Default data schema, for example, PegaDATA. For single-schema configurations, the defaultdata schema name is the same as the default rules schema name.

Configuring the application serverThese procedures describe a typical method for setting configuration properties in a basicinstallation.

Configuring Tomcat by editing the context.xml fileConfigure your Tomcat application server by editing the context.xml file.

1. Open the context.xml file and locate the <context> element. You will add all Pega 7 Platformentries to the <context> element.

2. Add data source resources. The parameter names differ based on your version of Tomcat.

l Tomcat 7.x:

a. Insert the following entry to add a data source resource for the Base user. Substitute yourspecific values for the host, port, database or service name, user name, password, andconnection URL. For more information about connection URL strings, see Obtainingdatabase connection information on page 54 Enter either the service name URL or theSID URL.

Pega 7 Platform Installation Guide 34

Setting up the application server

Page 35: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

<Resource name="jdbc/PegaRULES"auth="Container"type="javax.sql.DataSource"driverClassName="oracle.jdbc.OracleDriver"url="jdbc:oracle:thin:@[host]:[port]/[service-name]"url="jdbc:oracle:thin:@[host]:[port]:[SID]"username="Base user name"password="password"maxActive="100"maxIdle="30"maxWait="10000"

/>

b. Optional: For dual-user configurations, insert the following entry to add a data sourceresource for the Admin user. Enter either the service name URL or the SID URL.

<Resource name="jdbc/AdminPegaRULES"auth="Container"type="javax.sql.DataSource"driverClassName="oracle.jdbc.OracleDriver"url="jdbc:oracle:thin:@[host]:[port]/[service-name]"url="jdbc:oracle:thin:@[host]:[port]:[SID]"username="Admin user name"password="password"maxActive="10"maxIdle="5"maxWait="5000"

/>

l Tomcat 8.x:

a. Insert the following entry to add a data source resource for the Base user. Substitute yourspecific values for the host, port, database or service name, user name, password, andconnection URL. For more information about connection URL strings, see Obtainingdatabase connection information on page 54Enter either the service name URL or theSID URL.

<Resource name="jdbc/PegaRULES"auth="Container"type="javax.sql.DataSource"driverClassName="oracle.jdbc.OracleDriver"url="jdbc:oracle:thin:@[host]:[port]/[service-name]"url="jdbc:oracle:thin:@[host]:[port]:[SID]"

Pega 7 Platform Installation Guide 35

Setting up the application server

Page 36: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

username="Base user name"password="password"maxTotal="100"maxIdle="30"maxWaitMillis="10000"

/>

b. Optional: For dual-user configurations, insert the following entry to add a data sourceresource for the Admin user. Enter either the service name URL or the SID URL.

<Resource name="jdbc/AdminPegaRULES"auth="Container"type="javax.sql.DataSource"driverClassName="oracle.jdbc.OracleDriver"url="jdbc:oracle:thin:@[host]:[port]/[service-name]"url="jdbc:oracle:thin:@[host]:[port]:[SID]"username="Admin user name"password="password"maxTotal="10"maxIdle="5"maxWaitMillis="5000"

/>

3. Insert the following data source entry to specify the Admin data source resource for the dataschema:

<Environment name="prconfig/database/databases/PegaRULES/dataSourceAdmin"value="java:comp/env/jdbc/AdminPegaRULES"type="java.lang.String"

/>

4. Insert the following data source entry to specify the Admin data source resource for the rulesschema:

<Environment name="prconfig/database/databases/PegaDATA/dataSourceAdmin"value="java:comp/env/jdbc/AdminPegaRULES"type="java.lang.String"

/>

5. Insert the following entry to specify the rules schema name. Replace RULES with your rulesschema name.

Pega 7 Platform Installation Guide 36

Setting up the application server

Page 37: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

<Environmentname="prconfig/database/databases/PegaRULES/defaultSchema"

value="RULES"type="java.lang.String"

/>

6. Insert the following entry to specify the data schema name. Replace DATA with your data schemaname.

Note: For single-schema configurations, use the rules schema name for both RULES and DATA.

<Environmentname="prconfig/database/databases/PegaDATA/defaultSchema"

value="DATA"type="java.lang.String"

/>

7. Uncomment the Manager pathname parameter to turn off session persistence. When you aredone, the parameter looks like the following example:

<!-- Uncomment this to disable session persistence across Tomcatrestarts --><Manager pathname="" />

8. Insert the following entry anywhere in the body of the file to specify the temporary directory.Replace path with the entire path to your temporary directory:

<Environment name="url/initialization/explicittempdir"value="path"type="java.lang.String"

/>

Note: Each Pega 7 Platform instance must have its own temporary directory.

9. Save and close the context.xml file.

10. Start the server to make these changes effective.

Configuring roles and usersAdd the required roles, users, and passwords to the tomcat-users.xml file:

Pega 7 Platform Installation Guide 37

Setting up the application server

Page 38: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

1. Open the tomcat-users.xml file in the Tomcat_home/conf/ directory.

2. Add the following lines anywhere in the file body:<role rolename="admin-gui"/><role rolename="manager-gui"/><role rolename="PegaDiagnosticUser"/><user username="admin" password="admin" roles="admin-gui,manager-gui,PegaDiagnosticUser"/>

Note: The Pega 7 Platform System Management application (SMA) requires thePegaDiagnosticUser role.

3. Save and close the file.

JVMmemory parametersSet the JVM memory options to increase the amount of system memory allocated to the applicationserver running the Pega 7 Platform.

1. Determine the memory parameter values. Pegasystems recommends the following settings:

l Initial Heap Size (Xms) — Between 4 GB - 8 GB, based on monitoring of memory usage andgarbage collection frequency

l Maximum Heap Size (Xmx) — Between 4 GB - 8 GB or larger, depending on your systemconfiguration. For more information, see Application server memory requirements.

l Maximum memory size:Java 7 with Oracle JVM: Set both PermSize and MaxPermSize:

PermSize (-XX:PermSize) — 512 MB

MaxPermSize (-XX:MaxPermSize) — 1024 MB

Java 7 with IBM JVM: Set MaxMetaspaceSizeto 1024 MB.

Java 8: Set MaxMetaspaceSizeto 1024 MB.

If the server does not have enough memory allocated to run the Pega 7 Platform, the system canhang without an error message. The correct memory settings depend on your server hardware,the number of other applications, and the number of users on the server, and might be larger thanthese recommendations.

2. Set the memory parameters. The method depends on how you installed Tomcat:

Pega 7 Platform Installation Guide 38

Setting up the application server

Page 39: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

l If you installed Tomcat by expanding the compressed file:

a. Create a setenv.bat file on Windows or a setenv.sh file in UNIX in Tomcat’s bin directory.

b. Use the following examples as a guide, and substitute your values for those given:

On Windows — setenv.bat

Java 7

set JAVA_OPTS=-Xms4096m –Xmx8192m –XX:PermSize=512m–XX:MaxPermSize=1024m

Java 8

set JAVA_OPTS=-Xms4096m –Xmx8192m –XX:MaxMetaspaceSize=1024m

On UNIX — setenv.sh

Java 7

JAVA_OPTS="-Xms4096m –Xmx8192m –XX:PermSize=512m–XX:MaxPermSize=1024m"

Java 8

l

JAVA_OPTS="-Xms4096m –Xmx8192m –XX:MaxMetaspaceSize=1024m" If

you installed Tomcat as a Windows service, use the Tomcat utility to set the JVM options. Enter

a command similar to the following. This is an example for Java 7.

tomcat7.exe //US//Tomcat7 ++JvmOptions=-Xms4096m–Xmx8192m;-XX:PermSize=512m;- XX:MaxPermSize=1024m

3. Optional: For systems that do not require Transport Layer Security (TLS) to deploy the SystemManagement Application on a different server than the Pega 7 Platform application, modify theJAVA_OPTS environment variable to enable remote operation of the System ManagementApplication. For more information about modifying the JAVA_OPTS environment variable, see theApache Tomcat documentation.

Deploying the Pega 7 Platform applicationarchivesAfter you configure your application server, deploy the application archive files. This includes:

Pega 7 Platform Installation Guide 39

Setting up the application server

Page 40: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Pega 7 Platform application File namePega 7 Platform prweb.war or

SystemManagement prsysmgmt.war

Help prhelp.war

Note: When you restart the server after the applications are deployed, the first node you bring upbecomes the default search node.

The Pega 7 Platform is available both as an EAR file, and a WAR file, prweb.war. Pegasystemsrecommends deploying the EAR file for all new deployments. You can successfully deploy the Pega 7Platform application WAR file on the application server but if you use the EAR file, you can addadvanced J2EE features as your application grows or when you migrate to a production environment.

Important: Do not install both the EAR and WAR files.

To deploy the archives:

1. Copy these files from the Pega-image\archive\ directory to the Tomcat_home\webapps\ directory:l prweb.war

l prsysmgmt.war

l prhelp.war

2. Restart the application server.

3. After the applications are deployed, shut down the server and delete the prweb.war file from theTomcat_home\webapps\ directory to prevent Tomcat from redeploying the application each timethe server restarts.

Pega 7 Platform Installation Guide 40

Setting up the application server

Page 41: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Post-deployment configurationThis section describes the post-deployment activities that are performed in the system after you havecompleted the setup and configuration of your Apache Tomcat application server and deployed thearchives.

l Starting applications

l Logging in to the Pega 7 Platform and changing your password

l Enabling help and System Administration applications

l Configuring Directed Web Access

l Configuring a load balancer to log XFF headers

l Configuring search index host node settings

l Changing the default log path

l Installing Industry applications

Starting the Pega 7 Platform applicationsEnsure that the application server is running and start the prsysmgmt, prweb, and prhelpapplications.

Logging in to the Pega 7 Platform andchanging the administrator passwordTo test the installation and index the rules, log in to the Pega 7 Platform web application.

1. Navigate to the PRServlet URL, replacing the server and port values with your specific values.

http://server:port/prweb/PRServlet

2. Use the following credentials to log in:

Page 42: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

l User ID — [email protected]

l Password — install

After logging in, the Pega 7 Platform indexes the rules in the system to support full-text search.During the index process, there might be a delay in the responsiveness of the Pega 7 Platformuser interface. The process usually takes from 10 to 15 minutes to complete depending on yoursystem configuration.

If the index process ends without generating an error message, the installation is successful.

3. Immediately after the index process completes, change the administrator password. Because thedefault password is widely published, it is important to protect your system after an installation bychanging the password. The new password must be at least 10 characters long.

If the system does not prompt you to change your password, follow these steps:

a. From theOperator Menu located to the right of the Designer Studio header, select theProfile.

b. Click Change Password.

c. Verify the Current Password, and then enter and confirm theNew Password.

d. Click Save.

Enabling online help and the SystemManagement ApplicationThe online help and the System Management Application are accessed through a URL and can bedeployed to any application server.

To enable these applications:

1. Click Designer Studio > System > Settings > URLs.

2. In theOnline 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:

Pega 7 Platform Installation Guide 42

Post-deployment configuration

Page 43: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

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.

Configuring Directed Web AccessA Directed Web Access (DWA) address allows you to grant one-time access to external users to enablethem to process an assignment in your application. When you grant the access, the Pega 7 Platformsends an email to the external user; this email includes a URL to access the application and canidentify a proxy server.

To configure the URL:

1. Click Designer Studio > System > Settings > URLs.

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.

4. Log out and log back in to Designer Studio for these changes to take effect.

Configuring search index host nodesettingsThe Pega 7 Platform supports full-text search for rules, data instances, and work objects. By default,search indexing is enabled and indexing starts when you start the application server after installingthe Pega 7 Platform. The first node that starts after installation becomes the default initial searchnode. The default index directory is PegaSearchIndex in your temporary directory.

After the search indexes are completely built, you can change the default settings. Do not stop orbring down the default node until the search indexes build completely. The Search Landing Pagedisplays the status.

Follow these steps to configure the search index host node settings:

1. Check your directory sizes. Ensure that the directories for all Elasticsearch host nodes havesufficient free space to hold the Elasticsearch indexes.

Pega 7 Platform Installation Guide 43

Post-deployment configuration

Page 44: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

2. Open the Designer Studio > System > Settings> Search landing page and expand SearchIndex Host Node Setting.

3. Specify one node to set as the Host Node. If necessary, delete all but one node. This is the node onwhich 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 might cause duplicate index builds andcompromise 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.

5. Expand Automated Search Alerts, and enable Automatically Monitor Files.

6. Click Submit to save the settings.

7. After the first indexing is complete, add any needed additional host nodes. The system replicatesthe indexes on the new nodes.

Note: Configure a minimum of two Elasticsearch host nodes. Pegasystems recommends that youconfigure a minimum of three nodes for maximum fault tolerance. You might need more thanthree nodes depending on the size of your cluster.

8. To enable communication between Elasticsearch host nodes in the cluster, open a TCP port in therange 9300-9399 on each node. (By default, Elasticsearch uses port 9300.) These ports are usedfor internal node-to-node communication only, and should not be externally accessible.

Optional: Configuring the Pega 7 Platformto return absolute URLsIn some scenarios, you might want the Pega 7 Platform to return an absolute URL instead of arelative URL. Pega 7 Platform uses XF* headers to dynamically formulate absolute URLs withoutstatic configuration, when deployed behind a load balancer or reverse proxy.

Follow these steps to log the address of the Pega 7 Platform instance in XF* HTTP headers:

1. Enable XF* logging on your load balancer. See your load balancer documentation for informationabout how to enable logging.

2. Ensure that the web application context path of the load balancer and the Pega 7 Platform is thesame.

Pega 7 Platform Installation Guide 44

Post-deployment configuration

Page 45: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

3. Open the configuration console or file of your load balancer or reverse proxy:

l For Apache: open the http-vhosts.conf file.

l For F5 BIG-IP: open the bigip.conf file.

4. Update the configuration file with the following XML code:

The following configuration settings are for reference only. The settings specified in theprconfig.xml file take precedence over the settings specified here.

l For Apache:

<VirtualHost *:80>ServerName your_server_nameProxyRequests off<Proxy *>

Order deny,allowAllow from all

</Proxy><Location "/prweb">

ProxyPass http://your_server_name:port /prweb/</Location>RequestHeader set X-Forwarded-Proto "http"

</VirtualHost>

l For F5 BIG-IP:

when HTTP_REQUEST_SEND{clientside

{HTTP::header insert X-Forwarded-Host [HTTP::host]HTTP::header insert X-Forwarded-Proto http

}}

5. Optional: If your load balancer or reverse proxy does not include the port number in the serverURL, insert a port number (X-Forwarded-Port) in the HTTP header.

Changing the default path to the Pega 7Platform logsThe default path for Pega 7 Platform logs is the work\Catalina directory, for example:

Pega 7 Platform Installation Guide 45

Post-deployment configuration

Page 46: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Tomcat-home\work\Catalina\localhost\prweb

Since this directory might 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 followingdirectory:

Tomcat-home\webapps\prweb\WEB-INF\classes

Note: Be sure to back up theprlogging.xmlfile before you edit the file.

Locate the appender definitions containing the @{web.tmpdir}"string in theprlogging.xml file andchange the FileNamePattern values to the directory that you want to use.

Changing the default path

1. Locate the PEGA appender, for the PegaRules.log:

<appender name="PEGA"class="com.pega.pegarules.priv.util.FileAppenderPega"><param name="FileNamePattern" value="'@{web.tmpdir}/PegaRULES-'yyyy-MMM-dd'.log'"/><layout class="com.pega.apache.log4j.PatternLayout"><param name="ConversionPattern" value="%d [%20.20t] [%10.10X{pegathread}] [%20.20X{tenantid}][%20.20X{app}] (%30.30c{3}) %-5p %X{stack} %X{userid} - %m%n"/>"/></layout></appender>

2. Create the directory to host the logs and change the FileNamePattern parameter to use the newdirectory:

<param name="FileNamePattern" value="'logs/PegaRULES-'yyyy-MMM-dd'.log'"/>

Note: This change uses a relative path. The logs directory is relative to the bin directory inTomcat, so the change above would result in the file being created in Tomcat-home\work\logs.This directory must already exist with write permissions for the user running Tomcat; thePega 7Platform will not create the directory.

3. Restart the Pega 7 Platform to make the changes.

4. Check the directory to confirm that the log files have been created in the new location.

Pega 7 Platform Installation Guide 46

Post-deployment configuration

Page 47: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Resizing the Pega 7 Platform log filesThe initial log file size is 50 MB. After the installation is complete, increase the size of the log files. Thespecific size will depend on your environment and the size of your application. For more information,see PDN > Support.

Resizing the databaseMonitor the database use carefully. As development begins, the size of the database will need toincrease significantly, depending on your use of the Pega 7 Platform and the number of users.

Installing Industry applicationsInstall any Industry applications now. Follow the instructions in the Installation Guide for yourIndustry applications.

Caution: If you plan to install Industry applications on top of the Pega 7 Platform, grant thedatabase user permissions, including SELECT_CATALOG_ROLE as described in Database users.Some Industry applications use triggers. During startup, the Pega 7 Platform checks for triggers thatreference the updates cache and rule view tables; if these triggers exist, the Pega 7 Platform attemptsto drop them. If the user does not have the correct permissions, the Pega 7 Platform cannot drop thetriggers and fails to start up.

If you installed the Industry applications before you deployed the Pega 7 Platform, the Pega 7Platform automatically drops the triggers and this error does not occur.

Enabling server-side screen captures forapplication documentsRegardless of which application server platform you use, you must set up a Tomcat server to supporttaking and storing screen captures on a server rather than on a client. By taking and storing screencaptures on a server, you avoid client-side limitations, such as browser incompatibilities or clientsoftware requirements.

Tip: As a best practice, virtually install Tomcat and deploy the prScreenShot.war file on the sameserver that is running the Pega 7 Platform. Otherwise, use a standalone Linux or Windows server. Ifyou use a Linux server, you must include the following components:

Pega 7 Platform Installation Guide 47

Post-deployment configuration

Page 48: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

l fontconfig

l freetype

l libfreetype.so.6

l libfontconfig.so.1

l libstdc++.so.6

You can include screen captures in an application document that is generated by the DocumentApplication tool. Screen captures provide stakeholders with a realistic picture of an application's userinterface. Install a PhantomJS REST server to include screen captures in an application document.

1. Download the following WAR file: Pega_DistributionImage\Additional_Products\PhantomJS\prScreenShot.war

2. Deploy the WAR file on a Tomcat server.

3. Update the tomcat-users.xml file to add the following role and user. This file is located at\apache-tomcat-XX\conf\ tomcat-users.xml.

l Set the role:

<role rolename="pegascreencapture" />.

l Set the user:

<user username="restUser" password="rules"roles="pegascreencapture" />.

4. Start the Tomcat server. The service is hosted athttp://IPaddress:port/prScreenShot/rest/capture, where IPaddress is theaddress of the system where Tomcat is hosted, and port is the port on which the service isdeployed.

5. Log in to your Pega 7 Platform application and make the following updates:a. Update the Data-Admin-System-Setting instance Pega-AppDefinition -

CaptureScreenshotsResourcePath with the URL of the service, for example,http://10.224.232.91:8080/prScreenShot/rest/capture.

b. Update the Data-Admin-Security-Authentication profile instanceCaptureScreenshotsAuthProfile with the user that you created in step 3.

Pega 7 Platform Installation Guide 48

Post-deployment configuration

Page 49: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Configuring PhantomJS REST server security for includingscreen captures in an application documentTo ensure a secure installation of the Pega 7 Platform, you must enable the PhantomJS REST server totake and store server-side screen captures. In application documents generated by the DocumentApplication tool, screen captures provide stakeholders with a realistic picture of the application's userinterface.

1. Obtain the SSL certificate from the Pega 7 Platform administrator.

2. Add the SSL certificate to the list of trusted certificates:a. Double-click the certificate.

b. Click Install certificate to start the Certificate Import wizard.

c. Click Next, and select Place all certificates in the following store.

d. Click Browse, select Trusted Root certificate, and click OK.

e. Click Next, and then click Finish to complete the wizard.

3. Add the certificate to the truststore of the JVM on which the REST server is installed:a. Open a command prompt.

b. Change the root directory to the security folder in the Java installation folder, for example,C:\Program Files (x86)\Java\jre7\lib\security.

c. Run the following command:

keytool -keystore cacerts -importcert -alias certificate alias -file certificate name

d. When prompted, enter the password for the cacerts keystore. The default password ischangeit.

Enabling operatorsAfter deploying the Pega 7 Platform in secured mode, enable new out-of-the-box operator IDs. Formore information about secured mode, see Appendix E — Secured mode on page 59.

To enable operators, follow these steps:

Pega 7 Platform Installation Guide 49

Post-deployment configuration

Page 50: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

1. Select Designer Studio > System > Settings > Operator access.

2. In the Disabled operators list, select the operators to enable. The following standard operatorsare installed but disabled by default. Enable only those operators you plan to use:

l [email protected]

l [email protected]

l ExternalInviteUser

l IntSampleUser

l PRPC_SOAPOper

l [email protected]

l [email protected]

l External

3. Click Enable selected.

4. Click Confirm.

When these standard operators first log on, they are required to change their passwords.

Pega 7 Platform Installation Guide 50

Post-deployment configuration

Page 51: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Appendix A — Properties filesThe Pega 7 Platform properties files include several database-specific properties:

Oraclel JDBC driver JAR file — ojdbc7.jar

l Database driver class — oracle.jdbc.OracleDriver

l Database vendor type — oracledate

l JDBC URL — Use either the service name or the SID:url="jdbc:oracle:thin:@host:port/service-name"

url="jdbc:oracle:thin:@host:port:SID"

Page 52: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Appendix B — TroubleshootinginstallationsUse the information in this section to troubleshoot installation errors. Installation error logs aredisplayed in the Installation and Upgrade Assistant window and are also stored in the Pega-image\scripts\logs directory.

Recovering from a failed installationIf the installation fails, follow these steps to drop the schemas and start a new installation:

1. Review the log files in the \scripts\logs directory.

2. Make any necessary changes to your system. If the error was due to a data entry mistake, makenote of the correct information.

3. Generate the DDL files and drop the schemas:

a. Verify the settings in the setupDatabase.properties file. For information about theproperties, see Editing the setupDatabase.properties file on page 28.

b. At a command prompt, navigate to the Pega-image\scripts directory.

c. Run the generateddl.bat or generateddl.sh script with the --action=drops option, forexample:

generateddl.bat --action=drops

d. Review the DDL files in the Pega-image\schema\generated\ output directory.

e. Have your database administrator apply the DDL to drop the schemas.

4. Repeat the installation steps.

Pega 7 Platform Installation Guide 52

Appendix B — Troubleshooting installations

Page 53: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

PEGA0055 alert — clocks not synchronizedbetween nodesThe Pega 7 Platform validates time synchronization to ensure proper operations and displays aPEGA0055 alert if clocks are not synchronized between nodes.

For information about how to reference a common time standard, see the documentation for youroperating system.

ClassNotFoundException error — sessionpersistenceDuring application server shutdown, Tomcat persists session information into the session.ser file inthe server file directory. When the application server restarts, it reloads the session information fromthe session.ser file and deletes the file. If serialized session objects refer to classes that are notvisible to the container layer, you see a ClassNotFoundException error, such as the following:

May 19, 2016 2:37:46 PM org.apache.catalina.session.StandardManagerdoLoad SEVERE: ClassNotFoundException while loading persistedsessions:java.lang.ClassNotFoundExceptioncom.pega.pegarules.session.internal.authorization.ContextMapDiagCallbackjava.lang.ClassNotFoundException:com.pega.pegarules.session.internal.authorization.ContextMapDiagCallback

To suppress these errors, turn off Tomcat session persistence in the context.xml file.

System hangs with no error message —insufficient memoryIf the server does not have enough memory allocated to run the Pega 7 Platform, the system canhang without an error message. The correct memory settings depend on your server hardware, thenumber of other applications, and the number of users on the server, and might be larger than therecommendations in System requirements on page 11.

Pega 7 Platform Installation Guide 53

Appendix B — Troubleshooting installations

Page 54: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Obtaining database connectioninformationWhen you configure the data source resources, you need the correct database connection URL. Todetermine the database connection URL, obtain the following information from your databaseadministrator:

l Connection method — Service or SID

l Host name

l Port number

l Service or SID name

When you configure the application server, enter the connection string, pega.jdbc.url. Replace itemsin italics with the values for your system:

jdbc:db2://host:port/database

l Use one of the following formats:jdbc:oracle:thin:@localhost:port/service-name

jdbc:oracle:thin:@localhost:port:SID

Pega 7 Platform Installation Guide 54

Appendix B — Troubleshooting installations

Page 55: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Appendix C — Optional: Generatingand applying DDLSkip this section if you will have the Installation and Upgrade Assistant automatically apply the DDL

Generating the DDL fileFollow these steps to generate a DDL file:

1. Edit the setupDatabase.properties file.

a. Open the setupDatabase.properties file in the scripts directory of your distribution image:Pega-image\scripts\setupDatabase.properties

b. Configure the connection properties. For more information about parameter values, seeProperties file parameters.

# Connection Informationpega.jdbc.driver.jar=\path-to-the-database-JAR-file\DRIVER.jarpega.jdbc.driver.class=database driver classpega.database.type=database vendor typepega.jdbc.url=URL of the databasepega.jdbc.username=Deployment usernamepega.jdbc.password=passwordpega.rules.schema=rules-schema-namepega.data.schema=data-schema-name

c. Save and close the file.

2. At a command prompt, navigate to the Pega-image\scripts directory.

3. Type generateddl.bat or generateddl.sh and pass in the required --action installargument:

#generateddl.bat --action install

If you do not specify an output directory, the script writes the output to the default directory:

Pega 7 Platform Installation Guide 55

Appendix C — Optional: Generating and applying DDL

Page 56: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Pega-image\schema\generated\

Note: The output directory is deleted and re-created each time the generateddl script runs. To savea copy of the DDL, rename the directory before you run the script.

Applying the DDL fileBefore you continue, have your database administrator follow these general steps to apply theschema changes; these schema changes can include changes to user-defined functions:

1. Review the DDL file in the output directory and make any necessary changes. The default directoryis:

Pega-image\schema\generated\database\oracledate

2. Apply the DDL file.

a. Register the Java .jar file with the database.

b. Apply the CREATE FUNCTION DDL.

Note: The output directory is deleted and re-created each time the generateddl script runs. To savea copy of the DDL, rename the directory before you rerun the script.

Editing the setupDatabase.properties fileto bypass DDL generationAfter your database administrator applies the changes to your database, configure thesetupDatabase.properties file to bypass applying a schema that already exists. Reapplying anexisting schema would cause the installation to fail.

To edit the setupDatabase.properties file:

1. Open the setupDatabase.properties file in the scripts directory of your distribution image:Pega-image\scripts\setupDatabase.properties

2. Set the property bypass.pega.schema=true.

3. Save and close the file.

Pega 7 Platform Installation Guide 56

Appendix C — Optional: Generating and applying DDL

Page 57: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Appendix D — Installing user-defined functionsThe user-defined functions (UDFs) enable the Pega 7 Platform to read data directly from the BLOBwithout creating and exposing columns. Skip this section if you installed the UDFs as part of theinstallation.

There are several ways you might have bypassed generating and installing the UDFs during theinstallation:

l Setting either bypass.pega.schema=true or bypass.udf.generation=true in thesetupDatabase.properties file

l Setting pega.target.bypass.udf=true in themigrateSystem.properties file

l Selecting Bypass Automatic DDL Application from the Installation and Upgrade Assistantduring the installation

Before you install the UDFs, verify that you have the appropriate user permissions. For moreinformation about user permissions, see Database users on page 17.

1. Edit the setupDatabase.properties file.

a. Open the setupDatabase.properties file in the scripts directory of your distribution image:Pega-image\scripts\setupDatabase.properties

b. Configure the connection properties. For more information about parameter values, seeProperties file parameters.

# Connection Informationpega.jdbc.driver.jar=\path-to-the-database-JAR-file\DRIVER.jarpega.jdbc.driver.class=database driver classpega.database.type=database vendor typepega.jdbc.url=URL of the databasepega.jdbc.username=Deployment user namepega.jdbc.password=passwordpega.rules.schema=rules-schema-namepega.data.schema=data-schema-name

c. Save and close the file.

Pega 7 Platform Installation Guide 57

Appendix D — Installing user-defined functions

Page 58: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

2. On the rules schema, navigate to the Pega-image\scripts directory and run the followingcommands to remove any partially installed UDFs:

DROP FUNCTION rules-schema-name.pr_read_from_stream;DROP FUNCTION rules-schema-name.pr_read_decimal_from_stream;DROP FUNCTION rules-schema-name.pr_read_int_from_stream;

3. Optional: If you have a split-schema, on the data schema, navigate to the Pega-image\scriptsdirectory and run the following commands:

DROP FUNCTION data-schema-name.pr_read_from_stream;DROP FUNCTION data-schema-name.pr_read_decimal_from_stream;DROP FUNCTION data-schema-name.pr_read_int_from_stream;

4. From the Pega-image\scripts directory, run the generateudf.bat or generateudf.sh scriptwith the --action install argument, for example:

generateudf.bat --action install --dbType oracledate

Pega 7 Platform Installation Guide 58

Appendix D — Installing user-defined functions

Page 59: Pega 7 Platform Installation Guide Tomcat Oracle · Databaseconnectionproperties 29 Optional:EnablingKerberosauthentication 30 Installingfromthecommandline 30 Settinguptheapplicationserver

Appendix E — Secured modeDeploying the Pega 7 Platform in secured mode requires an administrator to enable new out-of-the-box operator IDs. The administrator and the following new out-of-the-box operators must changetheir passwords when they first log in:

l [email protected]

l [email protected]

l ExternalInviteUser

l IntSampleUser

l PRPC_SOAPOper

l [email protected]

l [email protected]

l External

If you disable secured mode, the system creates and enables all new operators, including theadministrator, with default passwords. Unauthorized users might use the default passwords to gainadministrator access to your system.

You can use the Installation and Upgrade Assistant, or the command-line tool to install in securedmode. For instructions, see Running the Installation and Upgrade Assistant (IUA) on page 25andInstalling from the command line on page 30

For information about enabling operators, see Enabling operators on page 49.

Pega 7 Platform Installation Guide 59

Appendix E — Secured mode