You are on page 1of 7

3/12/13

WebSphere Portal Family wiki : Database Configuration for WebSphere Portal : Steps to Configure WebSphere Portal 6.1.x with DB2 for Windows/UNIX usin

Community Articles > Database Configuration for WebSphere Portal > Steps to Configure WebSphere Portal 6.1.x with DB2 for Windows/UNIX using Type 4 drivers

Steps to Configure WebSphere Portal 6.1.x with DB2 for Windows/UNIX using Type 4 drivers
Added by Hunter T Tweed | Edited by Abstract No abstract provided. Tags: 6.1, 6.1.0, 6.1.0.1, 6.1.5, basic configuration, best, best practice, best practices, configuration, Config, data source, database, datastore, DB2, install, installation, Install Portal, Installing Portal, Portal, Portal 6.1, release database This guide will detail how to configure WebSphere Portal v6.1.x with DB2 for Wndows/UNIX using Type 4 drivers. These steps apply to all DB2 versions for Windows/UNIX supported by WebSphere Portal. If you are unsure whether or not your DB2 version is supported, please review the detailed system requirements for WebSphere Portal: WebSphere Portal Detailed System Requirements Hunter T Tweed on October 28, 2010 | Version 18

Before You Begin

1. Ensure that the database software is installed and upgraded to the supported version. 2. Copy the database driver jar files from the DB2 server to the WebSphere Portal server in some directory. The jar files you will need are: db2jcc.jar db2jcc_cu_license.jar

In this guide, we will be using DB2 v9.1.0.5 with Type 4 drivers, so we will copy the db2jcc.jar and the db2jcc_cu_license.jar files to the WebSphere Portal server.

Creating the Databases

In this section, you will create the databases in the DB2 environment to be used by WebSphere Portal. In Portal v6.1.x, there are six Portal database domains (where "domain" refers to a logical grouping of data): Release Community Customization JCR Likeminds Feedback You can organize this data in however many databases you would like. The recommendation is to use six separate databases. If this is not possible though and you need to combine these domains into single databases, ensure that you use unique values for the domain.DbSchema values in wkplc_comp.properties (this will be covered in the Modifying the ConfigEngine properties section). In this guide, six databases will be created: RELDB COMDB CUSDB JCRDB FDBKDB LMDB

1. The following SQL commands were used to create six databases. If you are only going to use one database, then just create one database.

C R E A T ED Br e l d bu s i n gc o d e s e tU T F 8t e r r i t o r yu sP A G E S I Z E8 1 9 2 ; U P D A T ED BC F GF O Rr e l d bU S I N Ga p p l h e a p s z4 0 9 6 ; U P D A T ED BC F GF O Rr e l d bU S I N Ga p p _ c t l _ h e a p _ s z1 0 2 4 ; U P D A T ED BC F GF O Rr e l d bU S I N Gs t m t h e a p3 2 7 6 8 ; U P D A T ED BC F GF O Rr e l d bU S I N Gd b h e a p2 4 0 0 ; U P D A T ED BC F GF O Rr e l d bU S I N Gl o c k l i s t1 0 0 0 ; U P D A T ED BC F GF O Rr e l d bU S I N Gl o g f i l s i z4 0 0 0 ;

www-10.lotus.com/ldd/portalwiki.nsf/dx/Test

1/7

3/12/13

WebSphere Portal Family wiki : Database Configuration for WebSphere Portal : Steps to Configure WebSphere Portal 6.1.x with DB2 for Windows/UNIX usin

