Database configuration parameters
To connect the supported databases and the trading partner UI to ITXA and to enable the command line utilities, configure properties according to your database type.
Where to configure
- ITXA database properties are configured in the dbprops.cfg file. See Configuring the ITXA and Trading Partner UI databases.
- Trading partner UI properties are configured in the server.xml file. See Configuring a web server for the Trading Partner UI and Configuring the ITXA and Trading Partner UI databases.
- Properties are configured for your host application as specified in Database configuration for host applications.
SPE database properties, trading partner UI properties, and (as applicable) host application database properties must have the same values.
Derby
This database is created when the SPE spedeploy-pack or the spedbinit command is run.
If the database already exists, these commands update the database. They do not recreate it.
A Derby database does not need to be created in advance.
Property type | Syntax or example | Configuration notes |
---|---|---|
Driver | Default: org.apache.derby.jdbc.ClientDriver |
No configuration is needed. The javax.persistence.jdbc.driver takes the derbyclient.jar JDBC driver that is included in the spe_install_dir/jars directory. |
Database URL | jdbc:derby//db_server:port/database_name where
Example: |
The URL for a Derby database can include the user ID and password.
Restriction: The
SPE database and the Trading
Partner UI configuration files must reference the same server, port, and database name.
|
User ID | UserId Default:
Example: |
The user ID can be included in the database URL.
Restriction: The SPE database and the Trading Partner
UI configuration files must reference the same user ID.
|
Password | Password Default:
Example: |
The password can be included in the database URL.
Restriction: The SPE database and the Trading Partner
UI configuration files must reference the same password.
Important: To encrypt the database password, use the spesetdbpsw
command.
|
DB2
This database must be created before the ITXA spedeploy-pack or the spedbinit command is run.
If the database already exists, these commands update the database. They do not recreate it.
A minimum page size of 8k (8192) is required on DB2® databases to support ITXA. If not specified, a default DB2 page size of 4k (4096) is used.
Property type | Syntax or example | Configuration notes |
---|---|---|
Driver | Default: com.ibm.db2.jcc.DB2Driver |
The JDBC driver JAR file is not installed by default. Place it in these directories:
|
Database URL | jdbc:db2://db_server:port/database_name where
Example: |
Restriction: The ITXA database and the Trading Partner UI configuration files must
reference the same server, port, and database name.
|
User ID |
Default: |
Restriction: The ITXA database and the Trading Partner UI configuration files must
reference the same user ID.
Specify the user ID on a separate line. Do not include the user ID in the URL. |
Password |
Default: |
Restriction: The SPE
database and the Trading Partner UI configuration files must reference the same password.
Specify the password on a separate line. Do not include the password in the URL. Important: To encrypt the database password, use the spesetdbpsw
command.
|
Microsoft SQL Server
This database must be created before the SPE spedeploy-pack or thespedbinit command is run.
If the database already exists, these commands update the database. They do not recreate it.
Property type | Syntax | Configuration notes |
---|---|---|
Driver | Default:
com.microsoft.sqlserver.jdbc.SQLServerDriver |
The JDBC driver JAR file is not installed by default. Place it in these directories:
|
Database URL | jdbc:sqlserver://host:port;DatabaseName=database_name where
Example: |
Restriction: The ITXA database and the Trading Partner UI configuration files must
reference the same server, port, and database name values.
|
User ID | UserId Default:
|
Restriction: The ITXA database and the Trading Partner UI configuration files must
reference the same user ID.
Specify the user ID on a separate line. Do not include the user ID in the URL. |
Password | Password Default:
|
Restriction: The ITXA database and the Trading Partner UI configuration files must
reference the same password.
Specify the password on a separate line. Do not include the password in the URL. Important: To encrypt the database password, use the spesetdbpsw
command.
|
Oracle
This database must be created before the ITXA spedeploy-pack or the spedbinit command is run.
Property type | Syntax | Configuration notes |
---|---|---|
Driver | Default: Oracle.jdbc.OracleDriver |
The JDBC driver JAR file is not installed by default. Place it in these directories:
|
Database URL |
For Oracle service name:
For Oracle SID:
where
Example: For Oracle service name:
For Oracle SID:
|
Restriction: The ITXA database and the Trading Partner UI configuration files must
reference the same port and database name.
|
User ID | UserId Default:
|
Restriction: The ITXA database and the Trading Partner UI configuration files must
reference the same user ID.
Specify the user ID on a separate line. Do not include the user ID in the URL. |
Password | Password Default:
|
Restriction: The ITXA database and the Trading Partner UI configuration files must
reference the same password.
Specify the password on a separate line. Do not include the password in the URL. Important: To encrypt the database password, use the spesetdbpsw
command.
|
Creating Oracle user with associated grants
CREATE USER &&USER_NAME IDENTIFIED BY <password>
DEFAULT TABLESPACE &&USER_NAME
TEMPORARY TEABLESPACE TEMP
PROFILE DEFAULT
ACCOUNT UNLOCK;
GRANT RESOURCE, connect,
SELECT_CATALOG_ROLE TO &&USER_NAME;
ALTER USER &&USER_NAME DEFAULT ROLE all;
GRANT QUERY REWRITE TO &&USER_NAME;
GRANT UNLIMITED TABLESPACE TO &&USER_NAME;
GRANT CREATE TABLE TO &&USER_NAME;
GRANT CREATE VIEW TO &&USER_NAME;