runSQL utility

The runSQL utility runs SQL statements defined in one or more files against a database.


Command syntax


Parameter values

A system property called WCInstallDir must also be set (e.g. DWCInstallDir=/opt/WebSphere/CommerceServer90). This will normally be set by the calling script. The dbName can be in one of two styles. If it is a JDBC URL, it has one of the following forms:

In this style, the dbUser and dbPassword parameters are required. If dbName is a hostname, it has the form:

where name is the database name. In this style, the dbType, dbUser and dbPassword parameters are required.


Example

Example usage with a URL:

Example usage with a profile:

Example usage with the 'default' profile:


Related tasks
Configure central database access to the Utility Docker container