Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • WebSphere Portal Family wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category IBM Redbooks: Building a Sample Website Using IBM Web Content Manager 7.0 IBM Redbooks: Building and Implementing a Social Portal IBM Redbooks: Developing Exceptional Multi-Channel Web Experiences V7: IBM Web Content Manager Product Documentation V7: IBM WebSphere Portal Enable for z/OS Product Documentation V7: IBM WebSphere Portal Express Product Documentation V7: WebSphere Portal Product Documentation V8: IBM Web Content Manager Product Documentation V8: IBM WebSphere Portal Express Product Documentation V8: IBM WebSphere Portal Product Documentation (includes z/OS) Custom Search Scope...
Search
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

Hunter T Tweed
Contribution Summary:
  • Articles authored: 20
  • Articles edited: 13
  • Comments Posted: 13

Recent articles by this author

Cloning a WebSphere Portal v8.0 Cluster

Before You Begin Purpose of document The process of cloning a WebSphere Portal environment means to make an exact copy of your current configuration, and deploy it to another system. This can save you time from having to reconfigure databases, security or redeploy any custom ...

Steps to create a single repository for WebSphere Portal using IBM Packaging Utility

A stepbystep procedure to use IBM Packaging Utility to create a single repository for WebSphere Portal, WebSphere Application Server, and IBM HTTP Server.

How To Update VMM database information for WebSphere Portal

Steps to update VMM and Property Extension database information for WebSphere Portal

Command-line interface to update Portal v8 response files

Commandline interface to update Portal v8 response files

How to Clone a WebSphere Portal v8 cluster on VMWare images

Procedure to clone a WebSphere Portal v8 cluster using VM images.

Community articleSteps to update Portal database connection information after completing database-transfer

Added by Hunter T Tweed | Edited by IBM contributor Hunter T Tweed on February 5, 2010 | Version 17
expanded Abstract
collapsed Abstract
No abstract provided.
Tags:
ShowTable of Contents
HideTable of Contents
  • 1 The connect database configuration script
  • 2 Steps to update Portal with the new hostname or port of the databases
  • 3 Steps to update Portal with the new names of the databases
  • 4 Steps to Update Database User IDs and Passwords in the Portal and WebSphere Configuration
  • 5 Steps to point Portal to a backup database
  • 6 Limitations
You may need to update the connection information some time after you configure WebSphere Portal to use an external database (such as DB2, Oracle or SQLServer)   This document desacribes the procedure to take to update the database configuration information for various scenarios.

The connect database configuration script



WebSphere Portal provides a WPSconfig/ConfigEngine script to automatically make these changes for you.  This script is the 'connect-database' task.  

connect-database
 
 
This script does all of the following:
  • Drop the existing datasources and JDBC provider in the WAS configuration
  • Creates a new JDBC provider and datasources in the WAS configuration using your updated information
  • Creates new environment variables if needed for database drivers
  • Updates several portal applications (such as wps.ear, wcm.ear and icmjcr.ear) to use the new datasources

Steps to update Portal with the new hostname or port of the databases



Portal v6.0.x
 
1. In the PortalServer/config directory, edit the wpconfig_dbdomain.properties file
2. Change the following values as needed to reflect the new hostname and/or port for the database server:
release.DbUrl
community.DbUrl
customization.DbUrl
jcr.DbUrl
wmm.DbUrl
likeminds.DbUrl

3. Save the file
4. Cluster only.  Ensure the DMGR is started.
5. From the PortalServer/config directory, execute the following WPSconfig scripts to validate the properties:
Windows:   WPSconfig.bat validate-database-connection-wps
           WPSconfig.bat validate-database-connection-jcr
           WPSconfig.bat validate-database-connection-likeminds
           WPSconfig.bat validate-database-connection-wmm

UNIX:     ./WPSconfig.sh validate-database-connection-wps
          ./WPSconfig.sh validate-database-connection-jcr
          ./WPSconfig.sh validate-database-connection-likeminds
          ./WPSconfig.sh validate-database-connection-wmm

