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

ConfigureDatabase

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_name
The name of the WebSphere Commerce instance with which you are working (for example, demo).
SolarisLinuxAIXWindowsdbaPassword
SolarisLinuxAIXWindowsThe database administrator's password.
dbUserPassword
The WebSphere Commerce database user's password.

Example

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