U P D A T ED BC F GF O Rr e l d bU S I N Gl o g f i l s i z4 0 0 0 ; U P D A T ED BC F GF O Rr e l d bU S I N Gl o g p r i m a r y1 2 ; U P D A T ED BC F GF O Rr e l d bU S I N Gl o g s e c o n d2 0 ; U P D A T ED BC F GF O Rr e l d bU S I N Gl o g b u f s z3 2 ; U P D A T ED BC F GF O Rr e l d bU S I N Ga v g _ a p p l s5 ; U P D A T ED BC F GF O Rr e l d bU S I N Gl o c k t i m e o u t3 0 ; U P D A T ED BC F GF O Rr e l d bu s i n gA U T O _ M A I N To f f ; C R E A T ED Bc o m d bu s i n gc o d e s e tU T F 8t e r r i t o r yu sP A G E S I Z E8 1 9 2 ; U P D A T ED BC F GF O Rc o m d bU S I N Ga p p l h e a p s z4 0 9 6 ; U P D A T ED BC F GF O Rc o m d bU S I N Ga p p _ c t l _ h e a p _ s z1 0 2 4 ; U P D A T ED BC F GF O Rc o m d bU S I N Gs t m t h e a p3 2 7 6 8 ; U P D A T ED BC F GF O Rc o m d bU S I N Gd b h e a p2 4 0 0 ; U P D A T ED BC F GF O Rc o m d bU S I N Gl o c k l i s t1 0 0 0 ; U P D A T ED BC F GF O Rc o m d bU S I N Gl o g f i l s i z4 0 0 0 ; U P D A T ED BC F GF O Rc o m d bU S I N Gl o g p r i m a r y1 2 ; U P D A T ED BC F GF O Rc o m d bU S I N Gl o g s e c o n d2 0 ; U P D A T ED BC F GF O Rc o m d bU S I N Gl o g b u f s z3 2 ; U P D A T ED BC F GF O Rc o m d bU S I N Ga v g _ a p p l s5 ; U P D A T ED BC F GF O Rc o m d bU S I N Gl o c k t i m e o u t3 0 ; U P D A T ED BC F GF O Rc o m d bu s i n gA U T O _ M A I N To f f ; C R E A T ED Bc u s d bu s i n gc o d e s e tU T F 8t e r r i t o r yu sP A G E S I Z E8 1 9 2 ; U P D A T ED BC F GF O Rc u s d bU S I N Ga p p l h e a p s z4 0 9 6 ; U P D A T ED BC F GF O Rc u s d bU S I N Ga p p _ c t l _ h e a p _ s z1 0 2 4 ; U P D A T ED BC F GF O Rc u s d bU S I N Gs t m t h e a p3 2 7 6 8 ; U P D A T ED BC F GF O Rc u s d bU S I N Gd b h e a p2 4 0 0 ; U P D A T ED BC F GF O Rc u s d bU S I N Gl o c k l i s t1 0 0 0 ; U P D A T ED BC F GF O Rc u s d bU S I N Gl o g f i l s i z4 0 0 0 ; U P D A T ED BC F GF O Rc u s d bU S I N Gl o g p r i m a r y1 2 ; U P D A T ED BC F GF O Rc u s d bU S I N Gl o g s e c o n d2 0 ; U P D A T ED BC F GF O Rc u s d bU S I N Gl o g b u f s z3 2 ; U P D A T ED BC F GF O Rc u s d bU S I N Ga v g _ a p p l s5 ; U P D A T ED BC F GF O Rc u s d bU S I N Gl o c k t i m e o u t3 0 ; U P D A T ED BC F GF O Rc u s d bu s i n gA U T O _ M A I N To f f ; C R E A T ED Bj c r d bu s i n gc o d e s e tU T F 8t e r r i t o r yu sP A G E S I Z E8 1 9 2 ; U P D A T ED BC F GF O Rj c r d bU S I N Ga p p l h e a p s z4 0 9 6 ; U P D A T ED BC F GF O Rj c r d bU S I N Ga p p _ c t l _ h e a p _ s z1 0 2 4 ; U P D A T ED BC F GF O Rj c r d bU S I N Gs t m t h e a p3 2 7 6 8 ; U P D A T ED BC F GF O Rj c r d bU S I N Gd b h e a p2 4 0 0 ; U P D A T ED BC F GF O Rj c r d bU S I N Gl o c k l i s t1 0 0 0 ; U P D A T ED BC F GF O Rj c r d bU S I N Gl o g f i l s i z4 0 0 0 ; U P D A T ED BC F GF O Rj c r d bU S I N Gl o g p r i m a r y1 2 ; U P D A T ED BC F GF O Rj c r d bU S I N Gl o g s e c o n d2 0 ; U P D A T ED BC F GF O Rj c r d bU S I N Gl o g b u f s z3 2 ; U P D A T ED BC F GF O Rj c r d bU S I N Ga v g _ a p p l s5 ; U P D A T ED BC F GF O Rj c r d bU S I N Gl o c k t i m e o u t3 0 ; U P D A T ED BC F GF O Rj c r d bu s i n gA U T O _ M A I N To f f ; C R E A T ED Bl m d bu s i n gc o d e s e tU T F 8t e r r i t o r yu sP A G E S I Z E8 1 9 2 ; U P D A T ED BC F GF O Rl m d bU S I N Ga p p l h e a p s z4 0 9 6 ; U P D A T ED BC F GF O Rl m d bU S I N Ga p p _ c t l _ h e a p _ s z1 0 2 4 ; U P D A T ED BC F GF O Rl m d bU S I N Gs t m t h e a p3 2 7 6 8 ; U P D A T ED BC F GF O Rl m d bU S I N Gd b h e a p2 4 0 0 ; U P D A T ED BC F GF O Rl m d bU S I N Gl o c k l i s t1 0 0 0 ; U P D A T ED BC F GF O Rl m d bU S I N Gl o g f i l s i z4 0 0 0 ; U P D A T ED BC F GF O Rl m d bU S I N Gl o g p r i m a r y1 2 ; U P D A T ED BC F GF O Rl m d bU S I N Gl o g s e c o n d2 0 ; U P D A T ED BC F GF O Rl m d bU S I N Gl o g b u f s z3 2 ; U P D A T ED BC F GF O Rl m d bU S I N Ga v g _ a p p l s5 ; U P D A T ED BC F GF O Rl m d bU S I N Gl o c k t i m e o u t3 0 ; U P D A T ED BC F GF O Rl m d bu s i n gA U T O _ M A I N To f f ; C R E A T ED Bf d b k d bu s i n gc o d e s e tU T F 8t e r r i t o r yu sP A G E S I Z E8 1 9 2 ; U P D A T ED BC F GF O Rf d b k d bU S I N Ga p p l h e a p s z4 0 9 6 ; U P D A T ED BC F GF O Rf d b k d bU S I N Ga p p _ c t l _ h e a p _ s z1 0 2 4 ; U P D A T ED BC F GF O Rf d b k d bU S I N Gs t m t h e a p3 2 7 6 8 ; U P D A T ED BC F GF O Rf d b k d bU S I N Gd b h e a p2 4 0 0 ; U P D A T ED BC F GF O Rf d b k d bU S I N Gl o c k l i s t1 0 0 0 ; U P D A T ED BC F GF O Rf d b k d bU S I N Gl o g f i l s i z4 0 0 0 ; U P D A T ED BC F GF O Rf d b k d bU S I N Gl o g p r i m a r y1 2 ; U P D A T ED BC F GF O Rf d b k d bU S I N Gl o g s e c o n d2 0 ;

