Portal, V6.1
Create local databases on Windows
When you use a local DB2 server, complete this task if you want to change the configuration and transfer to another local DB2 database. Before you begin, you should have completed installing DB2.
If you plan to transfer multiple instances of WebSphere Portal, increase the default number of concurrently active databases. For example, to change the default number to 30, enter the following command at the database prompt: UPDATE DATABASE MANAGER CONFIGURATION USING NUMDB 30. A message confirms successful completion of the update. Working with properties files:
- The WebSphere Portal database can be used to hold information for applications such as Feedback and LikeMinds. Use similar naming conventions for property values such as release.DbName, jcr.DbName, feedback.DbName, and likeminds.DbName. For example:
- release.DbName=release
- jcr.DbName=jcrdb
- feedback.DbName=fdbkdb
- likeminds.DbName=lmddb
- If you are using a remote database, enter the values for the remote server.
- Use a forward slash (/) instead of a backslash (\).
- There might be additional database properties other than those listed here. Only change the properties within this task and skip all other properties.
- The recommended value listed for each property represents the specific information that is required to configure WebSphere Portal to your target database.
- Depending on which database domain has to be configured, replace dbdomain with:
- release
- customization
- community
- jcr
- feedback
- likeminds
- The values for at least one of the following properties must be unique for the release, customization, community, and jcr domains:
- dbdomain.DbType
- dbdomain.DbName
- dbdomain.DbUrl
- dbdomain.DbSchema
If you use the same values for all four properties across the release customization, community, and JCR domains, the database-transfer task fails because of ambiguous database object names. If DbUser, DbUrl, and DbPassword are not the same across domains, the value for DataSourceName must differ from the DataSourceName of the other domains. In other words, this value must be unique for the database domain.
- Open a command prompt, and change to the directory WP_PROFILE/ConfigEngine/properties.
- Create a backup copy of the configuration files before changing any values.
- WP_PROFILE/ConfigEngine/properties/wkplc.properties
- WP_PROFILE/ConfigEngine/properties/wkplc_comp.properties
- WP_PROFILE/ConfigEngine/properties/wkplc_dbtype.properties
- Edit properties file wkplc_comp.properties and modify the values to correspond to your environment.
- For dbdomain.DbType, type db2.
- For dbdomain.DbName, type the name of the WebSphere Portal domain database and schema.
This value is also the database element in the dbdomain.DbUrl property.
- For dbdomain.DbSchema, type the schema name of the database domain.
Follow the documentation of the target database management system in order to define a valid schema name as restrictions apply for some database management systems.
- For dbdomain.DataSourceName, type the name of the data source that WebSphere Portal uses to communicate with its databases.
- For dbdomain.DbUrl, type the database URL used to access the WebSphere Portal database with JDBC. The value must conform to the JDBC URL syntax specified by the database.
The database element of this value should match the value of DbName.
- For dbdomain.DbUser, type the user ID for the database administrator.
- For dbdomain.DbPassword, type the password for the database administrator.
- Save and close the file.
- Update the following properties in the file wkplc_dbtype.properties.
- For db2.DbDriver, type the name of the JDBC driver class.
- For db2.DbLibrary, type the directory and name of the .zip or .jar file that contains the JDBC driver class.
- For db2.JdbcProviderName, type the name of the JDBC provider that WebSphere Portal uses to communicate with its databases.
- Save and close the file.
- Update the following property in the file wkplc.properties.
- For WasPassword, type the password for the WAS security authentication used in your environment.
- Save and close the file.
- To create the WebSphere Portal, Java Content Repository, Feedback and LikeMinds databases, type the following commands:
- ConfigEngine.bat create-database -DTransferDomainList=release,community,customization,jcr,feedback,likeminds
- ConfigEngine.bat setup-database -DTransferDomainList=release,community,customization,jcr,feedback,likeminds
- Check the services file on the DB2 server system. If it does not specify DB2 connection and interrupt service ports, specify the ports for your operating system.
- Edit file %SYSTEMROOT%\system32\drivers\etc\services.
- Add the text db2c_db2 50000/tcp, where db2 is the default instance.
Parent topic
Set up a local DB2
Related tasks
Set up databases