{"id":16,"date":"2013-10-04T17:36:00","date_gmt":"2013-10-04T17:36:00","guid":{"rendered":""},"modified":"2021-08-31T10:12:25","modified_gmt":"2021-08-31T09:12:25","slug":"foolproof-way-of-transferring-websphere-portal-from-derby-to-db2","status":"publish","type":"post","link":"https:\/\/www.srivittal.com\/wp\/?p=16","title":{"rendered":"Foolproof way of transferring WebSphere Portal From Derby to DB2"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"text-align: left;\">Ok. I have seen several pieces of documentation on this. Lots of tutorials out there. However all of the sites and tutorials do not have all the steps mentioned clearly. I am trying to make this as comprehensive as possible. Try this on a Trial or test Portal Server, preferably a VM with a Snapshot taken. This is to ensure that in case something goes pear shaped, you can always go back to the working snapshot.<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">For this exercise, I have two VM&#8217;s.<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">portale.svil.com contains the WebSphere Portal 8.0.0.7 Server<\/div>\n<div style=\"text-align: left;\">connections.svil.com contains the DB2 10.1 Database server<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">I am not covering the basic installation of DB2 or of Portal itself here. I will try and cross link these articles later. For the moment, I am assuming that you already have Portal and DB2 installed, especially that DB2 is installed on a Remote DB2 server instead of on the same server as Portal Server.<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">1. Copy the DB2 JDBC driver jar files from the DB2 server to the Portal server. <\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">cd \/opt\/IBM\/WebSphere\/wp_profile\/PortalServer<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">mkdir dbdrivers<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">cd dbdrivers<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">scp db2inst1@connections.svil.com:\/opt\/IBM\/db2\/V10.1\/java\/* .<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><b>Please Note: <\/b>DB2 usually installed under the lowercase ibm folder like \/opt\/ibm. I have changed this to the Uppercase IBM like \/opt\/IBM for consistency. The above commands are run within the Portal server.<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">2. Take a backup copy of the properties files.<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">cd \/opt\/IBM\/WebSphere\/wp_profile\/ConfigEngine\/properties<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">cp wkplc_dbdomain.properties wkplc_dbdomain.properties.bak<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">cp wkplc_dbtype.properties wkplc_dbtype.properties.bak<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">cp wkplc.properties wkplc.properties.bak<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">3. On the DB2 Server issue the following commands under the instance owner id<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2&nbsp;<\/span><\/span><span style=\"background-color: black; color: white;\">create database wpsdb alias wpsdb PAGESIZE 32 K<\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">create role WP_JCR_CONFIG_USERS<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">create role WP_PZN_CONFIG_USERS<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">create role WP_BASE_CONFIG_USERS<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">GRANT DBADM ON DATABASE TO ROLE WP_JCR_CONFIG_USERS<\/span><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">GRANT DBADM ON DATABASE TO ROLE WP_PZN_CONFIG_USERS<\/span><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">GRANT DBADM ON DATABASE TO ROLE WP_BASE_CONFIG_USERS<br \/><\/span><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">GRANT ACCESSCTRL ON DATABASE TO ROLE WP_JCR_CONFIG_USERS<\/span><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">GRANT ACCESSCTRL ON DATABASE TO ROLE WP_PZN_CONFIG_USERS<\/span><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">GRANT ACCESSCTRL ON DATABASE TO ROLE WP_BASE_CONFIG_USERS<br \/><\/span><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">GRANT DATAACCESS ON DATABASE TO ROLE WP_JCR_CONFIG_USERS <\/span><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">GRANT DATAACCESS ON DATABASE TO ROLE WP_PZN_CONFIG_USERS<\/span><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">GRANT DATAACCESS ON DATABASE TO ROLE WP_BASE_CONFIG_USERS<br \/><\/span><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">GRANT SECADM ON DATABASE TO ROLE WP_JCR_CONFIG_USERS<\/span><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">GRANT SECADM ON DATABASE TO ROLE WP_PZN_CONFIG_USERS<\/span><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">GRANT SECADM ON DATABASE TO ROLE WP_BASE_CONFIG_USERS <\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><br \/><\/span><\/span><span style=\"background-color: black;\"><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">GRANT ROLE WP_JCR_CONFIG_USERS TO GROUP DB2IADM1<\/span><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">GRANT ROLE WP_PZN_CONFIG_USERS TO GROUP DB2IADM1<\/span><span style=\"color: white;\">db2&nbsp;<\/span><span style=\"color: white;\">GRANT ROLE WP_BASE_CONFIG_USERS TO GROUP DB2IADM1<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">4. Edit the wkplc_dbdomain.properties file<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><\/div>\n<ul style=\"text-align: left;\">\n<li>Change all .DbType=<something> to .DbType=db2<\/something><\/li>\n<\/ul>\n<div style=\"text-align: left;\"><\/div>\n<ul style=\"text-align: left;\">\n<li>Change all .DbURL=<something> to .DbUrl=jdbc:db2:\/\/connections.svil.com:50000\/wpsdb:returnAlias=0;<\/something><\/li>\n<\/ul>\n<div style=\"text-align: left;\"><\/div>\n<ul style=\"text-align: left;\">\n<li>Change all .DbUser=<something> to .DbUser=db2inst1<\/something><\/li>\n<\/ul>\n<div style=\"text-align: left;\"><\/div>\n<ul style=\"text-align: left;\">\n<li>Change all .DbPassword=ReplaceWithYourDbAdminPwd to .DbPassword=<actual password=\"\"><\/actual><\/li>\n<\/ul>\n<div style=\"text-align: left;\"><\/div>\n<ul style=\"text-align: left;\">\n<li>Change all .DBA.DbUser=<something> to .DBA.DbUser=db2inst1<\/something><\/li>\n<\/ul>\n<div style=\"text-align: left;\"><\/div>\n<ul style=\"text-align: left;\">\n<li>Change all .DBA.DbPassword=ReplaceWithYourDBAPwd to .DBA.DbPassword=<actual password=\"\"><\/actual><\/li>\n<\/ul>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">5. Save and close the file<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">6. Edit the wkplc_dbtype.properties file<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><\/div>\n<ul style=\"text-align: left;\">\n<li>Change db2.DbLibrary=<something> to db2.DbLibrary=\/opt\/IBM\/WebSphere\/wp_profile\/PortalServer\/dbdrivers\/db2jcc4.jar;\/opt\/IBM\/WebSphere\/wp_profile\/PortalServer\/dbdrivers\/db2jcc_license_cu.jar<\/something><\/li>\n<\/ul>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">7. Save and close the file<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">8. Edit wkplc.properties<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">Change WasPassword=ReplaceWithYourPassword to WasPassword=<password><actual password=\"\"><\/actual><\/password><\/div>\n<div style=\"text-align: left;\">Change LTPAPassword=ReplaceWithYourPassword to LTPAPassword=<password><actual password=\"\"><\/actual><\/password><\/div>\n<div style=\"text-align: left;\">Change PortalAdminPwd=ReplaceWithYourPwd to PortalAdminPwd=<password><actual password=\"\"><\/actual><\/password><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">9. Save and close the file<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">10. On the Database server <connections .svil.com=\"\">, run the following commands<\/connections><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2set DB2COMM=TCPIP<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2set DB2_EVALUNCOMMITTED=YES<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2set DB2_INLIST_TO_NLJN=YES<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2 &#8220;UPDATE DBM CFG USING query_heap_sz 32768&#8221;<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2 &#8220;UPDATE DBM CFG USING sheapthres 0&#8221;<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2 &#8220;CREATE DB wpsdb  alias wpsdb using codeset UTF-8 territory us PAGESIZE 32 K&#8221;<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2 &#8220;UPDATE DB CFG FOR wpsdb USING applheapsz 4096&#8221;<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2 &#8220;UPDATE DB CFG FOR wpsdb USING app_ctl_heap_sz 1024&#8221;<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2 &#8220;UPDATE DB CFG FOR wpsdb USING stmtheap 32768&#8221;<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2 &#8220;UPDATE DB CFG FOR wpsdb USING dbheap 2400&#8221;<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2 &#8220;UPDATE DB CFG FOR wpsdb USING locklist 1000&#8221;<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2 &#8220;UPDATE DB CFG FOR wpsdb USING logfilsiz 4000&#8221;<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2 &#8220;UPDATE DB CFG FOR wpsdb USING logprimary 12&#8221;<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2 &#8220;UPDATE DB CFG FOR wpsdb USING logsecond 20&#8221;<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2 &#8220;UPDATE DB CFG FOR wpsdb USING logbufsz 32&#8221;<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2 &#8220;UPDATE DB CFG FOR wpsdb USING avg_appls 5&#8221;<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2 &#8220;UPDATE DB CFG FOR wpsdb USING locktimeout 30&#8221;<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2 &#8220;UPDATE DB CFG FOR wpsdb using AUTO_MAINT off&#8221;<\/span><\/span><br \/><span style=\"background-color: black;\"><span style=\"color: white;\"><br \/><\/span><\/span><span style=\"background-color: black;\"><span style=\"color: white;\"><br \/><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">db2 &#8220;CONNECT TO wpsdb USER db2inst1 USING <password>&#8220;<\/password><\/span><\/span><br \/><span style=\"background-color: black;\"><span style=\"color: white;\"><br \/><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><password>db2 &#8220;CREATE BUFFERPOOL ICMLSFREQBP4 SIZE 1000 PAGESIZE 4 K&#8221;&nbsp;<\/password><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><password>db2 &#8220;CREATE BUFFERPOOL ICMLSVOLATILEBP4 SIZE 16000 PAGESIZE 4 K&#8221;<\/password><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><password>db2 &#8220;CREATE BUFFERPOOL ICMLSMAINBP32 SIZE 16000 PAGESIZE 32 K&#8221;<\/password><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><password>db2 &#8220;CREATE BUFFERPOOL CMBMAIN4 SIZE 1000 PAGESIZE 4 K&#8221;<\/password><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><password>db2 &#8220;CREATE REGULAR TABLESPACE ICMLFQ32 PAGESIZE 32 K MANAGED BY SYSTEM USING (&#8216;ICMLFQ32&#8217;) BUFFERPOOL ICMLSMAINBP32&#8221;<\/password><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><password>db2 &#8220;CREATE REGULAR TABLESPACE ICMLNF32 PAGESIZE 32 K MANAGED BY SYSTEM USING (&#8216;ICMLNF32&#8217;) BUFFERPOOL ICMLSMAINBP32&#8221;<\/password><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><password>db2 &#8220;CREATE REGULAR TABLESPACE ICMVFQ04 PAGESIZE 4 K MANAGED BY SYSTEM USING (&#8216;ICMVFQ04&#8217;) BUFFERPOOL ICMLSVOLATILEBP4&#8221;<\/password><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><password>db2 &#8220;CREATE REGULAR TABLESPACE ICMSFQ04 PAGESIZE 4 K MANAGED BY SYSTEM USING (&#8216;ICMSFQ04&#8217;) BUFFERPOOL ICMLSFREQBP4&#8221;<\/password><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><password>db2 &#8220;CREATE REGULAR TABLESPACE CMBINV04 PAGESIZE 4 K MANAGED BY SYSTEM USING (&#8216;CMBINV04&#8217;) BUFFERPOOL CMBMAIN4&#8221;<\/password><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><password>db2 &#8220;CREATE SYSTEM TEMPORARY TABLESPACE ICMLSSYSTSPACE32 PAGESIZE 32 K MANAGED BY SYSTEM USING (&#8216;icmlssystspace32&#8217;) BUFFERPOOL ICMLSMAINBP32&#8221;<\/password><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><password>db2 &#8220;CREATE SYSTEM TEMPORARY TABLESPACE ICMLSSYSTSPACE4 PAGESIZE 4 K MANAGED BY SYSTEM USING (&#8216;icmlssystspace4&#8217;) BUFFERPOOL ICMLSVOLATILEBP4&#8221;<\/password><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><password>db2 &#8220;CREATE USER TEMPORARY TABLESPACE ICMLSUSRTSPACE4 PAGESIZE 4 K MANAGED BY SYSTEM USING (&#8216;icmlsusrtspace4&#8217;) BUFFERPOOL ICMLSVOLATILEBP4&#8221;<\/password><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><password>db2 &#8220;UPDATE DB CFG FOR wpsdb USING DFT_QUERYOPT 2&#8221;<\/password><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><password>db2 &#8220;UPDATE DB CFG FOR wpsdb USING PCKCACHESZ 16384&#8221;<\/password><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><password>db2 &#8220;DISCONNECT wpsdb&#8221;<\/password><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><password>db2 &#8220;TERMINATE&#8221; <\/password><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">11. On the portale.svil.com server switch to the ConfigEngine directory and run the ConfigEngine.sh task<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">cd \/opt\/IBM\/WebSphere\/wp_profile\/ConfigEngine<\/span><\/span><br \/><span style=\"background-color: black;\"><span style=\"color: white;\">.\/ConfigEngine.sh validate-database-driver<\/span><\/span><br \/><span style=\"background-color: black;\"><span style=\"color: white;\">.\/ConfigEngine.sh validate-database-connection<\/span><\/span><br \/><span style=\"background-color: black;\"><span style=\"color: white;\"><br \/><\/span><\/span><span style=\"background-color: red;\">Only if the above 2 commands succeed, proceed to the next step<\/span><br \/><span style=\"background-color: black;\"><span style=\"color: white;\"><br \/><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\"><tt>.\/ConfigEngine.sh <i>setup-database<\/i><\/tt><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">12. From the connections.svil.com server issue the following commands<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">cd ~<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">scp wasadmin@portale.svil.com:\/opt\/IBM\/WebSphere\/PortalServer\/jcr\/wp.content.repository.install\/lib\/wp.content.repository.install.jar .<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">scp wasadmin@portale.svil.com:\/opt\/IBM\/WebSphere\/wp_profile\/PortalServer\/jcr\/config\/registerCollationUDFTemplate.sql .<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">cd ~\/sqllib\/function<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">\/opt\/IBM\/db2\/V10.1\/java\/jdk64\/bin\/jar -xvf ~\/wp.content.repository.install.jar icm\/CollationUDF.class<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">13. Edit the ~\/registerCollationUDFTemplate.sql and change all occurrences of <schema> to jcr.<\/schema><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">14. Issue the following commands<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><span style=\"color: white;\"><span style=\"background-color: black;\"><tt>db2 connect to <i>wpsdb<\/i> user<i> db2inst1<\/i><\/tt><tt> using <i><password><\/password><\/i><\/tt><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"color: white;\"><span style=\"background-color: black;\"><tt>db2 -tvf<i> ~<\/i><\/tt><tt>\/registerCollationUDFTemplate.sql<\/tt><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"color: white;\"><span style=\"background-color: black;\"><tt>db2 terminate<\/tt><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"color: white;\"><span style=\"background-color: black;\"><tt>db2stop<\/tt><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><tt><span style=\"color: white;\"><span style=\"background-color: black;\">db2start<\/span><\/span><\/tt><\/div>\n<div style=\"text-align: left;\"><tt><span style=\"color: white;\"><span style=\"background-color: black;\">db2 connect to wpsdb user db2inst1 using <password><\/password><\/span><\/span><\/tt><\/div>\n<div style=\"text-align: left;\"><tt><span style=\"color: white;\"><span style=\"background-color: black;\"><tt>values <\/tt><tt><i>schema<\/i><\/tt><tt>.sortkeyj('abc','en')<\/tt><\/span><\/span><\/tt><\/div>\n<div style=\"text-align: left;\"><tt><span style=\"color: white;\"><span style=\"background-color: black;\"><tt>db2 terminate <\/tt>&nbsp;<\/span><\/span> <\/tt><\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">15. You should receive a single record for the above values schema.sortkeyj statement.<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">16. On the portale.svil.com server issue the following command<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">cd \/opt\/IBM\/WebSphere\/wp_profile\/PortalServer\/jcr\/lib\/com\/ibm\/icm<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"background-color: black;\"><span style=\"color: white;\">vi icm.properties<\/span><\/span> <\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">17. Edit the icm.properties file and add the following section to the end of the file<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"height: px; width: 670px;\">\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\"># Enable\/Disable collation support for all DB2 platforms<\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\"># Disabled by default<\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\">jcr.query.collation.db2.enabled = false<\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\"> <\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\"># Database specific collation mappings<\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\"># These mappings apply map a Java locale name into a collation name<\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\"># supported by the underlying database.<\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\"># Example mappings for DB2 platform<\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\"> <\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\"># English<\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\">jcr.query.collation.en = en<\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\"> <\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\"># Swedish<\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\">jcr.query.collation.sv = sv<\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\">&nbsp;<\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\">jcr.query.collation.zh = zh<\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\">jcr.query.collation.de = de<\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\">jcr.query.collation.da = da<\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\">jcr.query.collation.hu = hu<\/span><\/span><\/pre>\n<pre><span style=\"background-color: black;\"><span style=\"color: white;\">jcr.query.collation.jp = jp<\/span><\/span><\/pre>\n<\/div>\n<div style=\"text-align: left;\"><\/div>\n<p>18. <b>Please NOTE:&nbsp; <\/b>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.<\/p>\n<p><fill administration=\"\" and=\"\" area=\"\" creating=\"\" db2=\"\" for=\"\" init.d=\"\" instance=\"\" instructions=\"\" scripts=\"\" server=\"\" setup=\"\" start=\"\" starts=\"\" system=\"\" the=\"\" this=\"\" to=\"\" when=\"\" with=\"\"> <\/fill><\/p>\n<p><b><span style=\"background-color: white;\">19. Take a snapshot at this point in time for both the VM&#8217;s. If this go pear shaped we can restore back to this state and continue.<\/span><\/b><\/p>\n<p>20. Start the VM&#8217;s again and ensure that the DB2 instances are started<\/p>\n<p>21. Login to the portale.svil.com server and issue the following commands. Ensure Portal <span style=\"background-color: white;\">server is stopped.<\/span><br \/><span style=\"background-color: black;\"><br \/><\/span><span style=\"background-color: black;\"><span style=\"color: white;\">cd \/opt\/IBM\/WebSphere\/wp_profile\/ConfigEngine<\/span><\/span><br \/><span style=\"background-color: black;\"><span style=\"color: white;\"><tt>.\/ConfigEngine.sh validate-database -DWasPassword=<i><password><\/password><\/i><\/tt><\/span><\/span><br \/><span style=\"background-color: black;\"><span style=\"color: white;\"><tt><i>cp ..\/PortalServer\/jcr\/lib\/com\/ibm\/icm\/icm.properties ~<\/i><\/tt><\/span><\/span><br \/><span style=\"color: white;\"><tt><i style=\"background-color: black;\"><tt>.\/ConfigEngine.sh database-transfer<\/tt><\/i><\/tt><\/span><\/p>\n<p><span style=\"background-color: white;\">22. Verify that everything went well by editing the ConfigTrace.log file like<\/span><br \/><span style=\"background-color: white;\"><br \/><\/span><span style=\"background-color: black;\"><span style=\"color: white;\">vi .\/log\/ConfigTrace.log <\/span><\/span><\/p>\n<p>23.Connect to the connections.svil.com database server and perform a reorg check to improve performance. Issue the following commands<\/p>\n<div style=\"height: px; width: 670px;\">\n<pre>db2 connect to wpsdb user <i>db2inst1 using <password><\/password><\/i><\/pre>\n<pre><tt>db2 reorgchk update statistics on table all &gt; xyz.out&nbsp;<\/tt><\/pre>\n<pre><tt>&nbsp;<\/tt><\/pre>\n<pre><tt>24. Edit the file and for each file that is marked with an asterix (*)<\/tt><\/pre>\n<pre><tt>in the REORG Column run the following command:<\/tt><\/pre>\n<pre><tt><br \/><\/tt><\/pre>\n<pre><tt>db2 reorg table <\/tt><tt><i>tablename<\/i><\/tt><\/pre>\n<pre><tt>&nbsp;<\/tt><\/pre>\n<pre><tt>25. <\/tt>After you have run the <tt>reorg<\/tt> command for each <i>tablename<\/i>,&nbsp;<\/pre>\n<pre>run the following commands:&nbsp;<\/pre>\n<pre>&nbsp;<\/pre>\n<p><tt>db2 terminate<\/tt><br \/><tt>db2rbind <\/tt><tt><i>database_name<\/i><\/tt><tt> -l db2rbind.out -u <\/tt><tt><i>db2_admin<\/i><\/tt> <tt>-p <\/tt><tt><i>password<\/i><\/tt><\/p>\n<pre><tt><tt><\/tt> <\/tt><\/pre>\n<pre><span style=\"background-color: red;\"><tt>26. !!!!! BEFORE YOU START THE SERVER PERFORM THE FOLLOWING !!!!<\/tt><\/span><\/pre>\n<pre><tt><br \/><\/tt><\/pre>\n<pre><tt>cp \/opt\/IBM\/WebSphere\/wp_profile\/PortalServer\/dbdrivers\/*.jar \/opt\/IBM\/WebSphere\/AppServer\/lib<\/tt><\/pre>\n<pre><tt><br \/><\/tt><\/pre>\n<pre><tt><br \/><\/tt><\/pre>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Ok. I have seen several pieces of documentation on this. Lots of tutorials out there. However all of the sites and tutorials do not have all the steps mentioned clearly. I am trying to make this as comprehensive as possible. Try this on a Trial or test Portal Server, preferably a VM with a Snapshot &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,18,15,17,13,19,16],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-centos","category-configengine","category-database","category-installation","category-portal","category-transfer","category-websphere","entry entry-center"],"_links":{"self":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16"}],"version-history":[{"count":1,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":76,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/16\/revisions\/76"}],"wp:attachment":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}