www-10.lotus.com/ldd/portalwiki.nsf/dx/Test

2/7

3/12/13

U P D A T ED BC F GF O Rf d b k d bU S I N Gl o g s e c o n d2 0 ;

WebSphere Portal Family wiki : Database Configuration for WebSphere Portal : Steps to Configure WebSphere Portal 6.1.x with DB2 for Windows/UNIX usin

U P D A T ED BC F GF O Rf d b k d bU S I N Gl o g b u f s z3 2 ; U P D A T ED BC F GF O Rf d b k d bU S I N Ga v g _ a p p l s5 ; U P D A T ED BC F GF O Rf d b k d bU S I N Gl o c k t i m e o u t3 0 ; U P D A T ED BC F GF O Rf d b k d bu s i n gA U T O _ M A I N To f f ;

3. Create the following tablespaces in your JCR database. If you are using one database for all domains, then create these tablespaces in that database:

IMPORTANT: Failure to create these tablespaces will cause the database-transfer to fail IMPORTANT: These tablespace names cannot be altered. You must use the names listed below. C O N N E C TT Oj c r d bU S E Rd b 2 i n s t 1U S I N Gp a s s w o r d ; C R E A T EB U F F E R P O O LI C M L S F R E Q B P 4S I Z E1 0 0 0P A G E S I Z E4K ; C R E A T EB U F F E R P O O LI C M L S V O L A T I L E B P 4S I Z E8 0 0 0P A G E S I Z E4K ; C R E A T EB U F F E R P O O LI C M L S M A I N B P 3 2S I Z E8 0 0 0P A G E S I Z E3 2K ; C R E A T EB U F F E R P O O LC M B M A I N 4S I Z E1 0 0 0P A G E S I Z E4K ; C R E A T ER E G U L A RT A B L E S P A C EI C M L F Q 3 2P A G E S I Z E3 2KM A N A G E DB YS Y S T E MU S I N G( ' I C M L F Q 3 2 ' )B U F F E R P O O LI C M L S M A I N B P 3 2 ; C R E A T ER E G U L A RT A B L E S P A C EI C M L N F 3 2P A G E S I Z E3 2KM A N A G E DB YS Y S T E MU S I N G( ' I C M L N F 3 2 ' )B U F F E R P O O LI C M L S M A I N B P 3 2 ; C R E A T ER E G U L A RT A B L E S P A C EI C M V F Q 0 4P A G E S I Z E4KM A N A G E DB YS Y S T E MU S I N G( ' I C M V F Q 0 4 ' )B U F F E R P O O LI C M L S V O L A T I L E B P 4 ; C R E A T ER E G U L A RT A B L E S P A C EI C M S F Q 0 4P A G E S I Z E4KM A N A G E DB YS Y S T E MU S I N G( ' I C M S F Q 0 4 ' )B U F F E R P O O LI C M L S F R E Q B P 4 ; C R E A T ER E G U L A RT A B L E S P A C EC M B I N V 0 4P A G E S I Z E4KM A N A G E DB YS Y S T E MU S I N G( ' C M B I N V 0 4 ' )B U F F E R P O O LC M B M A I N 4 ; C R E A T ES Y S T E MT E M P O R A R YT A B L E S P A C EI C M L S S Y S T S P A C E 3 2P A G E S I Z E3 2KM A N A G E DB YS Y S T E MU S I N G( ' i c m l s s y s t s p a c e 3 2 ' )B U F F E R P O O LI C M L S M A I N B P 3 2 ; C R E A T ES Y S T E MT E M P O R A R YT A B L E S P A C EI C M L S S Y S T S P A C E 4P A G E S I Z E4KM A N A G E DB YS Y S T E MU S I N G( ' i c m l s s y s t s p a c e 4 ' )B U F F E R P O O LI C M L S V O L A T I L E B P 4 ; D I S C O N N E C Tj c r d b ; T E R M I N A T E ;

