Portal, V6.1
Configure WebSphere Portal to use DB2
This section provides information on how to manually transfer data to the DB2 database you have installed and set up. Follow these steps to transfer WebSphere Portal, and Java Content Repository databases to DB2.
Before you begin:
Ensure that the following prerequisites are met:
- Supported database software is installed.
- Databases and users are set up.
Tips:
- Prerequisites
- Installing DB2
- Create users
- Creating remote databases
- Modifying database properties
- The steps for transferring data to another supported database section provides instructions for manually transferring data. Instead of performing the following steps, use the configuration wizard, which is a graphical user interface, to transfer data to another supported database.
- To run these tasks as a non-root user first run the task chown -R non-root_user WebSphereDir.
- If you are transferring from Oracle, the open_cursors setting should be set to 1500 by default. If you are using Java Content Repository, this value might need to be increased based on the table count in the Java Content Repository schema.
- Be sure that DB2 is started by checking the service. If attempts to restart result in a logon failure message, then go to the DB2 properties and reenter the password.
Steps for transferring data to another supported database
- If you are running a type 2 connection, before transferring data edit the db2cli.ini file. Failure to follow these steps will cause the database transfer to hang at the task action-process-constraints.
- Locate the file C:\Program Files\ibm\SQLLIB\db2cli
- Add the following to the end of the file. Leave an empty line after ReturnAliases=0.
[COMMON] DYNAMIC=1 ReturnAliases=0
- Open a command prompt and change to the directory WP_PROFILE/ConfigEngine.
- Validate configuration properties.
- ConfigEngine.bat validate-database-driver -DTransferDomainList=release,customization,community,jcr,feedback,likeminds
- ConfigEngine.bat validate-database-connection -DTransferDomainList=release,customization,community,jcr,feedback,likeminds
- From the same command prompt as the previous steps, change to the directory WP_PROFILE/bin.
- Stop both WAS and the WebSphere Portal server:
Option Description WAS stopServer.bat server1 -username adminid -password passwd WebSphere Portal stopServer.bat WebSphere_Portal -username adminid -password passwd - Transfer the database:
- Change to the directory WP_PROFILE/ConfigEngine.
- Enter the following commands:
ConfigEngine.bat database-transfer -DTransferDomainList=release,customization,community,jcr,feedback,likeminds
- After running this task, a message is added to the log files to verify that this task was successful. Check the log files. If the configuration fails, verify the values in the wkplc.properties, wkplc_comp.properties, and wkplc_dbtype.properties files and then repeat this step.
- After transferring the database tables, perform a reorg check to improve performance.
Perform this step for each database alias in the property file.
- Connect to a database with the following command:
db2 connect to database_alias user db2adminid using passwordAdditional options might be required if additional security has been installed. Refer to DB2 Universal Database commands by example for links to the command reference.
- After it is connected, run the following command from the DB2 prompt: db2 reorgchk update statistics on table all > xyz.out
- Look in the reorg column for entries marked with a * (star or asterisk) in the file xyz.out. For each line with a *, note the tablename and run the following command for each tablename:
db2 reorg table tablename db2 terminate db2rbind database_name -l db2rbind.out -u db2_admin -p password- The output file db2rbind.out is only created when there is an error for the db2rbind command.
- Change to the directory WP_PROFILE/bin.
- Start the WebSphere Portal server: startServer.bat WebSphere_Portal
Parent topic
Configure WebSphere Portal to use DB2
Previous topic:
Modifying database propertiesNext topic:
Change driver types
Related tasks
Related information
http://www-106.ibm.com/developerworks/db2/library/techarticle/dm-0406dang/index.html