When you create the DB2 schema for Emptoris® Contract Management, the port
number that is currently used by the database is used.
About this task
You can verify the port numbers of the database on Linux by running the following
commands.
Procedure
To verify the port numbers of the database on Linux systems after the DB2 schema is
created, complete the following steps:
- Log in to the database as the instance owner, such as db2inst1.
- Run the following commands.
ETC_SERVICES=/etc/services
SVCENAME=DB2_${DB2INSTANCE}
svcename_port=`grep -P "${SVCENAME}\t*[0-9]*/tcp" ${ETC_SERVICES}`
port_number=`echo ${svcename_port} | sed "s/${SVCENAME} \([0-9]*\)\/tcp/\1/g"`