Running the database connection validation utility
About this task
The database connection validation utility retrieves parameters from WebSphere Commerce configuration files to test and validate the connection. The configuration files, which this utility retrieves data from, includes the wc-server.xml and createInstance.properties files. The utility tests the primary connection, which is obtained from the input JDBC URL. The utility also tests the connection through the alldbconnector utility. For more information about the alldbconnector utility, see Connection acquisition for utilities and Ant tasks.
If the primary connection fails, a build exception occurs and the utility constructs a secondary connection to validate. If the secondary connection fails, the utility swallows the exception and outputs an error code within the generated log file. The utility retrieves the information about the primary connection from the input JDBC URL, and retrieves the information for the secondary connection from the database input parameters. For example, if the database is DB2 and the input JDBC URL is a type 4 connection, the utility constructs a type 2 JDBC URL to test and validate a secondary connection.
- Embedded. WebSphere Commerce supports only embedded connections. This utility also tests the Network Client, and ignores any class not found exception
- Type 2 and Type 4 connections
- Thin and Thick client connections
- Native and Toolbox connections
For more information about the tool and the files that the tool retrieves data from, see Database connection validation
<wcsDbValidation>
tag in a configuration file. To overwrite the parameters, you
must use a semi-colon, (;)
, to separate the values. For example, if your database
name does not change, you can replace the ${dbName}
parameter in the tag to
hardcode your database name, such as WCS
. If any parameters are missing from the
configuration files, the tool attempts to retrieve the missing parameter information from the JDBC
URL.Procedure
Results
- WC_installdir/instances/instance_name/logs
- WC_installdir\instances\instance_name\logs
- WCDE_installdir\logs
- WC_installdir/logs