db2 GRANT ACCESSCTRL ON DATABASE TO ROLE WP_JCR_CONFIG_USERSdb2 GRANT ACCESSCTRL ON DATABASE TO ROLE WP_PZN_CONFIG_USERSdb2 GRANT ACCESSCTRL ON DATABASE TO ROLE WP_BASE_CONFIG_USERS
db2 GRANT DATAACCESS ON DATABASE TO ROLE WP_JCR_CONFIG_USERS db2 GRANT DATAACCESS ON DATABASE TO ROLE WP_PZN_CONFIG_USERSdb2 GRANT DATAACCESS ON DATABASE TO ROLE WP_BASE_CONFIG_USERS
db2 GRANT SECADM ON DATABASE TO ROLE WP_JCR_CONFIG_USERSdb2 GRANT SECADM ON DATABASE TO ROLE WP_PZN_CONFIG_USERSdb2 GRANT SECADM ON DATABASE TO ROLE WP_BASE_CONFIG_USERS
db2 GRANT ROLE WP_JCR_CONFIG_USERS TO GROUP DB2IADM1db2 GRANT ROLE WP_PZN_CONFIG_USERS TO GROUP DB2IADM1db2 GRANT ROLE WP_BASE_CONFIG_USERS TO GROUP DB2IADM1
- Change all .DbType=
to .DbType=db2
- Change all .DbURL=
to .DbUrl=jdbc:db2://connections.svil.com:50000/wpsdb:returnAlias=0;
- Change all .DbUser=
to .DbUser=db2inst1
- Change all .DbPassword=ReplaceWithYourDbAdminPwd to .DbPassword=
- Change all .DBA.DbUser=
to .DBA.DbUser=db2inst1
- Change all .DBA.DbPassword=ReplaceWithYourDBAPwd to .DBA.DbPassword=
- Change db2.DbLibrary=
to db2.DbLibrary=/opt/IBM/WebSphere/wp_profile/PortalServer/dbdrivers/db2jcc4.jar;/opt/IBM/WebSphere/wp_profile/PortalServer/dbdrivers/db2jcc_license_cu.jar
./ConfigEngine.sh validate-database-driver
./ConfigEngine.sh validate-database-connection
Only if the above 2 commands succeed, proceed to the next step
# Enable/Disable collation support for all DB2 platforms
# Disabled by default
jcr.query.collation.db2.enabled = false
# Database specific collation mappings
# These mappings apply map a Java locale name into a collation name
# supported by the underlying database.
# Example mappings for DB2 platform
# English
jcr.query.collation.en = en
# Swedish
jcr.query.collation.sv = sv
jcr.query.collation.zh = zh
jcr.query.collation.de = de
jcr.query.collation.da = da
jcr.query.collation.hu = hu
jcr.query.collation.jp = jp
18. Please NOTE: I have purposefully disabled collation support. Because I want to go through the steps but not really enable collation support at this point in time.
19. Take a snapshot at this point in time for both the VM’s. If this go pear shaped we can restore back to this state and continue.
20. Start the VM’s again and ensure that the DB2 instances are started
21. Login to the portale.svil.com server and issue the following commands. Ensure Portal server is stopped.
cd /opt/IBM/WebSphere/wp_profile/ConfigEngine
./ConfigEngine.sh validate-database -DWasPassword=
cp ../PortalServer/jcr/lib/com/ibm/icm/icm.properties ~
./ConfigEngine.sh database-transfer
22. Verify that everything went well by editing the ConfigTrace.log file like
vi ./log/ConfigTrace.log
23.Connect to the connections.svil.com database server and perform a reorg check to improve performance. Issue the following commands
db2 connect to wpsdb user db2inst1 using
db2 reorgchk update statistics on table all > xyz.out
24. Edit the file and for each file that is marked with an asterix (*)
in the REORG Column run the following command:
db2 reorg table tablename
25. After you have run the reorg command for each tablename,
run the following commands:
db2 terminate
db2rbind database_name -l db2rbind.out -u db2_admin -p password
26. !!!!! BEFORE YOU START THE SERVER PERFORM THE FOLLOWING !!!!
cp /opt/IBM/WebSphere/wp_profile/PortalServer/dbdrivers/*.jar /opt/IBM/WebSphere/AppServer/lib