ID-Ent 130 Database Iss6
ID-Ent 130 Database Iss6
Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69
4 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
About
5
Revision information
Table 1: Revisions in this document
6 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Documentation conventions
Following are typographic conventions that may appear in this guide:
Note:
Information to help you maximize the benefits of your Entrust product.
8 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Related documentation
Entrust Identity Enterprise is supported by a complete documentation suite:
• For instructions about installing and configuring the Entrust Identity
Enterprise Server, see the Entrust Identity Enterprise Installation Guide.
• For instructions about administering Entrust Identity Enterprise users and
groups, see the Entrust Identity Enterprise Administration Guide.
• For a full list and descriptions of the Entrust Identity Enterprise master user
shell commands, see the Entrust Identity Enterprise Master User Shell
Reference.
• For information about configuring Entrust Identity Enterprise to work with a
supported LDAP repository, see the Entrust Identity Enterprise Directory
Configuration Guide.
• For information about configuring Entrust Identity Enterprise to work with a
supported JDBC database, see the Entrust Identity Enterprise Database
Configuration Guide.
• For information about Entrust Identity Enterprise error messages, see the
Entrust Identity Enterprise Error Messages.
• For information about new features, limitations and known issues in the latest
release, see the Entrust Identity Enterprise Release Notes.
• For information about the Self-Service Module, see:
– Entrust Identity Enterprise Self-Service Module Installation and
Configuration Guide
– Entrust Identity Enterprise Self-Service Module Customization Guide
– Entrust Identity Enterprise Self-Service Module User Guide
• For information about integrating the authentication and administration
processes of your applications with Entrust Identity Enterprise, see the
Entrust Identity Enterprise Programming Guide that applies to your
development platform (either Java Platform or .NET).
10 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Obtaining documentation
Entrust product documentation, white papers, technical integration guides, technical
notes, and a comprehensive Knowledge Base are available through Entrust TrustedCare
Online. If you are registered for our support programs, you can use our Web-based
Entrust TrustedCare Online support services at:
https://trustedcare.entrust.com/TrustedCare/
Documentation feedback
You can rate and provide feedback about Entrust product documentation by completing
the online feedback form. You can access this form by
• clicking the Report any errors or omissions link located in the footer of Entrust
PDF documents (see bottom of this page).
• following this link: http://go.entrust.com/documentation-feedback
Feedback concerning documentation can also be directed to the Customer Support
email address.
support@entrust.com
Technical support
Entrust offers a variety of technical support programs to help you keep Entrust
products up and running. To learn more about the full range of Entrust technical
support services, visit our Web site at:
http://www.entrust.com/
If you are registered for our support programs, you can use our Web-based support
services.
Entrust TrustedCare Online offers technical resources including Entrust product
documentation, white papers and technical notes, and a comprehensive Knowledge
Base at:
https://trustedcare.entrust.com/TrustedCare/
If you contact Entrust Customer Support, please provide as much of the following
information as possible:
• your contact information
• product name, version, and operating system information
• your deployment scenario
• description of the problem
• copy of log files containing error messages
• description of conditions under which the error occurred
• description of troubleshooting activities you have already performed
Telephone numbers
For support assistance by telephone call one of the numbers below:
• 1-877-754-7878 in North America
• 1-613-270-3700 outside North America
Email address
The email address for Customer Support is:
support@entrust.com
12 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Professional Services
The Entrust team assists e-businesses around the world to deploy and maintain secure
transactions and communications with their partners, customers, suppliers and
employees. We offer a full range of professional services to deploy our e-business
solutions successfully for wired and wireless networks, including planning and design,
installation, system integration,deploymentsupport,andcustomsoftwaredevelopment.
Whether you choose to operate your Entrust solution in-house or subscribe to hosted
services, Entrust Professional Services will design and implement the right solution for
your e-business needs. For more information about Entrust Professional Services please
visit our Web site at:
http://www.entrust.com/services
Training
Through a variety of hands-on courses, Entrust delivers effective training for deploying,
operating, administering, extending, customizing and supporting any variety of Entrust
digital identity and information security solutions. Delivered by training professionals,
Entrust's professional training services help to equip you with the knowledge you need
to speed the deployment of your security platforms and solutions. Please visit our
training website at:
http://www.entrust.com/training
Database overview
This chapter provides information about using a database repository with Entrust
Identity Enterprise. Information that is common to all supported databases is included
in this chapter. Information specific to each supported database is documented in a
separate chapter.
Note:
You must follow and complete the instructions in this configuration guide dedicated
to your specific database before you install Entrust Identity Enterprise. For
information about installing and configuring Entrust Identity Enterprise, refer to
the Entrust Identity Enterprise Installation Guide.
This chapter provides information that applies to all databases supported by Entrust
Identity Enterprise:
• “Setting up the JDBC driver” on page 16
• “The Entrust Identity Enterprise schema” on page 17
• “Estimating database size” on page 18
• “Database for audit data” on page 22
• “Backing up the database” on page 23
15
Setting up the JDBC driver
Entrust Identity Enterprise communicates with the database using Java database
connectivity (JDBC), which is a standard SQL database interface.
Keep these points in mind when setting up JDBC:
• Obtain and install the appropriate version of the JDBC driver that supports
connectivity to your Entrust Identity Enterprise database.
• Install the driver in a location on the Entrust Identity Enterprise Server so that
Entrust Identity Enterprise can find the JAR files during configuration.
• Take note of that location, as you must provide it when you configure Entrust
Identity Enterprise later.
16 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
The Entrust Identity Enterprise schema
Each of the database-specific chapters in this book describes how to run the specific
Entrust Identity Enterprise schema file on your user database in preparation for
installing Entrust Identity Enterprise.
These files are accessible without installing Entrust Identity Enterprise by extracting
them as described in the Entrust Identity Enterprise Installation Guide.
In the same directory with the database-specific schema files are included drop files
for each database-type. The drop schema files are not used for a normal installation
or upgrade. The drop schema files are only used when removing the current instance
of Entrust Identity Enterprise to install a new instance.
After using the drop schema file, you run the appropriate schema file as described
in the database-specific chapters in this guide.
Database overview 17
Report any errors or omissions
Estimating database size
No two databases will be the same. The number of policies, groups, roles, challenges,
and users will vary as will the attributes assigned to each and the authentication
methods used.
You can estimate the approximate disk space requirements of your Entrust Identity
Enterprise database using the applicable values below. Calculate the disk
requirements for an average user and multiply that by the number of users in your
system. Add to that number a value for all roles, all groups, all policies, and all
unassigned cards and tokens.
Note:
In its default configuration, Entrust Identity Enterprise does not index columns
used only for search and reporting operations. You can choose to index these
columns, but there is a performance cost in update and authentication
operations.
18 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Table 1: Database disk space (continued)
Database overview 19
Report any errors or omissions
Table 1: Database disk space (continued)
20 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Table 1: Database disk space (continued)
For information on creating policies, groups, and users, refer to the Entrust Identity
Enterprise Server Administration Guide.
Database overview 21
Report any errors or omissions
Database for audit data
You can log audits to a database for later reporting, if desired. You must configure
this feature if you want to use the Entrust Identity Enterprise reporting facility to
create audit reports.
Your audits can be stored in the same database as your users are stored, or you
can configure a separate database (a separate database is recommended). You can
configure Entrust Identity Enterprise to store only the audits you choose, or you can
send all audits to the database.
Each audit requires approximately 500 bytes of storage. See the Entrust Identity
Enterprise Server Administration Guide for details about calculating how many audit
records your system could be generating over a given period of time.
The database size required to store Entrust Identity Enterprise audits is also affected
by the settings of the audit cleaning properties in Entrust Identity Enterprise. See the
Entrust Identity Enterprise Server Administration Guide for descriptions of the audit
cleaning properties.
22 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Backing up the database
Your database stores all your Entrust Identity Enterprise user, policy, group, card,
token, certificate, and PVN data. A database failure can result in the loss of user
information, and may require that you reissue Entrust Identity Enterprise cards or
tokens.
Attention:
Back up your database on a regular basis. See the Entrust Identity Enterprise
Installation Guide for backup instructions.
Database overview 23
Report any errors or omissions
24 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
2
25
Setting up the DB2 database
Before you install Entrust Identity Enterprise, you must prepare the DB2 database.
This section includes:
• “Preparing the DB2 database for installation” on page 26
• “Installing the Entrust Identity Enterprise schema file for DB2” on page 26
• “Installing the JDBC driver files” on page 27
Complete the procedures in this chapter before you install Entrust Identity Enterprise.
Note:
When preparing a DB2 database for Entrust Identity Enterprise, keep in mind the
languages that you need to support. For international English or non-English
environments, consult your DB2 documentation for more information on setting the
language variable.
Attention:
Prior to any installation, ensure the integrity of all files being imported. Follow your
organizational standards and procedures, and ensure that all files are obtained
from a trusted source.
26 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
The schema files for DB2 are available under the IG_130/sql directory included with
the Entrust Identity Enterprise installation package. You can access them without
having to install Entrust Identity Enterprise. Run the applicable schema file as the
newly created Entrust Identity Enterprise database user.
Choose the appropriate schema file:
• If you are installing a new version of Entrust Identity Enterprise 13.0, use the
file db2_v130_schema.sql.
• If you are upgrading from Entrust Identity Enterprise 12.0, use the file
db2_v120_to_v130_upgrade.sql.
• If you are upgrading from an earlier version of Entrust Identity Enterprise,
you must first upgrade to release 12.0 and then follow the guidance for
upgrading from release 12.0. See the Entrust IdentityGuard 12.0 Installation
Guide.
Before you run the selected schema file, you must edit it for your installation.
28 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Gathering your configuration data
You can now install Entrust Identity Enterprise. This section describes how to prepare
for this installation. Refer to the Entrust Identity Enterprise Installation Guide for
complete instructions.
As part of the Entrust Identity Enterprise installation procedure, the installer will
present questions or options about the database and JDBC files. Make a note of the
information requirements in the following table.
JDBC driver class name You will be asked for the JDBC driver class you are using:
com.ibm.db2.jcc.DB2Driver
DB2 database user Provide the name or ID of the account that Entrust Identity
Enterprise will use to log in and access your DB2 database.
Entrust Identity Enterprise uses this name together with the
database user password to log in to your database.
DB2 database user password Specify the password assigned to the DB2 database user.
Entrust Identity Enterprise uses this password together with
the database user to log in to your database.
DB2 database schema name Specify your database schema name. This name must match
the Entrust Identity Enterprise database user name value. If it
does not match, initialization will fail.
Performance troubleshooting
Problem: Unsatisfactory response times for administration and authentication requests
using tokens or grid cards.
Explanation: Slow responses times could be caused by inefficient database queries.
This is most likely to occur if users have multiple tokens or grids and the number
of characters stored in the database columns for these authenticators exceeds the
default line lengths.
Solution: A database administrator can add a setting to the DB2 schema file to
better accommodate the size of INLINE blobs for DB2. This is not configured in the
DB2 schema packaged with Entrust Identity Enterprise server because it is not always
necessary and loading a schema with this change would cause errors in configurations
with smaller tablespace page sizes (<16k).
Note:
This solution requires use of a tablespace page size larger than 16k.
If your tablespace page size is 16K or larger and you want to implement this solution,
complete the following steps.
1 In DB2, enter the following command to allow any row length:
db2 update db cfg using extended_row_sz enable
2 Make a copy of the default DB2 schema file, db2_v130_schema.sql.
3 Open the copy in DB2, then add the following lines to allow the appropriate line
lengths.
ALTER TABLE users
ALTER COLUMN cards
SET INLINE LENGTH 2700;
30 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
ALTER TABLE users
ALTER COLUMN tokens
SET INLINE LENGTH 2200;
4 Load the updated schema file.
33
Setting up the MySQL database
Before you install Entrust Identity Enterprise, you must prepare the MySQL database.
This section includes:
• “Preparing the MySQL database for installation” on page 34
• “Installing the Entrust Identity Enterprise schema file for MySQL” on
page 34
• “Installing the JDBC driver” on page 36
Remember to complete the procedures in this configuration guide before you install
Entrust Identity Enterprise.
Note:
When preparing a MySQL database for Entrust Identity Enterprise, keep in mind
the language and character set requirements of the country in which it will run.
See the latest MySQL reference manual.
Attention:
The MySQL repository name cannot contain a hyphen (-). When the repository
name includes a hyphen, the repository may not initialize correctly.
34 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Extract the applicable archive file for your operating system. Refer to the Entrust
Identity Enterprise Installation Guide for details.
The schema files for MySQL are available under the IG_130/sql directory included
with the Entrust Identity Enterprise installation package. You can access them without
having to install Entrust Identity Enterprise. Run the applicable schema file as the
newly created Entrust Identity Enterprise database user.
Attention:
Prior to any installation, ensure the integrity of all files being imported. Follow your
organizational standards and procedures, and ensure that all files are obtained
from a trusted source.
Attention:
Prior to any installation, ensure the integrity of all files being imported. Follow your
organizational standards and procedures, and ensure that all files are obtained
from a trusted source.
Entrust Identity Enterprise supports MySQL’s Connector/J JDBC client driver. This is a
platform-independent, type-4 driver that has a complete JDBC feature set that
supports the capabilities of MySQL. The driver does not require you to have MySQL
client software installed, but does require that you configure the database server with
a TCP/IP listener.
Place the JAR file in a location on the Entrust Identity Enterprise Server where the
person installing Entrust Identity Enterprise can find it during configuration.
36 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Gathering your configuration data
You can now install Entrust Identity Enterprise. This section describes how to prepare
for this installation. Refer to the Entrust Identity Enterprise Installation Guide for
complete installation instructions.
As part of the Entrust Identity Enterprise installation procedure, the installer will
present questions or options about the database and JDBC files. Make a note of the
information requirements in the following table.
JDBC driver class name You will be asked for the MySQL JDBC driver class you are
using:
com.mysql.cj.jdbc.Driver
Database URL Each JDBC driver defines its own syntax for the URL. Consult
the driver documentation for details. For the MySQL driver,
the URL will look like this:
jdbc:mysql://<dbhost>:<dbport>/<mydbname>
Where:
• dbhost is the name of the server that hosts the MySQL
database
• dbport is the database server port number (the default
is 3306)
• mydbname is the name of the database created for Entrust
Identity Enterprise that uniquely distinguishes it from any
other database on your system
Note: If you do not want to request an SSL connection,
include the ?useSSL=false parameter in the URL.
Example:
jdbc:mysql://db1.mycorp.com:3306/igdb?useSSL=false
MySQL database user name Specify the name or ID of the account you created earlier
under “Preparing the MySQL database for installation” on
page 34. Entrust Identity Enterprise uses this name together
with the database user password to log in to and access your
database.
MySQL database user password Provide the password assigned to the MySQL database user.
Entrust Identity Enterprise uses this password together with
the database user to log in to your database.
MySQL database schema name Specify your database schema name. This is typically the
same as my dbname component of the database URL.
38 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
4
39
Setting up the Oracle database
Before you install Entrust Identity Enterprise, you must prepare the Oracle database.
This section includes:
• “Preparing the Oracle database for installation” on page 40
• “Installing the Entrust Identity Enterprise schema file for Oracle” on page 43
• “Installing the JDBC driver” on page 45
Remember to complete the procedures in this configuration guide before you install
Entrust Identity Enterprise.
Note:
When preparing an Oracle database for Entrust Identity Enterprise, keep in mind
the language and character set requirements of the country in which it will run.
If needed, use the NLS_LANG parameter to set the working language. It is set
as a local environment variable on Linux. Entrust Identity Enterprise products use
Unicode AL32UTF8 as the default:
Consult the Oracle Database documentation for more information about setting
language and character sets.
40 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
To create a tablespace and database user for Entrust Identity Enterprise
1 Log in to SQL*Plus as a user with the SYSDBA privilege. For example:
sqlplus SYSTEM as SYSDBA
If prompted, enter the password for the database user.
2 If you are using the Pluggable database (multi-tenant) feature of Oracle Database:
a To see a list of pluggable databases and whether they are ready, enter the
following command:
SELECT name, open_mode FROM v$pdbs ORDER BY name;
A list of pluggable databases appears, along with their OPEN_MODE value:
NAME OPEN_MODE
------------------------------ ----------
PDB$SEED READ ONLY
PDBORCL MOUNTED
b If the pluggable database is not open (the OPEN_MODE value is not READ
WRITE), enter the following command to open the pluggable database:
alter pluggable database <pdb_name> open;
Where <pdb_name> is the name of the pluggable database. For example:
alter pluggable database pdborcl open;
c Switch to the pluggable database.
alter session set container=<pdb_name>;
Where <pdb_name> is the name of the pluggable database. For example:
alter session set container=pdborcl;
3 Create a tablespace for Entrust Identity Enterprise.
For example, to create a BIGFILE tablespace:
CREATE BIGFILE TABLESPACE <tablespace name>
DATAFILE '<data file>'
SIZE 512M
AUTOEXTEND ON
NEXT 128M
MAXSIZE unlimited
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
ONLINE
PERMANENT
;
42 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
GRANT resource, create session, create view, create procedure TO
<role name>;
Where <role name> is a name for the new role. For example:
CREATE ROLE IdentityGuardRole;
GRANT resource, create session, create view, create procedure TO
IdentityGuardRole;
6 Granted the new role to the Entrust Identity Enterprise database user:
GRANT <role name> TO <user name>;
Where:
• <role name> is the name of the role.
• <user name> is the user name of the database user you created for Entrust
Identity Enterprise.
For example:
GRANT IdentityGuardRole TO iguser;
7 Enter the following commands to grant the database user privileges on the
tablespace:
ALTER USER iguser QUOTA 100M ON <tablespace name>;
GRANT UNLIMITED TABLESPACE TO <user name>;
Where:
• <role name> is the name of the role.
• <user name> is the user name of the database user you created for Entrust
Identity Enterprise.
For example:
GRANT UNLIMITED TABLESPACE TO iguser;
ALTER USER iguser QUOTA 100M ON identityguard;
These commands prevent "ORA-01950: no privileges on tablespace"
errors.
8 Exit SQL*Plus.
The schema files for Oracle are available under the IG_130/sql directory. You can
access them without having to install Entrust Identity Enterprise. Run them as the
newly created Entrust Identity Enterprise database user.
Choose the appropriate schema file:
• If you are installing a new version of Entrust Identity Enterprise 13.0, use the
file oracle_v130_schema.sql.
• If you are upgrading from Entrust Identity Enterprise 12.0, use the file
oracle_v120_to_v130_upgrade.sql.
• If you are upgrading from an earlier version of Entrust Identity Enterprise,
you must first upgrade to release 12.0 and then follow the guidance for
upgrading from release 12.0. See the Entrust IdentityGuard 12.0 Installation
Guide.
There are several ways to run the SQL files. The following example shows how to
install the or upgrade the Entrust Identity Enterprise schema in Oracle Database using
SQL*Plus.
To install the Entrust Identity Enterprise schema for Oracle Database using
SQL*Plus
1 Copy the applicable schema file to a working directory on the database server.
2 Log in to SQL*Plus as the Entrust Identity Enterprise user account you created
earlier. For example:
sqlplus iguser
or, if you are connecting to a pluggable database:
sqlplus iguser/example_password@//localhost:1521/pdborcl.example.c
om
If prompted, enter the password for the database user.
3 Enter the following command:
@<schema-file>
Where <schema-file> is the full path and file name of the applicable schema
file. For example:
@/tmp/IG_130/sql/oracle_v130_schema.sql
44 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Installing the JDBC driver
Locate the correct JDBC driver file. It is provided with your database software or
from a third-party vendor.
Attention:
Prior to any installation, ensure the integrity of all files being imported. Follow your
organizational standards and procedures, and ensure that all files are obtained
from a trusted source.
Entrust Identity Enterprise supports Oracle’s JDBC thin client driver for the Oracle
Database, such as ojdbc10.jar. This driver is a platform-independent, type-4 driver
that uses Java to connect directly to Oracle. It implements Oracle's SQL *Net/Net8
and TTC adapters using its own TCP/IP-based Java socket implementation. The driver
does not require you to have Oracle client software installed, but does require that
you configure the database server with a TCP/IP listener.
Place the JAR file in a location on the Entrust Identity Enterprise Server where the
person installing Entrust Identity Enterprise can find it during configuration.
JDBC driver class name You will be asked for the Oracle JDBC driver class you are
using:
oracle.jdbc.driver.OracleDriver
46 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Table 4: Configuration data for Oracle Database (continued)
Database URL Each JDBC driver defines its own syntax for the URL. Consult
the driver documentation for details.
Attention: The Database URL cannot contain spaces. Entrust
Identity Enterprise interprets space separated URLs as
multiple URLs for use in failover scenarios.
For a container database with the Oracle thin client driver,
the URL will typically look like this:
jdbc:oracle:thin:@<dbhost>:<dbport>:<SID>
Where:
• <dbhost> is the name of the server that hosts the
Oracle database.
• <dbport> is the database server port number (the
default is 1521).
• <SID> is the ID that uniquely distinguishes your Oracle
database from any other database that may be on your
system.
For example:
jdbc:oracle:thin:@oracledb.example.com:1521:orcl
Oracle database user Specify the name or ID of the database account through
which Entrust Identity Enterprise logs in and accesses your
Oracle database. Entrust Identity Enterprise uses this name
together with the database user password to log in to your
database.
Oracle database user password Provide the password assigned to the Oracle database user.
Entrust Identity Enterprise uses this password together with
the database user name to log in to your database.
Oracle database schema name Specify your database schema name. This name must match
the Entrust Identity Enterprise database user name value. If it
does not match, initialization will fail.
48 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
5
49
Setting up the PostgreSQL database
Before you install Entrust Identity Enterprise, you must prepare the PostgreSQL
database.
This section includes:
• “Preparing the PostgreSQL database for installation” on page 50
• “Installing the Entrust Identity Enterprise schema file for PostgreSQL” on
page 50
• “Installing the JDBC driver” on page 52
Remember to complete the procedures in this configuration guide before you install
Entrust Identity Enterprise.
Note:
When preparing a PostgreSQL database for Entrust Identity Enterprise, keep in
mind the language and character set requirements of the country in which it will
run. See the latest PostgreSQL reference manual.
50 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Attention:
Prior to any installation, ensure the integrity of all files being imported. Follow your
organizational standards and procedures, and ensure that all files are obtained
from a trusted source.
The schema files for PostgreSQL are available under the IG_130/sql directory
included in the Entrust Identity Enterprise installation package. You can access them
without having to install Entrust Identity Enterprise. Run the applicable schema file as
the newly created Entrust Identity Enterprise database user.
Choose the appropriate schema file:
• If you are installing a new version of Entrust Identity Enterprise 13.0, use the
file postgresql_v130_schema.sql.
• If you are upgrading from Entrust Identity Enterprise 12.0, use the file
postgresql_v120_to_v130_upgrade.sql.
• If you are upgrading from an earlier version of Entrust Identity Enterprise,
you must first upgrade to release 12.0 and then follow the guidance for
upgrading from release 12.0. See the Entrust IdentityGuard 12.0 Installation
Guide.
Attention:
Prior to any installation, ensure the integrity of all files being imported. Follow your
organizational standards and procedures, and ensure that all files are obtained
from a trusted source.
Entrust Identity Enterprise supports PostgreSQL type-4 JDBC drivers. These are
platform-independent drivers that use Java to connect directly to PostgreSQL. The
drivers do not require you to have PostgreSQL client software installed on the Entrust
Identity Enterprise platform.
Place the applicable JAR file in a location on the Entrust Identity Enterprise Server
where the person installing Entrust Identity Enterprise can find it during configuration.
52 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Gathering your configuration data
You can now install Entrust Identity Enterprise. This section describes how to prepare
for this installation. Refer to the Entrust Identity Enterprise Installation Guide for
complete installation instructions.
As part of the Entrust Identity Enterprise installation procedure, the installer will
present questions or options about the database and JDBC files. Make a note of the
information requirements in the following table.
JDBC driver class name You will be asked for the name of the PostgreSQL JDBC
driver class you are using: org.postgresql.Driver.
Database URL Each JDBC driver defines its own syntax for the URL. Consult
the driver documentation for details. For the PostgreSQL
driver, the URL will look like this:
jdbc:postgresql://<dbhost>:<dbport>/<dbname>
or
if you have configured the PostgreSQL server to
accept encrypted connection (SSL) then the URL
will look like:
jdbc:postgresql://<dbhost>:<dbport/<dbname>?sslmod
e=require
Where:
• <dbhost> is the name of the server that hosts the
PostgreSQL database.
• <dbport> is the database server port number (the
default is 5432).
• <dbname> is the name of your PostgreSQL database.
PostgreSQL database user Provide the name or ID of the account through which Entrust
Identity Enterprise logs in and accesses your PostgreSQL
database. Entrust Identity Enterprise uses this name together
with the database user password to log in to your database.
54 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Table 5: Configuration data for PostgreSQL (continued)
PostgreSQL database user Specify the password assigned to the PostgreSQL database
password user. Entrust Identity Enterprise uses this password together
with the database user to log in to your database.
PostgreSQL database schema Specify your database schema name. It is public by default.
name
56 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
6
57
Setting up the SQL Server database
Before you install Entrust Identity Enterprise, you must prepare the SQL Server
database.
This section includes:
• “Preparing the SQL Server database for installation” on page 58
• “Installing the Entrust Identity Enterprise schema file for SQL Server” on
page 59
• “Installing the JDBC driver” on page 63
Remember to complete the procedures in this configuration guide before you install
Entrust Identity Enterprise.
Note:
When preparing an SQL Server database for Entrust Identity Enterprise, keep in
mind the languages that you need to support. For international English or
non-English environments, consult your SQL Server documentation for more
information on setting the language variable.
58 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
3 Create a database user login account (igadmin, for example) and set this user's
default database to the database you just created.
4 Give the user access to the new database, and permit these roles:
Note:
The db_owner and db_ddladmin roles are required for adding the Entrust Identity
Enterprise schema, but are not needed for normal Entrust Identity Enterprise
operations. After adding the Entrust Identity Enterprise schema, you can
optionally remove the db_owner and db_ddladmin roles from the database user.
• public
• db_owner
• db_ddladmin
• db_datareader
• db_datawriter
Attention:
Prior to any installation, ensure the integrity of all files being imported. Follow your
organizational standards and procedures, and ensure that all files are obtained
from a trusted source.
Run the applicable schema file as the newly created Entrust Identity Enterprise
database user.
3 Uncomment the line USE igdb; and replace igdb with the name of the
database created for Entrust Identity Enterprise. Usually, the database is named
to match the name of the user that owns the database. To uncomment, remove
the dashes and leading space ( --).
4 Save the schema file on the database server. Usually, the schema is named to
match the name of the user that owns the database.
5 Double-click the schema file.
60 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
A login prompt appears. For example:
6 Enter the user name and password of the database login account created for
Entrust Identity Enterprise.
7 Click Connect.
8 Click inside the schema file (middle pane) to enable the Execute button.
9 Click Execute.
Your schema file loads.
Now, verify the schema name to which the Entrust Identity Enterprise objects are
associated.
62 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
a Modify the database properties to change the schema name from dbo to
igadmin (or whatever name you gave the schema above).
b Drop the Entrust Identity Enterprise tables.
c Reload the Entrust Identity Enterprise schema.
Attention:
Prior to any installation, ensure the integrity of all files being imported. Follow your
organizational standards and procedures, and ensure that all files are obtained
from a trusted source.
• For Microsoft SQL Server 2022, download and unpack the Microsoft JDBC
Driver 12.6 for SQL Server package from
https://learn.microsoft.com/en-us/sql/connect/jdbc/download-microsoft-jdbc-driver-for-sq
l-server?view=sql-server-ver16#:~:text=Java%2Denabled%20applet.-,Download,-Version%201
2.6%20is
• For Microsoft SQL Server 2019, download and unpack the Microsoft JDBC
Driver 8.4 for SQL Server package from
https://docs.microsoft.com/en-us/sql/connect/jdbc/download-microsoft-jdbc-driver-for-sq
l-server?view=sql-server-ver15
Entrust Identity Enterprise uses the AdoptOpenJDK 11, so from the downloaded
package, select the mssql-jdbc-8.4.1.jre11.jar file. Place the JAR
file in a location on the Entrust Identity Enterprise Server where the person
installing Entrust Identity Enterprise can find it during configuration.
• For Microsoft SQL Server 2017, download and unpack the Microsoft JDBC
Driver 7.0 for SQL Server package from
https://www.microsoft.com/en-us/download/details.aspx?id=58505
Entrust Identity Enterprise uses the AdoptOpenJDK 11, so from the downloaded
package, select the mssql-jdbc-7.4.1.jre11.jar file. Place the JAR
file in a location on the Entrust Identity Enterprise Server where the person
installing Entrust Identity Enterprise can find it during configuration.
• For Microsoft SQL Server 2016, download and unpack the Microsoft JDBC
Driver 7.4 for SQL Server package from
https://www.microsoft.com/en-us/download/details.aspx?id=58505
Entrust Identity Enterprise uses the AdoptOpenJDK 11, so from the downloaded
package, select the mssql-jdbc-7.4.1.jre11.jar file. Place the JAR
64 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Gathering your configuration data
You can now install Entrust Identity Enterprise. This section describes how to prepare
for this installation. Refer to the Entrust Identity Enterprise Installation Guide for
complete installation instructions.
As part of the Entrust Identity Enterprise installation procedure, the installer will
present questions or options about the database and JDBC files. Make a note of the
information requirements in Table 6.
JDBC driver JAR file name You will be asked for the name of the JDBC file during
installation. For example, one listed in “Installing the JDBC
driver” on page 63:
When installing an initial/primary instance, you must copy this
file to the $IGHOME/lib/db folder. The installation wizard
provides a reminder about this step.
Note: The JDBC files listed here are the minimum versions
supported. You can use higher build versions of these files.
Keep in mind that the newest builds of the JAR file may not
have been tested with Entrust Identity Enterprise.
JDBC driver class name You will be asked for the name of the SQL Server JDBC
driver class you are using.
com.microsoft.sqlserver.jdbc.SQLServerDriver
Database URL Each JDBC driver defines its own syntax for the URL. Consult
the driver documentation for details.
For the SQL Server thin client driver, the URL will look like:
jdbc:sqlserver://<dbhost>:<dbport>;
databaseName=<dbname>;
or
if you have configured the MS SQL Server to accept
encrypted connection (SSL) then the URL will look
like:
jdbc:sqlserver:/<dbhost>/:<dbport>;
databaseName=<dbname>;encrypt=true;trustServerCert
ificate=true;
Note: This is the minimum settings for the
Database URL to use the encrypted connection. If
you want to further secure the connection,
please refer MS SLQ Server documentation :
Configure SQL Server Database Engine for
encryption - SQL Server | Microsoft Learn
https://learn.microsoft.com/en-us/dotnet/framew
ork/data/adonet/connection-string-syntax#connec
ting-and-attaching-to-sql-server-express-user-i
nstances
And you need to modify the Database URL
accordingly.
Where:
• dbhost is the name of the server that hosts the SQL
Server database
• dbport is the database server port number, for example:
1433
• dbname is the name of your SQL Server database
SQL Server database user You will be asked for the user name and password of the
password SQL Server database user. You created this user in “To create
an SQL Server database and user account” on page 58.
Entrust Identity Enterprise uses this password together with
the database user to log in to your database.
66 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0
Report any errors or omissions
Table 6: Configuration data for SQL Server (continued)
SQL Server database schema Specify your database schema name. It is dbo by default
name for a user who has administrator privileges, but for a
production system, it is typically the name of the user account
of the owner of the database.
D L
database language
backup 23 DB2 26
DB2 25 MySQL 34
for audit data 22 Oracle 40
MySQL 33 PostgreSQL 50
Oracle 39 SQL Server 58
PostgreSQL 49
sizing 18
SQL Server 57 M
DB2 25 MySQL
configuration 29 configuration 37
language 26 database 33
schema files 27, 35 JDBC 36
drop schema, description 17 language 34
schema file 34
G
Getting help O
Technical Support 12 Oracle
configuration 46
database 39
I JDBC 45
installation language 40
DB2 26 schema file 43
MySQL 34
Oracle 43
PostgreSQL 50 P
SQL Server 59 PostgreSQL 49
configuration 53
69
- A B C D E F G H I J K L M N O P Q R S T U V W X Y Z -
database 49
JDBC 52
language 50
schema file 51
Professional Services 13
S
schema file
DB2 26
drop schema 17
edit for DB2 27
edit for SQL Server 60
MySQL 34
Oracle 43
PostgreSQL 51
SQL Server 60
SQL Server
configuration 65
database 57
language 58
schema file 60
T
Technical Support 12
typographic conventions 7
70 Entrust Identity Enterprise 13.0 Database Configuration Guide Document issue: 6.0