Running the setup script with command line options

The setupGSDB script lets you provide information on the command line to reduce the number of prompts from the script.

Before you begin

Procedure

From a command line, run the script for your operating system.
Operating system Script
Windows setupGSDB.bat
Linux or UNIX setupGSDB.sh
You can run the setupGSDB scripts with the following options:
-createdb
Creates the database. This option drops any existing database with the same name. It creates the required buffer pool and table space.
-database
Specifies the name of the database. This value overrides the default value of GDSB.
-userid administration_user_ID
Specifies the name of the DB2 administrator user ID that is used to create the database.
-password administration_user_ID
Specifies the password for the DB2 administrator user ID.
-noprompt
Indicates that no prompts will display. This option runs the script in silent mode. Any missing information causes the script to fail.

Example


Feedback