Database form
|
|
Complete this tab to specify database connection information.
After you complete and save the form, you can click Test Connection to confirm database connectivity.
Field |
Description |
||||||||||||||
Database | |||||||||||||||
How to Connect |
Select one of three choices.
The PRPC may open more than one connection to a database. When using WebSphere's pooled connection facility, a general guideline for production systems is to set the maximum number of connections for the PegaRULES database to about one-third to one-fifth of the number of simultaneous requestors (and adjust the PegaRULES database settings to allow the same number of connections. Don't forget to count listeners and agents as requestors. The Use configuration in preferences caseFor example, connection to a Microsoft SQL Server database can be defined in the <env name="database/databases/Northwind/url" In this example, the database name is Northwind and the user name (account) is Smith with password password. The database is located on the server SHELPNT using TCP/IP port 1433. PRPC may open more than one database connection with this user name. To provide good performance, the system creates a pool of connections over time. (This internal connection pooling is an alternative to facilities provided by WebSphere or WebLogic.).
The Account and password securityIf you choose If you choose |
||||||||||||||
JDBC Definition | |||||||||||||||
JDBC URL |
This field appears only when you select Enter the full URL. Examples for Microsoft, Oracle, IBM DB2 and Sybase databases are:
where 127.0.0.1 is the node name or IP address of the server hosting the database, and 1433 or 1521 is the TCP/IP port number for database access. Precise syntax requirements vary depending on server platform, database version, and JDBC client; additional parameters may be required. Consult your database administrator (DBA) for details. If this Data-Admin-DB-Name instance is to connect to the PegaRULES database, consult the Installation Guide for your platform. If your PegaRULES database is hosted by Oracle 9, the Type 2 (OCI or thick client) driver is required; the thin client (Type 4) works with Oracle 10g. If this instance is to connect to an external database, you must ensure that the driver files for the type of the external database are available to PRPC:
Sybase databases are accessible only through Connect SQL rules. Sybase is not supported as a host for the PegaRULES database . Don't place any spaces or other extraneous characters before or after the JDBC URL value. |
||||||||||||||
JDBC Datasource | |||||||||||||||
JNDI Name |
This field appears only when you select Enter the JNDI name of the data source for your connection pool. The procedure for defining a connection pool depends on two factors:
If during installation of PRPC, the installer specified a JDBC Datasource for connecting to the PegaRULES database, the username and password for that data source may appear in the |
||||||||||||||
Admin JNDI Name |
Optional. Leave blank unless (1) this database name instance is to access the PegaRULES database using JNDI, (2) the primary database user account that you entered in the JNDI name field above does not have the ALTER TABLE and CREATE TABLE capabilities, and you want developers to have any of these capabilities:
(Some of these capabilities have additional prerequisites.) Identify a second, distinct data source for the JNDI location (typically jdbc/AdminPegaRULES) that defines a PegaRULES database connection for which the account does have both the ALTER TABLE and CREATE TABLE capabilities. (This ordinarily is distinct from database account used by most application users, who only insert, update, and delete rows). Consult the Installation Guide (for your platform) for additional information on this field. Alternatively, you can specify the username and password in the |
||||||||||||||
For any database specified by a JDBC URL, its driver class must be included in the (semicolon-delimited) list of driver classes specified by the prconfig.xml setting "database/drivers". |
|||||||||||||||
Authentication | |||||||||||||||
Username |
Optional. Enter the user or account name for this database, if required. Use a database user that is capable of accepting unqualified table names and converting them to fully qualified table names. If this database is to be accessed through Connect SQL rules (Rule-Connect-SQL rule type), confirm that this database user has search, update, delete, and other capabilities that support the SQL statements in those rules, and that this database is the default database of the user. |
||||||||||||||
Password |
Optional. If the database account requires a password, enter the password. If this field is blank, the system expects to obtain a password from a text file named For more information on the keyring approach, which requires familiarity with encryption technologies, contact Global Customer Support. |
||||||||||||||
Admin Username |
Optional. The Admin User Name and Admin Password field provide an alternative way to specify a PegaRULES database account for specific capabilities. Leave blank unless (1) this database name instance is to access the PegaRULES database using JNDI, (2) the primary database user account identified through does not have the ALTER TABLE and CREATE TABLE capabilities, and you want developers to have any of these capabilities:
Identify a PegaRULES database account (referenced by the Admin JNDI Name field) that has the ALTER TABLE and CREATE TABLE capabilities. (This account ordinarily is distinct from database account used by most application users, who only insert, update, and delete rows in the database). Alternatively, you can specify the username and password in the Consult the Installation Guide (for your platform) for additional information on this field. |
||||||||||||||
Admin Password |
Optional. Leave blank unless you have supplied an Admin Username value. Enter a password for the database account identified in the Admin Username field. |
||||||||||||||
Test Connection | |||||||||||||||
Test Connection |
After you complete and save the form, click to test connectivity to the database. If the test fails, diagnostic information appears in a new window. (This test does not try the alternate account to the PegaRULES database, if any, specified in the Admin Username and Admin Password fields). See PDN article Troubleshooting JDBC problems with tools from Pegasystems and others for advice on researching JDBC issues. |