Modify the ConfigEngine Properties

In this section, you will prepare the wkplc_comp.properties and wkplc_dbtype.properties files with the DB2 information. Complete the following steps:

1. From the wp_profile/ConfigEngine/properties directory, make a backup of the following files:

wkplc.properties wkplc_dbtype.properties wkplc_comp.properties

2. Edit the wkplc_dbtype.properties file and make the following changes:

d b 2 . D b D r i v e r = c o m . i b m . d b 2 . j c c . D B 2 D r i v e r d b 2 . D b L i b r a r y = / o p t / i b m / d b 2 / V 9 . 1 / j a v a / d b 2 j c c . j a r : / o p t / i b m / d b 2 / V 9 . 1 / j a v a / d b 2 j c c _ l i c e n s e _ c u . j a r d b 2 . J d b c P r o v i d e r N a m e = w p d b J D B C _ d b 2

NOTE: The entry for db2.DbLibrary is an example only for a UNIX environment. Please ensure this is a valid path on your system. NOTE: If using Windows, use a semi-colon to separate the jar file paths in DbLibrary. If using UNIX, use a colon . NOTE: Use forward slash (/) instead of backslash (\).

3. Edit the wkplc_comp.properties file and make the following changes: domain.DbType - The type of database you are configuring. This value should be 'db2'. domain.DbName - The name of the database for this domain. NOTE: This value should be present in the DbUrl. domain.DbSchema - The schema identifier for objects within the database for this domain. NOTE: If you are using a single database or have combined domains into a single database, this value MUST be unique for each domain. domain.DataSourceName - The name of the datasource that will be created in the WebSphere Application Server configuration. NOTE: Do NOT use any of these values: releaseDS, communityDS, customizationDS, jcrDS, likemindsDS, feedbackDS domain.DbUrl - The url used to access your database. NOTE: The URL must use this exact syntax for DB2 with Type 4 drivers: jdbc:db2://<YourDatabaseServer>:<port>/<DbName>:returnAlias=0;. Any other syntax will cause the database transfer to fail. NOTE: The value you set for DbName must be used in this url.

www-10.lotus.com/ldd/portalwiki.nsf/dx/Test

3/7

3/12/13

WebSphere Portal Family wiki : Database Configuration for WebSphere Portal : Steps to Configure WebSphere Portal 6.1.x with DB2 for Windows/UNIX usin

domain.DbUser - The name of the user that will access this database. This user does not exist yet and will be created in the Setting Up Databases section. domain.DbPassword - The password of the DbUser.