6. Execute the following WPSconfig script to update the Portal datasources:
Windows:  WPSconfig.bat connect-database -DWasPassword=password
UNIX:   ./WPSconfig.sh connect-database -DWasPassword=password

7. Restart the WebSphere_Portal server.


Portal v6.1.x

1. In the wp_profile/ConfigEngine/properties directory, edit the wkplc_comp.properties file
2. Change the following values as needed to reflect the new hostname and/or port for the database server:
release.DbUrl
community.DbUrl
customization.DbUrl
jcr.DbUrl
feedback.DbUrl
likeminds.DbUrl

3. Save the file
4. Cluster only.  Ensure the DMGR is started.
5. From the wp_profile/ConfigEngine directory, execute the following ConfigEngine scripts to validate the properties:
Windows:  ConfigEngine.bat validate-database-connection
    
UNIX:   ./ConfigEngine.sh validate-database-connection
6. Execute the following ConfigEngine script to update the Portal datasources:
Windows:  ConfigEngine.bat connect-database -DWasPassword=password
UNIX:    ./ConfigEngine.sh connect-database -DWasPassword=password
7. Restart the WebSphere_Portal server.

Steps to update Portal with the new names of the databases



Portal v6.0.x
 
1. In the PortalServer/config directory, edit the wpconfig_dbdomain.properties file
2. Change the following values as needed to reflect the new hostname and/or port for the database server:
release.DbName
release.DbUrl
community.DbName
community.DbUrl
customization.DbName
customization.DbUrl
jcr.DbName
jcr.DbUrl
wmm.DbName
wmm.DbUrl
likeminds.DbName
likeminds.DbUrl

3. Save the file
4. Cluster only.  Ensure the DMGR is started.
5. From the PortalServer/config directory, execute the following WPSconfig scripts to validate the properties:

Windows:   WPSconfig.bat validate-database-connection-wps
           WPSconfig.bat validate-database-connection-jcr
           WPSconfig.bat validate-database-connection-likeminds
           WPSconfig.bat validate-database-connection-wmm

UNIX:     ./WPSconfig.sh validate-database-connection-wps
          ./WPSconfig.sh validate-database-connection-jcr
          ./WPSconfig.sh validate-database-connection-likeminds
          ./WPSconfig.sh validate-database-connection-wmm

6. Execute the following WPSconfig script to update the Portal datasources:

Windows:  WPSconfig.bat connect-database -DWasPassword=password
UNIX:   ./WPSconfig.sh connect-database -DWasPassword=password

7. Restart the WebSphere_Portal server.

Portal v6.1.x

1. In the wp_profile/ConfigEngine/properties directory, edit the wkplc_comp.properties file
2. Change the following values as needed to reflect the new hostname and/or port for the database server:
release.DbName
release.DbUrl
community.DbName
community.DbUrl
customization.DbName
customization.DbUrl
jcr.DbName
jcr.DbUrl
feedback.DbName
feedback.DbUrl
likeminds.DbName
likeminds.DbUrl

3. Save the file
4. Cluster only.  Ensure the DMGR is started.
5. From the wp_profile/ConfigEngine directory, execute the following ConfigEngine scripts to validate the properties:

Windows:  ConfigEngine.bat validate-database-connection
    
UNIX:   ./ConfigEngine.sh validate-database-connection

6. Execute the following ConfigEngine script to update the Portal datasources:

Windows:  ConfigEngine.bat connect-database -DWasPassword=password
UNIX:    ./ConfigEngine.sh connect-database -DWasPassword=password

7. Restart the WebSphere_Portal server.

Steps to Update Database User IDs and Passwords in the Portal and WebSphere Configuration



Portal v6.0.x

