Creating and populating database tables for assets in DB2 with batch files
Before you begin
If you are using IBM WebSphere® Application Server and will be using the server setup application on a supported operating system other than z/OS®, you can skip this task because the server setup application can create and configure the databases for you.
If you prefer to create the database and tables manually, see Creating database tables for assets in DB2 manually.
You can create the database and tables automatically by running batch files. DB2 must already be installed and running. Ensure that you know the location of the SQL scripts that are included in the installation media. The location is install_location\ram\DatabaseScripts\DB2 if you installed by using Installation Manager. You must also know the installation directory for DB2 (typically C:\Program Files\IBM\SQLLIB for Windows and opt/IBM/DB2/V10.1 for Linux, AIX®, or Linux for zSeries.
On Linux, AIX, or Linux for zSeries, log in as a user with sufficient privileges to create the database. For example, log in as the DB2 instance owner. The default user is db2inst1.
- dbcreate_populate.bat
- dbcreate_populate.sh
- dbcreate_populate_zLinux.sh
- dbcreate.sql
- RAMSCHEMA_DB2.sql
- bootStrap_DB2.sql
Procedure
What to do next
- If you do not already have an existing Rational Team Concert server create the database for lifecycle management. See Creating databases for asset lifecycles in DB2.
- If you already have Rational Team Concert:
- If you are using WebSphere Application Server:
- If you have not deployed the server setup application, deploy it to your server or cluster. To do so, see deploying to a server or deploying to a cluster.Restriction: To create and use a cluster of application servers, you must have IBM WebSphere Application Server Network Deployment (ND).
If you are installing to a WebSphere Application Server cluster and you need to install Rational Team Concert™, you will also have to create a single application server instance for Rational Team Concert.
Then, use the server setup application to configure WebSphere Application Server to connect to your databases. If you have deployed the server setup application to your server or cluster, see Deploying and configuring application files by using the server setup application.
- If you are using Apache Tomcat:
Configure Apache Tomcat and deploy the Rational Asset Manager application files. See Deploying the Rational Asset Manager server applications on Tomcat 6 or 7.