For this guide, the following values were used: f e e d b a c k . D b T y p e = d b 2 f e e d b a c k . D b N a m e = f d b k d b f e e d b a c k . D b S c h e m a = F E E D B A C K f e e d b a c k . D a t a S o u r c e N a m e = w p d b D S _ f d b k f e e d b a c k . D b U r l = j d b c : d b 2 : / / m y d b s e r v e r . i b m . c o m : 5 0 0 0 0 / f d b k d b : r e t u r n A l i a s = 0 ; f e e d b a c k . D b U s e r = d b 2 i n s t 1 f e e d b a c k . D b P a s s w o r d = p a s s w o r d l i k e m i n d s . D b T y p e = d b 2 l i k e m i n d s . D b N a m e = l m d b l i k e m i n d s . D b S c h e m a = l i k e m i n d s l i k e m i n d s . D a t a S o u r c e N a m e = w p d b D S _ l m d b l i k e m i n d s . D b U r l = j d b c : d b 2 : / / m y d b s e r v e r . i b m . c o m : 5 0 0 0 0 / l m d b : r e t u r n A l i a s = 0 ; l i k e m i n d s . D b U s e r = d b 2 i n s t 1 l i k e m i n d s . D b P a s s w o r d = p a s s w o r d r e l e a s e . D b T y p e = d b 2 r e l e a s e . D b N a m e = r e l d b r e l e a s e . D b S c h e m a = r e l e a s e r e l e a s e . D a t a S o u r c e N a m e = w p d b D S _ r e l d b r e l e a s e . D b U r l = j d b c : d b 2 : / / m y d b s e r v e r . i b m . c o m : 5 0 0 0 0 / r e l d b : r e t u r n A l i a s = 0 ; r e l e a s e . D b U s e r = d b 2 i n s t 1 r e l e a s e . D b P a s s w o r d = p a s s w o r d c o m m u n i t y . D b T y p e = d b 2 c o m m u n i t y . D b N a m e = c o m d b c o m m u n i t y . D b S c h e m a = c o m m u n i t y c o m m u n i t y . D a t a S o u r c e N a m e = w p d b D S _ c o m d b c o m m u n i t y . D b U r l = j d b c : d b 2 : / / m y d b s e r v e r . i b m . c o m : 5 0 0 0 0 / c o m d b : r e t u r n A l i a s = 0 ; c o m m u n i t y . D b U s e r = d b 2 i n s t 1 c o m m u n i t y . D b P a s s w o r d = p a s s w o r d c u s t o m i z a t i o n . D b T y p e = d b 2 c u s t o m i z a t i o n . D b N a m e = c u s d b c u s t o m i z a t i o n . D b S c h e m a = c u s t o m i z a t i o n c u s t o m i z a t i o n . D a t a S o u r c e N a m e = w p d b D S _ c u s d b c u s t o m i z a t i o n . D b U r l = j d b c : d b 2 : / / m y d b s e r v e r . i b m . c o m : 5 0 0 0 0 / c u s d b : r e t u r n A l i a s = 0 ; c u s t o m i z a t i o n . D b U s e r = d b 2 i n s t 1 c u s t o m i z a t i o n . D b P a s s w o r d = p a s s w o r d j c r . D b T y p e = d b 2 j c r . D b N a m e = j c r d b j c r . D b S c h e m a = j c r j c r . D a t a S o u r c e N a m e = w p d b D S _ j c r d b j c r . D b U r l = j d b c : d b 2 : / / m y d b s e r v e r . i b m . c o m : 5 0 0 0 0 / j c r d b : r e t u r n A l i a s = 0 ; j c r . D b U s e r = d b 2 i n s t 1 j c r . D b P a s s w o r d = p a s s w o r d

4. (Optional) Edit the following properties in /ConfigEngine/properties/wkplc_comp.properties if you intend to transfer the Portal databases from any database other than Derby. NOTE: These values by default are set for the out-of-the-box derby configuration. If you are configuring Portal for an external database for the first time, you should NOT modify these properties. However if you have already configured Portal for another database, such as Oracle, and you want to transfer to DB2, then update the source properties to reflect your current database settings. source.domain.DbType - The type of database you are currently configured to. This is 'derby' by default. source.domain.DbName - The name of the database this domain is currently using. source.domain.DbSchema - The current schema identifier for objects within the database for this domain. source.domain.DataSourceName - The name of the datasource that is currently in use in the WebSphere Application Server configuration. source.domain.DbUrl - The url currently used to access your database. source.domain.DbUser - The name of the user that currently accesses this database. source.domain.DbPassword - The password of the source DbUser.

