Creating necessary JDBC Provider and Data Source
You will have to
- First create a
wpdbJDBC_db2
JDBC Provider for connecting to DB2 - Configure a
wpdbDS
as datasource, use same value for name and JNDI name - Restart the server and make sure that Test Connection is successful for this Data source
Important Note: When you create a new DataSource, you might create a new J2C security alias with it. In order for security alias to get effective, the server must be restarted.
Modifying the .properties file
The Database configuration is spread into three different configuration files so you will have to update all those configuration files.
wkplc_dbtype.properties
This configuration file defines the database properties such as Driver class name, JDBC Class path, etc. Configure it like this.
###############################################################################
# DB2 Properties
###############################################################################
# DbDriver: The name of class SqlProcessor will use to import SQL files
# For DB2 Type 2 driver use COM.ibm.db2.jdbc.app.DB2Driver
# For DB2 Type 4 driver use com.ibm.db2.jcc.DB2Driver
db2.DbDriver=com.ibm.db2.jcc.DB2Driver
# DbLibrary: The directory and name of the zip/jar file containing JDBC driver class
# For DB2 Type 2 driver use /java/db2java.zip
# For DB2 Type 4 driver use /java/db2jcc.jar;/java/db2jcc_license_cu.jar
# Please use the system specific file separator names, e.g. for windows semicolon and for unix colon.
db2.DbLibrary=/opt/ibm/tdsdb2V9.1/java/db2jcc.jar;/opt/ibm/tdsdb2V9.1/java/db2jcc_license_cu.jar
# JdbcProviderName: The name of jdbc provider to be used
db2.JdbcProviderName=wpdbJDBC_db2
wkplc_comp.properties
This file has detailed information for each of the database domains. You will have to enter following set of properties for each of the database domains. This is sample for release domain.
release.DbType=db2
release.DbName=WPSDB
release.DbSchema=release
release.DataSourceName= wpdbDS
release.DbUrl=jdbc:db2://localhost:50000/wpsdb
release.DbUser=db2admin
release.DbPassword=db2admin
Similarly enter values for other domains such as jcr,customization,community, likeminds,..
Executing Configuration task
Once the properties files are setup we will have to execute configuration tasks to first verify the data entered is correct or not and then to actually do the database transfer.
- First execute this command to verify the values that you entered in wkplc_dbtype.properties file
ConfigEngine.bat validate-database-driver -DTransferDomainList=release,customization,community,
jcr,feedback,likeminds
Important Note: When i tried executing validate-database-driver configuration task with value of db2.DbLibrary equal to /opt/ibm/tdsdb2V9.1/java/db2jcc.jar;/opt/ibm/tdsdb2V9.1/java/db2jcc_license_cu.jar, i got invalid separate character. So i removed the ; and part after it and retried executing the validate-database-driver and it worked. After that i did revert back to the original or else the next validation fails - Now verify the information that you entered in wkplc_comp.properties file by connecting to the data sources by executing this command
./ConfigEngine.sh validate-database-driver -DTransferDomainList=release,customization,community,jcr,feedback,likeminds - Once both the verifications are completed stop both server1 and WebSphere_Portal server
- Now start the actual DB transfer configuration task by executing
ConfigEngine.bat database-transfer -DTransferDomainList=release,customization,community,jcr,
feedback,likeminds
On my local machine with both Portal and DB2 on same machine this task took 30 minutes to complete.
Check the wp_profile\ConfigEngine\log\portal-database-transfer.log at the end to make sure that the database transfer was successful.
ReplyDeleteWe are leading responsive website designing and development company in Noida.
We are offering mobile friendly responsive website designing, website development, e-commerce website, seo service and sem services in Noida.
Responsive Website Designing Company in Noida
Website Designing Company in Noida
SEO Services in Noida
SMO Services in Noida