Map #Docker container ports to virtual IPs in Linux with docker-compose

By | February 15, 2018

Sometimes you need to export multiple instances of the same service with a specific IP using same port outside of a docker swarm environment. Using docker swarm environment is easy to have several instances of the same service exporting some API on the same port. The swarm will take care of load balancing the services… Read More: Map #Docker container ports to virtual IPs in Linux with… »

Using temporary indices to optimize DELETE operations on big tables in #DB2

By | December 18, 2019

DELETE operations are much faster in case we disable constraints. This is because not all foreign keys affected by the DELETE are indexed. We have to detect all the foreign keys that point to the table from where you delete data. The we can create temporary indices to help speed up the delete. STEP 1.… Read More: Using temporary indices to optimize DELETE operations on big tables… »

Fix #DB2 SQL1639N ( SQLCODE=-1639, SQLSTATE=08001, SQLERRMC=null) authentication issue

By | November 21, 2017

After migrating my full DB2 backup (binaries and data) to a new server I got into several issue. One was already described in the previous post here. ISSUE: Even after fixing that start issue I was still not OK. My WebSphere data source that linked to the DB2 instance was not responding. Trying to ping… Read More: Fix #DB2 SQL1639N ( SQLCODE=-1639, SQLSTATE=08001, SQLERRMC=null) authentication issue »

Fix #DB2 Communication protocol failed to start issue: SQL5043N

By | November 21, 2017

I moved my DB2 installation to a new server from a full back-up. After performing all the necessary steps: 1. Recreate the necessary users: db2inst1, db2fenc1, db2das1 2. Give ownership to their home directories ISSUE: I tried to start the instance. I logged in to the db2inst1 user and started the database. This was the… Read More: Fix #DB2 Communication protocol failed to start issue: SQL5043N »

XA datasources with #WebSphere and #Oracle

By | December 5, 2017

When using XA data sources with Websphere and Oracle we must grant to the Oracle user rights to perform XA recovery. STEP 1: Create an XA datasource AdminTask.createJDBCProvider(‘[-scope Node=’+ node +’,Server=’+serverName +’ -databaseType Oracle -providerType “Oracle JDBC Driver” -implementationType “XA data source” -name “‘+jdbcXAProviderName +'” -description “Oracle JDBC Driver (XA)” -classpath [${ORACLE_JDBC_DRIVER_PATH}/ojdbc7.jar ] -nativePath “”… Read More: XA datasources with #WebSphere and #Oracle »

#Websphere SIB issues when running Websphere in a #Docker container

By | November 14, 2017

When running a Websphere Application server instance in a docker container, if the Service Integration Bus (SIB) is defined to store all the messages and data in an external database there is an issue caused by the way the bus is created. When the SIB is initialized the given name depends on the hostname of… Read More: #Websphere SIB issues when running Websphere in a #Docker container »

Bind #Docker container ports to virtual interfaces to simulate cluster nodes

By | November 8, 2017

My setup implies that I have 3 almost identical application nodes (running as containers) that are part of a cluster and they need to be mapped to different external IPs (not part of the docker ingress network) because they are added in a cluster configuration external to docker. The default behavior of port binding is… Read More: Bind #Docker container ports to virtual interfaces to simulate cluster… »