You can use the mqsicreatedb command or the DB2 Control Center to create a DB2 database. Alternatively, if you prefer, you can use any other method supported by DB2 (including command line or batch files); refer to the DB2 documentation for details of how to do this.
When you create a broker, you specify the user name and password that are used to connect to the broker database. The process of creating a broker creates the necessary broker tables in the user's schema within the broker database if the tables do not already exist. DB2 authenticates the user name using operating system user management; you do not have to define the user name to DB2 itself.
If you use the DB2 command line to create the databases, you must bind the db2cli package to the database. You do not have to do this if you used the DB2 Control Center wizard, the mqsicreatedb command, or if you created the broker with the Default Configuration wizard.
db2cmd db2 CONNECT to <YourBrokerDatabaseName>
db2 bind C:\SQLLIB\BND\@db2ubind.lst GRANT PUBLIC db2 bind C:\SQLLIB\BND\@db2cli.lst GRANT PUBLIC