In this guide, we will not be editing these properties.

www-10.lotus.com/ldd/portalwiki.nsf/dx/Test

4/7

3/12/13

WebSphere Portal Family wiki : Database Configuration for WebSphere Portal : Steps to Configure WebSphere Portal 6.1.x with DB2 for Windows/UNIX usin

5. Save the files.

Configure JCR Collation

This section is optional. This section is only needed if you are using Web Content Management (WCM). These steps enable JCR Collation support, designed to help improve performance with WCM. If you are not using WCM, it will not hurt to complete these steps, but again, it is not required. 1. Copy the following files from the WebSphere Portal server to a temporary directory on the DB2 server: <PortalServer>/jcr/prereq.jcr/config/collation.jar <PortalServer>/jcr/prereq.jcr/config/registerCollationUDFTemplate.sql

2. From the DB2 server, open a terminal window and change directories to:

<db2_instance_home>/sqllib/function

3. From the DB2 server, Execute the following command:

j a rx v f< t e m p o r a r yl o c a t i o n > / c o l l a t i o n . j a r NOTE: In order for the above command to work, you must have java installed on the DB2 server and the JAVA_HOME environment variable set to the java root directory.

4. From the DB2 server, edit the <temporary location>/registerCollationUDFTemplate.sql file in a text editor. 5. Change all SCHEMA references in this file to the value you set for jcr.DbSchema in wkplc_dbdomain.properties. In this case, the schema value is 'jcr'. 6. Change the following line: " V A L U EV A R C H A R ( 3 2 6 7 2 ) , " to " V A L U EV A R C H A R ( 1 0 0 ) , "

7. Change the following line: " R E T U R N SV A R C H A R ( 3 2 6 7 2 )F O RB I TD A T A " to " R E T U R N SV A R C H A R ( 1 0 0 )F O RB I TD A T A " 8. Save the registerCollationUDFTemplate.sql file 9. From the DB2 server, connect to the JCR database by executing the following command in a terminal window: d b 2c o n n e c tt oj c r d bu s e rd b 2 i n s t 1u s i n gp a s s w o r d

10. From the same terminal window, execute the SQL script by running the following command: d b 2t v f< t e m p o r a r yl o c a t i o n > / r e g i s t e r C o l l a t i o n U D F T e m p l a t e . s q l 11.. Disconnect from the JCRDB and restart the DB2 instance.

Configure WebSphere Portal with DB2

In this section, you will transfer the WebSphere Portal server data that exists in the current database (Derby by default) to the DB2 server. This is accomplished by a ConfigEngine

www-10.lotus.com/ldd/portalwiki.nsf/dx/Test

5/7

3/12/13

In this section, you will transfer the WebSphere Portal server data that exists in the current database (Derby by default) to the DB2 server. This is accomplished by a ConfigEngine script called 'database-transfer'. This script does all of the following: Connects to the target database (DB2 in this case) and drops all objects within them to ensure we have a clean database to transfer to. Creates the necessary tables, indexes, etc in the target databases for each domain. Transfers the data from the source database (Derby by default) to the target database (DB2) for each domain. Creates a JDBC Provider and datasources in the WebSphere Application Server configuration Maps the datasources to the appropriate applications. For example the release, customization, community and jcr datasources are mapped to wps.ear.

WebSphere Portal Family wiki : Database Configuration for WebSphere Portal : Steps to Configure WebSphere Portal 6.1.x with DB2 for Windows/UNIX usin

1. Stop the WebSphere_Portal server by running the following command from the wp_profile/bin directory:

W i n d o w s : s t o p S e r v e r . b a tW e b S p h e r e _ P o r t a lu s e rw a s a d m i np a s s w o r dp a s s w o r d U N I X : . / s t o p S e r v e r . s h W e b S p h e r e _ P o r t a lu s e rw a s a d m i np a s s w o r dp a s s w o r d

2. From the Portal server, and from a terminal window, change directories to wp_profile/ConfigEngine 3. Execute the following ConfigEngine scripts to validate the database properties:

