Ant target: CreateDatabase

CreateDatabase creates a database on a local or remote server for use by the WebSphere Commerce instance.

Important: This Ant target is to be used only as a part of WebSphere Commerce instance creation.
The CreateDatabase target creates:
  • DB2A database on a local or remote database server
  • For IBM i OS operating system A Commerce instance user profile and the Commerce schema library
  • OracleA 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



The file must exist for this Ant target to work. For information about generating the properties file, see Ant targets.

Required parameters

The name of the WebSphere Commerce instance with which you are working (for example, demo).
SolarisLinuxAIXWindowsThe database administrator's password.
The WebSphere Commerce database user's password.


  • SolarisLinuxAIXWC_installdir/bin/ -DinstanceName=instance_name -DdbaPassword=dbaPassword -DdbUserPassword=dbUserPassword CreateDatabase
  • For IBM i OS operating systemWC_installdir/bin/ -DinstanceName=instance_name -DdbUserPassword=dbUserPassword CreateDatabase
  • WindowsWC_installdir/bin/config_ant.bat -DinstanceName=instance_name -DdbaPassword=dbaPassword -DdbUserPassword=dbUserPassword CreateDatabase