Reference > ANT targets > Ant targets: Creating and configuring targets > CreateInstance > ConfigureDatabase
ANT target: CreateDatabase
CreateDatabase creates a database on a local or remote server for use by the WCS instance.
The CreateDatabase target creates:
- A database on a local or remote database server
- A Commerce instance user profile and the Commerce schema library
- A table space and a user with the following privileges in the table space:
- Create procedure
- Create sequence Create session
- Create synonym
- Create table
- Create trigger
- Create view
- Create materialized view
Called by:
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).
- dbaPassword
- The database administrator's password.
- dbUserPassword
- The WebSphere Commerce database user's password.
Example
- WC_INSTALL/bin/config_ant.sh -DinstanceName=instance -DdbaPassword=dbaPassword -DdbUserPassword=dbUserPassword CreateDatabase
- WC_INSTALL/bin/config_ant.sh -DinstanceName=instance -DdbUserPassword=dbUserPassword CreateDatabase
- WC_INSTALL/bin/config_ant.bat -DinstanceName=instance -DdbaPassword=dbaPassword -DdbUserPassword=dbUserPassword CreateDatabase
Related concepts