Reference > ANT targets > Ant targets: Creating and configuring targets > CreateInstance
ANT target: ConfigureDatabase
Overview
ConfigureDatabase creates a database with schema, and populates the schema with the WebSphere Commerce bootstrap data.
Called by:
Calls:
Prerequisites:
The createInstance.properties file must exist for this ANT target to work. For information about generating the properties file, see ANT targets.
Required parameters:
- instance
- The name of the WCS instance with which you are working (for example, demo).
- merchantKey
- The WebSphere Commerce site merchant key.
- siteAdminPassword
- The WebSphere Commerce site administrator's password.
- dbaPassword
- The database administrator's password.
- dbUserPassword
- The WebSphere Commerce database user's password.
Example
- WC_INSTALL/bin/config_ant.sh -DinstanceName=instance -DmerchantKey=merchantKey -DsiteAdminPassword=siteAdminPassword -DdbaPassword=dbaPassword -DdbUserPassword=dbUserPassword ConfigureDatabase
- WC_INSTALL/bin/config_ant.sh -DinstanceName=instance -DmerchantKey=merchantKey -DsiteAdminPassword=siteAdminPassword -DdbUserPassword=dbUserPassword ConfigureDatabase
- WC_INSTALL/bin/config_ant.bat -DinstanceName=instance -DmerchantKey=merchantKey -DsiteAdminPassword=siteAdminPassword -DdbaPassword=dbaPassword -DdbUserPassword=dbUserPassword ConfigureDatabase
Recovery:
- If an error occurs, review the following log files:
- WC_INSTALL/instances/instance/logs/createInstanceANT.log
- WC_INSTALL/instances/instance/logs/createInstanceANT.err.log
- WC_USER/instances/instance/logs/createInstanceANT.log
- WC_USER/instances/instance/logs/createInstanceANT.err.log
- Identify which ANT target of ConfigureDatabase failed.
- Resolve the problem.
- Drop the database or cleanup the Oracle Schema.
- Run the failed target and the remaining subsequent targets OR simply run the ConfigureDatabase target again to call all sub-targets.
- ANT target: CreateDatabase
CreateDatabase creates a database on a local or remote server for use by the WCS instance.
- ANT target: CreateSchema
CreateSchema creates the WebSphere Commerce tables, auxiliaries, keys, indexes, views, and triggers.
- ANT target: EnableTriggersAndPopulateSchema
EnableTriggersAndPopulateSchema creates stored procedures, enables the triggers, and massloads the WebSphere Commerce bootstrap data and NL (supported languages) data. If you choose to use an existing WebSphere Commerce schema, ensure that bootstrap data, stored procedures, or both, do not already exist. Otherwise, this target will not run successfully.
Related concepts