W i n d o w s : C o n f i g E n g i n e . b a tv a l i d a t e d a t a b a s e d r i v e rD W a s P a s s w o r d = p a s s w o r d C o n f i g E n g i n e . b a tv a l i d a t e d a t a b a s e c o n n e c t i o nD W a s P a s s w o r d = p a s s w o r d U N I X : . / C o n f i g E n g i n e . s hv a l i d a t e d a t a b a s e d r i v e rD W a s P a s s w o r d = p a s s w o r d . / C o n f i g E n g i n e . s hv a l i d a t e d a t a b a s e c o n n e c t i o nD W a s P a s s w o r d = p a s s w o r d

4. Execute the following ConfigEngine script to transfer the database from Derby to DB2: IMPORTANT: Do not run this script as a background process. The script may hang during the 'action-validate-database' sub-task if executed as a background process.

W i n d o w s : C o n f i g E n g i n e . b a td a t a b a s e t r a n s f e rD P o r t a l A d m i n P w d = p a s s w o r dD W a s P a s s w o r d = p a s s w o r d U N I X : . / C o n f i g E n g i n e . s hd a t a b a s e t r a n s f e rD P o r t a l A d m i n P w d = p a s s w o r dD W a s P a s s w o r d = p a s s w o r d

5. After the database-transfer completes, change directories to wp_profile/bin and execute the following command to start the Portal server:

W i n d o w s :s t a r t S e r v e r . b a tW e b S p h e r e _ P o r t a l U N I X : . / s t a r t S e r v e r . s hW e b S p h e r e _ P o r t a l

6. Clustered environments only. If you have performed these steps in a clustered environment, you must also complete the following steps: Copy the wp_profile_root/PortalServer/jcr/lib/com/ibm/icm/icm.properties file from the primary node and replace the icm.properties file on each secondary node with the new file from the primary node. Restart the secondary cluster members.

Attachments (0) Versions (18) Comments (4) ganesh navlaspur commented on Mar 14, 2012 Re: Steps to Configure WebSphere Portal 6.1.x with DB2 for Windows/UNIX using Type 4 drivers Thank you Hunter, for the reply. and for reference to forum. I had some more question, which i have posted in the forum. https://www.ibm.com/developerworks/forums/thread.jspa?threadID=421219 Hunter T Tweed commented on Mar 5, 2012 Re: Steps to Configure WebSphere Portal 6.1.x with DB2 for Windows/UNIX using Type 4 drivers Hi Ganesh, Technically the answer is 'yes', you should upgrade DB2 to FP9 before applying the fixpack. I could not tell you what impact it might have otherwise....WebSphere Portal v6106 was not tested on DB2 v9.1-FP7 so the issues could range anywhere from no issues at all to being unable to read data in the database. Since you'd just be going from FP7 to FP9, I would suspect that you're likely not going to see any issues at all. However, because DB2 9.1 fp7 was not tested for v6106, it is not going to be supported (regardless of whether or not you actually have issues) so the safest thing to do is go to FP9 before the upgrade. For future reference, comments like this might be more appropriate in the WebSphere Portal forum here: http://www.ibm.com/developerworks/forums/forum.jspa?forumID=168

www-10.lotus.com/ldd/portalwiki.nsf/dx/Test

6/7

3/12/13

WebSphere Portal Family wiki : Database Configuration for WebSphere Portal : Steps to Configure WebSphere Portal 6.1.x with DB2 for Windows/UNIX usin

ganesh navlaspur commented on Mar 2, 2012 Re: Steps to Configure WebSphere Portal 6.1.x with DB2 for Windows/UNIX using Type 4 drivers A question related to DB2 and not specifically about this article. We are planning to upgrade from WPS 6.1.0.1 (which has DB2 at v9.1-FP7) to WPS 6.1.0.6 (required DB2 = v9.1-FP9) Is it required to update the DB2 from FP7 to FP9, "before" upgrading the WPS from 6.1.0.1 to 6.1.0.6 ? What are the effects if we upgrade WPS first and then DB2? Thank you. Rob Fichtel commented on Mar 19, 2010 Steps to Configure WebSphere Portal 6.1.x with DB2 for Windows/UNIX using Type 4 drivers JCR Collation configuration on a Windows Server 2003 platform: CD C:\IBM\SQLLIB\FUNCTION C:\IBM\SQLLIB\java\jdk\bin\jar -xvf C:\IBM\WebSphere\PortalServer\jcr\prereq.jcr\config\collation.jar icm\CollationUDF.class

www-10.lotus.com/ldd/portalwiki.nsf/dx/Test

7/7

You might also like