1. In the PortalServer/config directory, edit the wpconfig_dbdomain.properties file
2. Change the following values as needed to reflect the new user ID and/or password for the database server:
release.DbUser
release.DbPassword
community.DbUser
community.DbPassword
customization.DbUser
customization.DbPassword
jcr.DbUser
jcr.DbPassword
wmm.DbUser
wmm.DbPassword
likeminds.DbUser
likeminds.DbPassword

3. Save the file
4. Cluster only.  Ensure the DMGR is started.
5. From the PortalServer/config directory, execute the following WPSconfig scripts to validate the properties:
Windows:   WPSconfig.bat validate-database-connection-wps
           WPSconfig.bat validate-database-connection-jcr
           WPSconfig.bat validate-database-connection-likeminds
           WPSconfig.bat validate-database-connection-wmm

UNIX:     ./WPSconfig.sh validate-database-connection-wps
          ./WPSconfig.sh validate-database-connection-jcr
          ./WPSconfig.sh validate-database-connection-likeminds
          ./WPSconfig.sh validate-database-connection-wmm

6. Execute the following WPSconfig script to update the Portal datasources:
Windows:  WPSconfig.bat connect-database -DWasPassword=password
UNIX:    ./WPSconfig.sh connect-database -DWasPassword=password
7. Restart the WebSphere_Portal server.

Portal v6.1.x

1. In the wp_profile/ConfigEngine/properties directory, edit the wkplc_comp.properties file
2. Change the following values as needed to reflect the new user ID and/or password for the database server:
release.DbUser
release.DbPassword
community.DbUser
community.DbPassword
customization.DbUser
customization.DbPassword
jcr.DbUser
jcr.DbPassword
wmm.DbUser
wmm.DbPassword
likeminds.DbUser
likeminds.DbPassword

3. Save the file
4. Cluster only.  Ensure the DMGR is started.
5. From the wp_profile/ConfigEngine directory, execute the following ConfigEngine scripts to validate the properties:
Windows:  ConfigEngine.bat validate-database-connection

UNIX:   ./ConfigEngine.sh validate-database-connection
6. Execute the following ConfigEngine script to update the datasources:
Windows:  ConfigEngine.bat connect-database -DWasPassword=password
UNIX:    ./ConfigEngine.sh connect-database -DWasPassword=password

7. Restart the WebSphere_Portal server.

Steps to point Portal to a backup database



Portal v6.0.x

1. In the PortalServer/config directory, edit the wpconfig_dbdomain.properties file
2. Change the following values as needed to reflect the values for the backup database server:
NOTE:  domain in this case refers to release, community, customization, jcr, likeminds, and wmm.  Update all domain properties that apply to your situation.
domain.DbType
domain.DbName
domain.DbUrl
domain.DbUser
domain.DbPassword
domain.DbSchema

3. Save the file
4. Cluster only.  Ensure the DMGR is started.
5. From the PortalServer/config directory, execute the following WPSconfig scripts to validate the properties:
Windows:  WPSconfig.bat validate-database-connection-wps
          WPSconfig.bat validate-database-connection-jcr
          WPSconfig.bat validate-database-connection-likeminds
          WPSconfig.bat validate-database-connection-wmm

UNIX:    ./WPSconfig.sh validate-database-connection-wps
         ./WPSconfig.sh validate-database-connection-jcr
         ./WPSconfig.sh validate-database-connection-likeminds
         ./WPSconfig.sh validate-database-connection-wmm
6. Execute the following WPSconfig script to update the Portal datasources:
Windows:  WPSconfig.bat connect-database -DWasPassword=password
UNIX:   ./WPSconfig.sh connect-database -DWasPassword=password

7. Restart the WebSphere_Portal server.


Portal v6.1.x

1. In the wp_profile/ConfigEngine/properties directory, edit the wkplc_comp.properties file
2. Change the following values as needed to reflect the values for the backup database server:

NOTE:  domain in this case refers to release, community, customization, jcr, likeminds, and wmm.  Update the following properties for all domains that apply to your situation.
domain.DbType
domain.DbName
domain.DbUrl
domain.DbUser
domain.DbPassword
domain.DbSchema

3. Save the file
4. Cluster only.  Ensure the DMGR is started.
5. From the wp_profile/ConfigEngine directory, execute the following ConfigEngine scripts to validate the properties:
Windows:  ConfigEngine.bat validate-database-connection
UNIX:   ./ConfigEngine.sh validate-database-connection
6. Execute the following ConfigEngine script to update the datasources:
Windows:  ConfigEngine.bat connect-database -DWasPassword=password
UNIX:   ./ConfigEngine.sh connect-database -DWasPassword=password

7. Restart the WebSphere_Portal server.

Limitations


 
1. To only update the datasource information for specific domains, you can add the following flags to the 'connect-database' script:
Portal v6.0:    -DActDbDomainList=domain1,domain2
Portal v6.1:    -DTransferDomainList=domain1,domain2
2. 'connect-database' does not validate any of the properties you have entered into wpconfig_dbdomain.properties or wkplc_comp.properties.  It is very important that you run the validation scripts prior to running connect-database.
3. 'connect-database' drops the Portal JDBC provider.  If you have created any custom datasources in this JDBC provider, they will be lost.  It is recommended that you create custom datasources in their own JDBC provider.
4. If you customized any of the Portal datasources, these changes will be lost.  You will need to redo any customizations you may have made to the Portal datasources.  
expanded Attachments (0)
collapsed Attachments (0)
expanded Versions (25)
collapsed Versions (25)
Version Comparison     
VersionDateChanged by              Summary of changes
25Oct 5, 2012 5:23:04 PMHunter T Tweed  IBM contributor
24Apr 18, 2012 2:31:56 PMHunter T Tweed  IBM contributorUpdated for Portal v7
23Apr 19, 2011 4:47:07 PMHunter T Tweed  IBM contributor
22Oct 4, 2010 3:27:53 PMHunter T Tweed  IBM contributor
21Sep 7, 2010 7:36:47 AMHunter T Tweed  IBM contributor
20Aug 24, 2010 3:46:31 PMHunter T Tweed  IBM contributor
19Feb 5, 2010 3:29:17 PMHunter T Tweed  IBM contributor
18Feb 5, 2010 3:26:06 PMHunter T Tweed  IBM contributor
This version (17)Feb 5, 2010 3:18:30 PMHunter T Tweed  IBM contributor
16Feb 5, 2010 3:09:34 PMHunter T Tweed  IBM contributor
15Feb 5, 2010 2:53:35 PMHunter T Tweed  IBM contributor
14Feb 5, 2010 2:44:55 PMHunter T Tweed  IBM contributor
13Dec 30, 2009 6:20:51 PMHunter T Tweed  IBM contributor
12Dec 30, 2009 6:16:00 PMHunter T Tweed  IBM contributor
11Dec 30, 2009 6:14:58 PMHunter T Tweed  IBM contributor
10Dec 30, 2009 6:14:18 PMHunter T Tweed  IBM contributor
9Dec 30, 2009 6:13:30 PMHunter T Tweed  IBM contributor
8Dec 30, 2009 6:12:43 PMHunter T Tweed  IBM contributor
7Dec 30, 2009 6:11:55 PMHunter T Tweed  IBM contributor
6Dec 30, 2009 6:10:53 PMHunter T Tweed  IBM contributor
5Dec 30, 2009 6:08:43 PMHunter T Tweed  IBM contributor
4Dec 28, 2009 5:37:12 PMHunter T Tweed  IBM contributor
3Dec 28, 2009 5:33:17 PMHunter T Tweed  IBM contributor
2Dec 28, 2009 5:28:20 PMHunter T Tweed  IBM contributor
1Dec 28, 2009 5:27:10 PMHunter T Tweed  IBM contributor
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • FacebookIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkIBM Collaboration Solutions
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use