README - DB2 "create database" scripts for InfoSphere MDM Server for PIM
------------------------------------------------------------------------

Use the shell scripts create_pimdb.sh and create_pimdevdb.sh to create a new DB2 database that is needed for InfoSphere MDM Server for PIM, then configures the DB2 parameters per InfoSphere MDM Server for PIM installation guide. These scripts should be run from a DB2 server using DB2 instance owner user id. 

create_pimdb.sh can be used for creating a production database that is needed for InfoSphere MDM Server for PIM production instance. This script creates 15 table spaces that is required for production instance.

create_pimdevdb.sh can be used for creating a development or QA database that is needed for InfoSphere MDM Server for PIM development or QA instance. This script creates 5 table spaces.

Script usage:

./create_pimdb.sh --db=dbname --instowner=instanceowner --cpath=containerpath

./create_pimdevdb.sh --db=dbname --instowner=instanceowner --cpath=containerpath

Where

dbname = Name of the database to be created

instowner = DB2 instance owner. DB2 instance should be created before running this script.

containerpath = Directory name for creating DB2 table space containers, preferably a separate directory with dedicated storage.

Example:

./create_pimdb.sh --db=pimdb --instowner=db2inst1 --cpath=/u01

./create_pimdevdb.sh --db=pimdevdb --instowner=db2inst1 --cpath=/u01
 
