Transfer HCL WebSphere Portal 9.5 Container default database to IBM DB2
HCL WebSphere Portal 9.5 installs a copy of Derby as the default database. Administrator users can follow these steps to transfer the default database configuration detail to IBM DB2, if preferred for use as the relational database for HCL Digital Experience 9.5 Container deployment data.
The directions closely follow the Digital Experience database transfer steps provided for deployments to supported "on-premises" platforms, such as Windows, Linux, and AIX. The unique steps that account for differences in these instructions for use with an HCL Digital Experience 9.5 Docker container deployment as opposed to an on-premises Digital Experience installation will be highlighted.
The on-premises based HCL WebSphere Portal database transfer instructions can be viewed in this topic: DB2 worksheet: Transfer to multiple databases.
These container deployment instructions cover the transfer of the default Derby database running on an HCL WebSphere Portal Container Update CF_18 container image to an IBM DB2 Enterprise Version 11.1.0.0 database running on a Centos Linux release 7.71908 server. The IBM DB2 11.5 Standard and Enterprise database is also supported for these procedures. In these instructions, the IBM DB2 database is installed to a supported on-premises platform (see IBM DB2 System Support requirements for a list of supported platforms). The HCL WebSphere Portal 9.5 Docker container is deployed to a supported Docker or Kubernetes platform. The container version deployed in this example is Docker-ce version 19.0.3.8.
Video: HCL WebSphere Portal - Perform a Database Transfer on HCL WebSphere Portal 9.5
Prerequisites
- The HCL WebSphere Portal 9.5 container image is deployed, and loaded to your Docker repository using the following command:
docker load < hcl-dx-core-image-v95_CF18_20200427-2055.tar.gz
For instructions and latest list of HCL WebSphere Portal 9.5 Container image and file names, see the HCL WebSphere Portal 9.5 Deployment topic
- IBM DB2 is installed on an on-premises server with a DNS hostname that is available to the HCL WebSphere Portal 9.5 deployed container.
Start the HCL WebSphere Portal 9.5 Container in Docker
Execute the following command to start the DX 9.5 container:docker run -d --add-host {DB_DNS_name}:{DB_IP_address} -p 10025-10045:10025-10045 -p 10200-10210:10200-10210 -v '{/container/profile/directory/on/Docker}':'/opt/HCL/wp_profile' {your_repo_name}:{your_tag_name}Note:
One can access this file (as well as all others in the running container) via the following command:
- An --add-host entry needs to be made to insert the DNS name of the IBM DB2 database server into the /etc/hosts file in the container running the Digital Experience 9.5 container. If, and only if, the DNS name of the DB2 server is already in a named server available to the container, then the --add-host parameter would not be needed.
- The ports for the Digital Experience 9.5 container (100025-10045) need to be mapped as well as the ports using by the Configuration Wizard. The Configuration Wizard is used to manage the transfer of the database. The Configuration Wizard uses ports in the range of 10200-10202.
- The HCL WebSphere Portal 9.5 container persists the profile information across restarts. This is persisted on the Docker host as {directory on docker host for DX container profile} in the run command above. The container will map /opt/HCL/wp_profile to this directory on the docker via the -v command.
- We need to specify the Docker repository and tag name as the reader has loaded the HCL WebSphere Portal container image into their docker repository. When this docker run command is executed, ensure time is allocated to check the profile as well as initialize the HCL WebSphere Portal 9.5 container instance. One can ensure that the HCL WebSphere Portal 9.5 container deployment is ready by "tail"-ing the file in the container located at /opt/HCL/wp_profile/logs/HCL WebSphere Portal and HCL Web Content Manager/SystemOut.log. When the file displays the following message, the HCL Digital Experience 9.5 container instance is initialized:
…open for e- businessdocker exec -it {container name} bash
Transfer the Database
First, ensure that the HCL WebSphere Portal 9.5 docker container can access the IBM DB2 on-premises platform server. Using the following command, one can simply "ping" the DNS name of the IBM DB2 database server and verify that it answers:docker exec -it {container name} bashIf this is not successful, consult with your platform administrator for other methods to debug the network issues between a Docker container and Servers running external to Docker in the environment.
Next, once connectivity is established, follow the directions for using the Configuration Wizard from the traditional (on-premises platform-based) Digital Experience database transfer steps to transfer the data from the default Derby database and configure the target IBM DB2 database server for use with the HCL WebSphere Portal 9.5 Docker container deployment.
One can access the Configuration Wizard from a browser on the HCL WebSphere Portal 9.5 container deployment via the URL http://{docker host server}:10200/hcl/wizard.
Proceed to the Digital Experience database transfer steps topic section Set Up a Stand-alone Server - Database Transfer.
Specify the fully qualified DNS name of the database server as set above in the --add-host directive in the docker run command.
Parent topic: Customization